API reference

Sending

Prepare and send an envelope, resend an invitation, get a signing link, extend or decline for a party.

POST/envelopes/{id}/prepare

Run the prepare stage

DRAFT only. An explicit call rather than something distribute does on the way past: hiding it there puts a slow, failure-prone transformation inside a call whose failure a caller reads as "my envelope was not sent". Each of the four steps is conditional on the document, and a PDF with no AcroForm needs none of them: its PREPARED revision carries the same bytes as ORIGINAL, referencing the same immutable object. A document that needs a step this deployment cannot perform is PREPARATION_UNSUPPORTED, naming the step, rather than passed through: marking an unflattened form as PREPARED means signing a document whose field values a later editor can still change. Nothing is written unless every item can be prepared.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · string

    Scoped to (organisation, key), TTL 24 hours. Replaying with the same body returns the original response with Idempotency-Replayed: true; a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Response 200

What preparing did, per item

Response fields
  • envelopeIdstring
  • itemsarray of object
    • itemIdstring
    • revisionIdstring
    • alreadyPreparedboolean
  • stepsAppliedarray of string

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/prepare \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "envelopeId": "env_8kR4tZp1",
  "items": [
    {
      "itemId": "itm_5Qn2wLr6",
      "revisionId": "rev_6Hn3kQw8",
      "alreadyPrepared": true
    }
  ],
  "stepsApplied": [
    "CONVERT"
  ]
}

POST/envelopes/{id}/distribute

Send for signing

A DRAFT document only: a TEMPLATE is instantiated, never sent (ENVELOPE_TYPE_MISMATCH). Every precondition is reported at once rather than one refusal per request: at least one SIGNER or APPROVER, every SIGNER with a signature field, every field pointing at a party and document on this envelope, and every document carrying a PREPARED revision from POST .../prepare. Party tokens are returned only for method "NONE", for the caller to distribute; they are returned once and only their hashes are stored, so a caller who loses a link resends rather than looks it up. method "EMAIL" queues an invitation to each party and returns no links: each link is minted when its email is sent, and exists only in that email. partyExpiryDays is where a deadline is set: it becomes parties.expiresAt = sentAt + days here, computed once against the moment of sending. Omitted means no deadline, which is the system default: a default deadline would be this system deciding when a customer's contracts stop being signable. signingOrderMode SEQUENTIAL enforces each party's signingOrder: only the first step is contacted now, and each later step when the one before it completes. Parties sharing a number sign together. Under NONE every link is returned at once with turnArrived, and a link whose turn has not arrived is refused with SIGNING_ORDER_VIOLATION until it has. reminders sets a schedule, EMAIL only: the first firstAfterHours after a party is invited, then every repeatEveryHours (at least 24), for 30 days from sending, to parties who have not finished and whose turn has arrived. Each reminder carries a new link, and earlier links stop working. Absent means no reminders.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • Idempotency-Keyheader · string

    Scoped to (organisation, key), TTL 24 hours. Replaying with the same body returns the original response with Idempotency-Replayed: true; a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Request body

  • methodstringdefault "EMAIL"

    One of "EMAIL", "NONE"

  • subjectstringat most 500 characters
  • messagestringat most 5000 characters
  • partyExpiryDaysinteger1 to 3650
  • signingOrderModestringdefault "PARALLEL"

    One of "PARALLEL", "SEQUENTIAL"

  • remindersobject
    • firstAfterHoursintegerrequired1 to 720
    • repeatEveryHoursinteger24 to 720

Response 200

Distributed, with the signing links where method is NONE

Response fields
  • envelopeobject
    • idstring
    • typestring

      One of "DOCUMENT", "TEMPLATE"

    • statusstring

      One of "DRAFT", "PENDING", "SEALING", "SEAL_FAILED", "COMPLETED", "DECLINED", "CANCELLED", "EXPIRED"

    • titlestring
    • externalIdstring or any or null
    • organisationIdstring
    • teamIdstring or any or null
    • ownerIdstring
    • createdAtstringdate-time
    • updatedAtstringdate-time
    • sentAtstring or any or null
    • completedAtstring or any or null
    • expiresAtstring or any or null
  • methodstring

    One of "EMAIL", "NONE"

  • linksarray of object
    • partyIdstring
    • rolestring

      One of "SIGNER", "APPROVER", "VIEWER", "ASSISTANT", "CC", "WITNESS", "NOTARY"

    • namestring or any or null
    • emailstring or any or null
    • signingOrderintegerat least -9007199254740991
    • urlstring
    • turnArrivedboolean
    • expiresAtstring or any or null

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/distribute \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "EMAIL"
  }'
Response 200
{
  "envelope": {
    "id": "env_8kR4tZp1",
    "type": "DOCUMENT",
    "status": "DRAFT",
    "title": "Ruiz Landscaping services agreement",
    "externalId": "ext_6Hn3kQw8",
    "organisationId": "org_5Wq2mBn8",
    "teamId": "tea_6Hn3kQw8",
    "ownerId": "own_6Hn3kQw8",
    "createdAt": "2026-11-03T16:51:04.087Z",
    "updatedAt": "2026-11-03T16:51:04.087Z",
    "sentAt": "2026-11-03T16:51:04.087Z",
    "completedAt": "2026-11-03T16:51:04.087Z",
    "expiresAt": "2026-11-03T16:51:04.087Z"
  },
  "method": "EMAIL"
}

POST/envelopes/{id}/parties/{partyId}/extend-expiry

Move a party's deadline later

