API reference

Envelopes

Create, read, update, copy, transfer, cancel and delete envelopes.

GET/envelopes

List envelopes

Authentication API token or Sender session

Parameters

  • typequery · string
  • statusquery · string
  • teamIdquery · string
  • folderIdquery · string
  • ownerIdquery · string
  • externalIdquery · string
  • createdAfterquery · string
  • createdBeforequery · string
  • orderByquery · string
  • orderquery · string
  • cursorquery · string
  • limitquery · string

Response 200

A page of envelopes

Response fields
  • dataarray of object
    • 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
  • paginationobject
    • nextCursorstring or any or null
    • hasMoreboolean
    • limitintegerat least -9007199254740991

Errors

Request
curl https://api.signrs.com/api/v1/envelopes \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "data": [
    {
      "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"
    }
  ],
  "pagination": {
    "nextCursor": "example",
    "hasMore": true,
    "limit": 1
  }
}

POST/envelopes

Create an envelope, optionally with items, parties and fields

Authentication API token or Sender session

Parameters

  • 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

  • typestringdefault "DOCUMENT"

    One of "DOCUMENT", "TEMPLATE"

  • titlestringrequired1 to 500 characters
  • externalIdstringat most 255 characters
  • teamIdstring
  • documentTypeKeystring
  • folderIdstring
  • itemsarray of object
    • filenamestringrequired
    • uploadIdstringrequired
  • partiesarray of object
    • rolestringrequired

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

    • namestring
    • emailstringemail
    • phonestring
    • signingOrderintegerat least 1default 1
    • dispatchAfterstringdate-time
    • roleLabelstring
    • witnessesPartyIndexinteger
    • witnessedPartyIdstring
    • accessAutharray of string
    • actionAutharray of string
    • accessCodestring4 to 64 characters
  • fieldsarray of object
    • typestringrequired

      One of "SIGNATURE", "FREE_SIGNATURE", "INITIALS", "STAMP", "NAME", "EMAIL", "PHONE", "JOB_TITLE", "COMPANY", "DATE", "TEXT", "NUMBER", "CHECKBOX", "RADIO", "DROPDOWN", "CELLS", "IMAGE", "ATTACHMENT", "SIGNATURE_MEANING"

    • partyIndexintegerrequired
    • itemIndexintegerrequired
    • pageintegerrequiredat least 1
    • xnumberrequired0 to 1
    • ynumberrequired0 to 1
    • wnumberrequired0 to 1
    • hnumberrequired0 to 1
    • requiredbooleandefault true
    • readOnlybooleandefault false
    • groupKeystring
    • metaobjectdefault {}

Response 201

Created, with every reference resolved to a real ID

Response fields
  • 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
  • itemsarray of object
    • idstring
    • positioninteger
    • filenamestring
    • mimeTypestring
    • pageCountinteger or any or null
  • partiesarray of object
    • idstring
    • rolestring

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

    • roleLabelstring or any or null
    • namestring or any or null
    • emailstring or any or null
    • signingOrderintegerat least -9007199254740991
    • dispatchAfterstring or any or null
    • statusstring
    • witnessedPartyIdstring or any or null
    • hasAccessCodeboolean
  • fieldsarray of object
    • idstring
    • itemIdstring
    • partyIdstring
    • typestring

      One of "SIGNATURE", "FREE_SIGNATURE", "INITIALS", "STAMP", "NAME", "EMAIL", "PHONE", "JOB_TITLE", "COMPANY", "DATE", "TEXT", "NUMBER", "CHECKBOX", "RADIO", "DROPDOWN", "CELLS", "IMAGE", "ATTACHMENT", "SIGNATURE_MEANING"

    • pageintegerat least -9007199254740991
    • xnumber
    • ynumber
    • wnumber
    • hnumber
    • requiredboolean
    • readOnlyboolean
    • groupKeystring or any or null

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "DOCUMENT",
    "title": "Ruiz Landscaping services agreement",
    "items": [
      {
        "filename": "ruiz-landscaping-services-agreement.pdf",
        "uploadId": "upl_7Bv3mTq2"
      }
    ],
    "parties": [
      {
        "role": "SIGNER",
        "name": "Dana Ruiz",
        "email": "dana.ruiz@example.com"
      }
    ]
  }'
