API reference

Fields

Place, move and remove signature and text fields, prefill them, and read what was entered.

POST/envelopes/{id}/fields

Place fields on a draft

Batch by default: a twenty-field envelope should be two calls, not twenty-one. A field names its party and its item by ID, and both must belong to the envelope in the path: a field pointing at another envelope's party is a signature box assigned to someone who was never sent this document. page >= 1 is enforced; that the page is within the document is not, because pageCount is not yet populated.

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

  • fieldsarray of objectrequired
    • 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"

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

Response 201

The fields as placed

Response fields
  • 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/fields \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "fields": [
      {
        "type": "SIGNATURE",
        "partyId": "pty_3Hd7cVx9",
        "itemId": "itm_5Qn2wLr6",
        "page": 1,
        "x": 0.118,
        "y": 0.46,
        "w": 0.353,
        "h": 0.05
      }
    ]
  }'
Response 201
{
  "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}/fields

Move or change fields on a draft

Keyed by field ID. Moving a field to another party is ordinary: it is the most common correction in an editor. Geometry changes as a whole: x, y, w and h are sent together, because the bounds rule relates x to w and y to h.

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

  • fieldsarray of objectrequired
    • idstringrequired
    • partyIdstring
    • itemIdstring
    • pageintegerat least 1
    • xnumber0 to 1
    • ynumber0 to 1
    • wnumber0 to 1
    • hnumber0 to 1
    • requiredboolean
    • readOnlyboolean
    • groupKeystring or any or null
    • metaobject

Response 200

The fields as they now stand

Response fields
  • 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 PATCH https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/fields \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "fields": [
      {
        "id": "env_8kR4tZp1",
        "page": 1,
        "x": 0.118,
        "y": 0.46
      }
    ]
  }'
Response 200
{
  "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"
    }
  ]
}

DELETE/envelopes/{id}/fields

Remove fields from a draft

IDs in the request body. A body on DELETE is deliberate: a query string grows past what proxies and access logs handle for a fifty-field deletion, and a POST that means delete lies about the method to work around a transport limit. An ID not on the envelope is NOT_FOUND rather than ignored, so a caller who mistypes one is told.

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

  • idsarray of stringrequired

Response 200

What was removed

Response fields
  • removedarray of string

Errors

Request
curl -X DELETE https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/fields \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "example"
    ]
  }'
Response 200
{
  "removed": [
    "example"
  ]
}

POST/envelopes/{id}/fields/prefill

Supply values before sending

Owner-supplied values: a reference number the signer should not have to type, a date the sender already knows. A signature can never be prefilled: SIGNATURE, FREE_SIGNATURE, INITIALS and STAMP are FIELD_NOT_PREFILLABLE, always, because a value the owner supplied is not the party's assent. A prefilled field is not a completed one: filledAt and filledByPartyId stay null. The value must fit the field's type, and a choice must select from the options the field declares.

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

  • fieldsarray of objectrequired
    • fieldIdstringrequired
    • valueobjectrequired

Response 200

How many fields were set

Response fields
  • prefilledinteger

Errors

Request
curl -X POST https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/fields/prefill \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "fields": [
      {
        "fieldId": "fld_2Lp8sKd4",
        "value": {
          "kind": "text",
          "text": "example"
        }
      }
    ]
  }'
Response 200
{
  "prefilled": 1
}

GET/envelopes/{id}/fields/values

Read collected values

Available in any state, not only after completion: an owner who cannot read back what they prefilled has no way to confirm it, and the values of a partially-signed envelope are what a sender chasing a stalled signature needs. Each entry says whether the value was PREFILLED by the owner or COMPLETED by a party, because those are different claims and the value alone does not say which.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired

Response 200

The values collected so far

Response fields
  • valuesarray of object
    • fieldIdstring
    • 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"

    • partyIdstring
    • sourcestring

      One of "PREFILLED", "COMPLETED"

    • valueany
    • valueSha256string or any or null
    • filledAtstring or any or null
    • filledByPartyIdstring or any or null

Errors

Request
curl https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/fields/values \
  -H "Authorization: Bearer $SIGNRS_TOKEN"
Response 200
{
  "values": [
    {
      "fieldId": "fld_2Lp8sKd4",
      "type": "SIGNATURE",
      "partyId": "pty_3Hd7cVx9",
      "source": "PREFILLED",
      "value": null,
      "valueSha256": "911ace9523082a02cc5ad406e09f58a4a02bf07b8f9d44dfc6287e64989a1f3e",
      "filledAt": "2026-11-03T16:51:04.087Z",
      "filledByPartyId": "fil_6Hn3kQw8"
    }
  ]
}