An absolute timestamp, never a duration: "extend by seven days" has two plausible bases (from now, or from the deadline they already have) and they differ by however long the request sat in an inbox. It may only move later, because a deadline someone was told about is a promise and taking time back is a different act. A party with no deadline cannot be extended into having one: that is a restriction wearing the name of a grant. An EXPIRED party can be extended and returns to PENDING: the ordinary case, since a signer who missed the deadline is exactly who asks for more time; party.expired stays in the trail beside it.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • partyIdpath · stringrequired
  • Idempotency-Keyheader · string

    Scoped to (organisation, key), TTL 24 hours. Replaying with the same body returns the original response with Idempotency-Replayed: true; a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Request body

  • expiresAtstringrequireddate-time
  • reasonstring1 to 1000 characters

Response 200

The deadline before and after

Response fields
  • partyIdstring
  • statusstring
  • previousExpiresAtstringdate-time
  • expiresAtstringdate-time

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/parties/pty_3Hd7cVx9/extend-expiry \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "expiresAt": "2026-11-03T16:51:04.087Z"
  }'
Response 200
{
  "partyId": "pty_3Hd7cVx9",
  "status": "example",
  "previousExpiresAt": "2026-11-03T16:51:04.087Z",
  "expiresAt": "2026-11-03T16:51:04.087Z"
}

POST/envelopes/{id}/parties/{partyId}/resend

Issue a party a fresh signing link

The endpoint an EMAIL-delivered caller has instead of a link: distribute returns none for such a party, because the token is minted in the sending process and lands only in the inbox. Resend necessarily issues a NEW token and the previous link stops working. That is not a policy choice: nothing in the system can reproduce the old one. What it does with the new token follows the envelope: an EMAIL envelope queues the same invitation job distribute writes and returns no url (delivery "QUEUED": nothing has left the building yet); a NONE envelope mints and returns the link, as distribute did, because that caller took custody. A party that was never given a link (CC, VIEWER) has none to resend, and a COMPLETED, DECLINED or EXPIRED party is refused: a fresh token for an expired party is a link that looks live and is rejected the moment it is used. Under sequential routing an EMAIL resend to a party whose turn has not arrived is SIGNING_ORDER_VIOLATION: that is somebody the sender chose not to contact yet.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • partyIdpath · stringrequired
  • Idempotency-Keyheader · string

    Scoped to (organisation, key), TTL 24 hours. Replaying with the same body returns the original response with Idempotency-Replayed: true; a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Response 200

What was done, and the link when the caller holds custody

Response fields
  • partyIdstring
  • statusstring
  • deliverystring

    One of "QUEUED", "ISSUED"

  • urlstring or any or null
  • expiresAtstring or any or null
  • previousLinkInvalidatedboolean

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/parties/pty_3Hd7cVx9/resend \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "partyId": "pty_3Hd7cVx9",
  "status": "example",
  "delivery": "QUEUED",
  "url": "example",
  "expiresAt": "2026-11-03T16:51:04.087Z",
  "previousLinkInvalidated": true
}

POST/envelopes/{id}/parties/{partyId}/decline

Record a refusal on a party's behalf

For a refusal the owner learned out of band: the signer telephoned, emailed, or said so in a meeting. Works on a party who has not opened their link, which the party's own decline does not. The reason is required here and optional when a party declines for themselves: an owner asserting somebody else's refusal is making a claim about another person, and it is worth little without saying what it rests on. Declining halts the envelope (any party declining moves it to DECLINED) so this terminates the whole thing, not one party's participation. A CC or VIEWER has nothing to refuse (VALIDATION_FAILED), and a party already in a terminal status is not re-decided by asserting it again.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • partyIdpath · stringrequired
  • Idempotency-Keyheader · string

    Scoped to (organisation, key), TTL 24 hours. Replaying with the same body returns the original response with Idempotency-Replayed: true; a different body returns 409 IDEMPOTENCY_KEY_REUSED.

Request body

  • reasonstringrequired1 to 1000 characters

Response 200

Declined, with the envelope it halted

Response fields
  • envelopeobject
    • idstring
    • typestring

      One of "DOCUMENT", "TEMPLATE"

    • statusstring

      One of "DRAFT", "PENDING", "SEALING", "SEAL_FAILED", "COMPLETED", "DECLINED", "CANCELLED", "EXPIRED"

    • titlestring
    • externalIdstring or any or null
    • organisationIdstring
    • teamIdstring or any or null
    • ownerIdstring
    • createdAtstringdate-time
    • updatedAtstringdate-time
    • sentAtstring or any or null
    • completedAtstring or any or null
    • expiresAtstring or any or null
  • partyobject
    • idstring
    • rolestring

      One of "SIGNER", "APPROVER", "VIEWER", "ASSISTANT", "CC", "WITNESS", "NOTARY"

    • statusstring
    • declineReasonstring
  • sessionsEndedinteger

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/parties/pty_3Hd7cVx9/decline \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "example"
  }'
Response 200
{
  "envelope": {
    "id": "env_8kR4tZp1",
    "type": "DOCUMENT",
    "status": "DRAFT",
    "title": "Ruiz Landscaping services agreement",
    "externalId": "ext_6Hn3kQw8",
    "organisationId": "org_5Wq2mBn8",
    "teamId": "tea_6Hn3kQw8",
    "ownerId": "own_6Hn3kQw8",
    "createdAt": "2026-11-03T16:51:04.087Z",
    "updatedAt": "2026-11-03T16:51:04.087Z",
    "sentAt": "2026-11-03T16:51:04.087Z",
    "completedAt": "2026-11-03T16:51:04.087Z",
    "expiresAt": "2026-11-03T16:51:04.087Z"
  },
  "party": {
    "id": "env_8kR4tZp1",
    "role": "SIGNER",
    "status": "example",
    "declineReason": "example"
  },
  "sessionsEnded": 1
}