Response 201
{
  "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",
  "items": [
    {
      "id": "env_8kR4tZp1",
      "position": 1,
      "filename": "ruiz-landscaping-services-agreement.pdf",
      "mimeType": "application/pdf",
      "pageCount": 1
    }
  ],
  "parties": [
    {
      "id": "env_8kR4tZp1",
      "role": "SIGNER",
      "roleLabel": "example",
      "name": "Dana Ruiz",
      "email": "dana.ruiz@example.com",
      "signingOrder": 1,
      "dispatchAfter": "2026-11-03T16:51:04.087Z",
      "status": "example",
      "witnessedPartyId": "wit_6Hn3kQw8",
      "hasAccessCode": true
    }
  ],
  "fields": [
    {
      "id": "env_8kR4tZp1",
      "itemId": "itm_5Qn2wLr6",
      "partyId": "pty_3Hd7cVx9",
      "type": "SIGNATURE",
      "page": 1,
      "x": 0.118,
      "y": 0.46,
      "w": 0.353,
      "h": 0.05,
      "required": true,
      "readOnly": true,
      "groupKey": "example"
    }
  ]
}

POST/envelopes/batch-get

Fetch up to 100 envelopes by ID

A read, so it declares no Idempotency-Key. IDs the token cannot see are absent from the response rather than reported, for the same reason a single fetch across the organisation boundary is a 404.

Authentication API token or Sender session

Request body

  • idsarray of stringrequired

Response 200

The envelopes that exist and are visible

Response fields
  • dataarray of object
    • 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
  • paginationobject
    • nextCursorstring or any or null
    • hasMoreboolean
    • limitintegerat least -9007199254740991

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/batch-get \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "example"
    ]
  }'
Response 200
{
  "data": [
    {
      "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"
    }
  ],
  "pagination": {
    "nextCursor": "example",
    "hasMore": true,
    "limit": 1
  }
}

GET/envelopes/{id}

Fetch one envelope, with its items, parties and fields

Authentication API token or Sender session

Parameters

  • idpath · stringrequired

Response 200

The envelope and its sub-resources

Response fields
  • 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
  • itemsarray of object
    • idstring
    • positioninteger
    • filenamestring
    • mimeTypestring
    • pageCountinteger or any or null
  • partiesarray of object
    • idstring
    • rolestring

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

    • roleLabelstring or any or null
    • namestring or any or null
    • emailstring or any or null
    • signingOrderintegerat least -9007199254740991
    • dispatchAfterstring or any or null
    • statusstring
    • witnessedPartyIdstring or any or null
    • hasAccessCodeboolean
  • fieldsarray of object
    • idstring
    • itemIdstring
    • partyIdstring
    • typestring

      One of "SIGNATURE", "FREE_SIGNATURE", "INITIALS", "STAMP", "NAME", "EMAIL", "PHONE", "JOB_TITLE", "COMPANY", "DATE", "TEXT", "NUMBER", "CHECKBOX", "RADIO", "DROPDOWN", "CELLS", "IMAGE", "ATTACHMENT", "SIGNATURE_MEANING"

    • pageintegerat least -9007199254740991
    • xnumber
    • ynumber
    • wnumber
    • hnumber
    • requiredboolean
    • readOnlyboolean
    • groupKeystring or any or null

Errors

Request
curl https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1 \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "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",
  "items": [
    {
      "id": "env_8kR4tZp1",
      "position": 1,
      "filename": "ruiz-landscaping-services-agreement.pdf",
      "mimeType": "application/pdf",
      "pageCount": 1
    }
  ],
  "parties": [
    {
      "id": "env_8kR4tZp1",
      "role": "SIGNER",
      "roleLabel": "example",
      "name": "Dana Ruiz",
      "email": "dana.ruiz@example.com",
      "signingOrder": 1,
      "dispatchAfter": "2026-11-03T16:51:04.087Z",
      "status": "example",
      "witnessedPartyId": "wit_6Hn3kQw8",
      "hasAccessCode": true
    }
  ],
  "fields": [
    {
      "id": "env_8kR4tZp1",
      "itemId": "itm_5Qn2wLr6",
      "partyId": "pty_3Hd7cVx9",
      "type": "SIGNATURE",
      "page": 1,
      "x": 0.118,
      "y": 0.46,
      "w": 0.353,
      "h": 0.05,
      "required": true,
      "readOnly": true,
      "groupKey": "example"
    }
  ]
}

PATCH/envelopes/{id}

Update a draft envelope

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

  • titlestring1 to 500 characters
  • externalIdstring or any or null
  • folderIdstring or any or null

Response 200

Updated

Response fields
  • 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

Errors

Request
curl -X PATCH https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1 \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Ruiz Landscaping services agreement"
  }'
Response 200
{
  "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"
}

DELETE/envelopes/{id}

Delete an envelope

Only a DRAFT is removed. Anything that has been distributed is HIDDEN instead: it may hold signatures a party is entitled to, so the sealed bytes, the parties' access and the audit chain all survive. A hidden envelope is absent from every read, so deleting it twice is the same NOT_FOUND as an envelope that never existed. Removing a draft releases the uploads behind it, but only where no other envelope references the same object.

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 was done

Response fields
  • idstring
  • dispositionstring

    One of "REMOVED", "HIDDEN"

  • itemsRemovedinteger
  • uploadsReleasedinteger

Errors

Request
curl -X DELETE https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1 \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "id": "env_8kR4tZp1",
  "disposition": "REMOVED",
  "itemsRemoved": 1,
  "uploadsReleased": 1
}

POST/envelopes/{id}/transfer

Transfer an envelope to a different owner

The unglamorous, constant case: somebody leaves, and the envelopes they sent do not leave with them. An operation rather than a field update, because ownership answers "whose work is this" in every list and report: a silent change is a set of numbers that stop reconciling with no record of why. It writes envelope.ownership_transferred naming the previous owner, the new owner, the actor and the reason, in the same transaction as the change. The recipient must be an **active** member of the organisation: a departed colleague is exactly who an envelope is transferred away from, and transferring it back to them is the mistake this refuses. Transferring to the current owner succeeds, changes nothing and writes no event, so a retry is safe: `transferred` says which happened.

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

  • toUserIdstringrequired1 to 64 characters
  • reasonstring1 to 500 characters

Response 200

The envelope, its new owner and its previous one.

Response fields
  • envelopeIdstring
  • ownerIdstring
  • previousOwnerIdstring
  • transferredboolean

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/transfer \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "toUserId": "tou_6Hn3kQw8"
  }'
Response 200
{
  "envelopeId": "env_8kR4tZp1",
  "ownerId": "own_6Hn3kQw8",
  "previousOwnerId": "pre_6Hn3kQw8",
  "transferred": true
}

GET/envelopes/{id}/certificate

Download the completion certificate

A PDF that states who signed, when, how each signer was identified, the hash of what each was shown, the sealed document's hash and the audit chain head. It is built once, by the seal, before the envelope is COMPLETED, and sealed and timestamped the way the document is; it is never rebuilt on request. Its SHA-256 is in the envelope.completed audit record and is the ETag here. Before completion there is none, and the answer is NOT_FOUND.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired

Response 200

The certificate bytes

Errors

Request
curl https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/certificate \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
"example"

POST/envelopes/{id}/duplicate

Copy an envelope to a new draft

Reads the source and creates a new DRAFT of the same type; the source is never modified, so its state does not constrain the call and neither ENVELOPE_NOT_DRAFT nor ENVELOPE_TERMINAL is returned. Items are copied from the ORIGINAL revision, never a signed one. externalId is never inherited.

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

  • titlestring1 to 500 characters
  • externalIdstringat most 255 characters
  • teamIdstring or any or null
  • folderIdstring or any or null

Response 201

The new draft

Response fields
  • 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
  • itemsarray of object
    • idstring
    • positioninteger
    • filenamestring
    • mimeTypestring
    • pageCountinteger or any or null
  • partiesarray of object
    • idstring
    • rolestring

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

    • roleLabelstring or any or null
    • namestring or any or null
    • emailstring or any or null
    • signingOrderintegerat least -9007199254740991
    • dispatchAfterstring or any or null
    • statusstring
    • witnessedPartyIdstring or any or null
    • hasAccessCodeboolean
  • fieldsarray of object
    • idstring
    • itemIdstring
    • partyIdstring
    • typestring

      One of "SIGNATURE", "FREE_SIGNATURE", "INITIALS", "STAMP", "NAME", "EMAIL", "PHONE", "JOB_TITLE", "COMPANY", "DATE", "TEXT", "NUMBER", "CHECKBOX", "RADIO", "DROPDOWN", "CELLS", "IMAGE", "ATTACHMENT", "SIGNATURE_MEANING"

    • pageintegerat least -9007199254740991
    • xnumber
    • ynumber
    • wnumber
    • hnumber
    • requiredboolean
    • readOnlyboolean
    • groupKeystring or any or null

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/duplicate \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Ruiz Landscaping services agreement"
  }'
Response 201
{
  "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",
  "items": [
    {
      "id": "env_8kR4tZp1",
      "position": 1,
      "filename": "ruiz-landscaping-services-agreement.pdf",
      "mimeType": "application/pdf",
      "pageCount": 1
    }
  ],
  "parties": [
    {
      "id": "env_8kR4tZp1",
      "role": "SIGNER",
      "roleLabel": "example",
      "name": "Dana Ruiz",
      "email": "dana.ruiz@example.com",
      "signingOrder": 1,
      "dispatchAfter": "2026-11-03T16:51:04.087Z",
      "status": "example",
      "witnessedPartyId": "wit_6Hn3kQw8",
      "hasAccessCode": true
    }
  ],
  "fields": [
    {
      "id": "env_8kR4tZp1",
      "itemId": "itm_5Qn2wLr6",
      "partyId": "pty_3Hd7cVx9",
      "type": "SIGNATURE",
      "page": 1,
      "x": 0.118,
      "y": 0.46,
      "w": 0.353,
      "h": 0.05,
      "required": true,
      "readOnly": true,
      "groupKey": "example"
    }
  ]
}

POST/envelopes/{id}/save-as-template

Copy a document to a new template

As duplicate, but the result is a TEMPLATE. ENVELOPE_TYPE_MISMATCH if the source is already a template: duplicating a template is spelled duplicate.

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

  • titlestring1 to 500 characters
  • externalIdstringat most 255 characters
  • teamIdstring or any or null
  • folderIdstring or any or null

Response 201

The new template

Response fields
  • 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
  • itemsarray of object
    • idstring
    • positioninteger
    • filenamestring
    • mimeTypestring
    • pageCountinteger or any or null
  • partiesarray of object
    • idstring
    • rolestring

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

    • roleLabelstring or any or null
    • namestring or any or null
    • emailstring or any or null
    • signingOrderintegerat least -9007199254740991
    • dispatchAfterstring or any or null
    • statusstring
    • witnessedPartyIdstring or any or null
    • hasAccessCodeboolean
  • fieldsarray of object
    • idstring
    • itemIdstring
    • partyIdstring
    • typestring

      One of "SIGNATURE", "FREE_SIGNATURE", "INITIALS", "STAMP", "NAME", "EMAIL", "PHONE", "JOB_TITLE", "COMPANY", "DATE", "TEXT", "NUMBER", "CHECKBOX", "RADIO", "DROPDOWN", "CELLS", "IMAGE", "ATTACHMENT", "SIGNATURE_MEANING"

    • pageintegerat least -9007199254740991
    • xnumber
    • ynumber
    • wnumber
    • hnumber
    • requiredboolean
    • readOnlyboolean
    • groupKeystring or any or null

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/save-as-template \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Ruiz Landscaping services agreement"
  }'
Response 201
{
  "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",
  "items": [
    {
      "id": "env_8kR4tZp1",
      "position": 1,
      "filename": "ruiz-landscaping-services-agreement.pdf",
      "mimeType": "application/pdf",
      "pageCount": 1
    }
  ],
  "parties": [
    {
      "id": "env_8kR4tZp1",
      "role": "SIGNER",
      "roleLabel": "example",
      "name": "Dana Ruiz",
      "email": "dana.ruiz@example.com",
      "signingOrder": 1,
      "dispatchAfter": "2026-11-03T16:51:04.087Z",
      "status": "example",
      "witnessedPartyId": "wit_6Hn3kQw8",
      "hasAccessCode": true
    }
  ],
  "fields": [
    {
      "id": "env_8kR4tZp1",
      "itemId": "itm_5Qn2wLr6",
      "partyId": "pty_3Hd7cVx9",
      "type": "SIGNATURE",
      "page": 1,
      "x": 0.118,
      "y": 0.46,
      "w": 0.353,
      "h": 0.05,
      "required": true,
      "readOnly": true,
      "groupKey": "example"
    }
  ]
}

POST/envelopes/{id}/instantiate

Create a document from a template

As duplicate, but the source must be a TEMPLATE and the result is a DOCUMENT. ENVELOPE_TYPE_MISMATCH if the source is a document.

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

  • titlestring1 to 500 characters
  • externalIdstringat most 255 characters
  • teamIdstring or any or null
  • folderIdstring or any or null

Response 201

The new document

Response fields
  • 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
  • itemsarray of object
    • idstring
    • positioninteger
    • filenamestring
    • mimeTypestring
    • pageCountinteger or any or null
  • partiesarray of object
    • idstring
    • rolestring

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

    • roleLabelstring or any or null
    • namestring or any or null
    • emailstring or any or null
    • signingOrderintegerat least -9007199254740991
    • dispatchAfterstring or any or null
    • statusstring
    • witnessedPartyIdstring or any or null
    • hasAccessCodeboolean
  • fieldsarray of object
    • idstring
    • itemIdstring
    • partyIdstring
    • typestring

      One of "SIGNATURE", "FREE_SIGNATURE", "INITIALS", "STAMP", "NAME", "EMAIL", "PHONE", "JOB_TITLE", "COMPANY", "DATE", "TEXT", "NUMBER", "CHECKBOX", "RADIO", "DROPDOWN", "CELLS", "IMAGE", "ATTACHMENT", "SIGNATURE_MEANING"

    • pageintegerat least -9007199254740991
    • xnumber
    • ynumber
    • wnumber
    • hnumber
    • requiredboolean
    • readOnlyboolean
    • groupKeystring or any or null

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/instantiate \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Ruiz Landscaping services agreement"
  }'
Response 201
{
  "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",
  "items": [
    {
      "id": "env_8kR4tZp1",
      "position": 1,
      "filename": "ruiz-landscaping-services-agreement.pdf",
      "mimeType": "application/pdf",
      "pageCount": 1
    }
  ],
  "parties": [
    {
      "id": "env_8kR4tZp1",
      "role": "SIGNER",
      "roleLabel": "example",
      "name": "Dana Ruiz",
      "email": "dana.ruiz@example.com",
      "signingOrder": 1,
      "dispatchAfter": "2026-11-03T16:51:04.087Z",
      "status": "example",
      "witnessedPartyId": "wit_6Hn3kQw8",
      "hasAccessCode": true
    }
  ],
  "fields": [
    {
      "id": "env_8kR4tZp1",
      "itemId": "itm_5Qn2wLr6",
      "partyId": "pty_3Hd7cVx9",
      "type": "SIGNATURE",
      "page": 1,
      "x": 0.118,
      "y": 0.46,
      "w": 0.353,
      "h": 0.05,
      "required": true,
      "readOnly": true,
      "groupKey": "example"
    }
  ]
}

POST/envelopes/{id}/cancel

Cancel a pending envelope

PENDING only: the owner's half of the state machine's three exits from it. A DRAFT has asked nobody for anything, so the operation on one is DELETE; a terminal envelope has already stopped. Party statuses are left exactly as they are: a party who opened the document did open it, and rewriting that would make the record say something false about what a person did. Party tokens are not destroyed either: the envelope status is what refuses them. Live signing sessions are ended in the same transaction, and nothing already signed is undone: CANCELLED still permits a partial download.

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

  • reasonstring1 to 1000 characters

Response 200

Cancelled, with the number of signing sessions ended

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
  • sessionsEndedinteger

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/cancel \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
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"
  },
  "sessionsEnded": 1
}