API reference

Documents and uploads

Upload a PDF, attach it to an envelope, rename, remove or download it.

POST/uploads

Request a presigned upload target

The URL is bound to the declared length and type, both signed into it, so a PUT carrying different bytes is refused by storage rather than reconciled afterwards. A declared sha256 is signed in too. The response is the whole credential: the URL is not stored and not retrievable a second time.

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

  • filenamestringrequired1 to 255 characters
  • mimeTypestringrequired1 to 255 characters
  • byteLengthintegerrequired
  • sha256string

Response 201

The handle and its presigned target

Response fields
  • uploadIdstring
  • urlstringuri
  • methodstring
  • headersobject
  • expiresAtstringdate-time

Errors

Request
curl -X POST https://api.signrs.com/api/v1/uploads \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "ruiz-landscaping-services-agreement.pdf",
    "mimeType": "application/pdf",
    "byteLength": 2492
  }'
Response 201
{
  "uploadId": "upl_7Bv3mTq2",
  "url": "https://example.com/hooks/signrs",
  "method": "PUT",
  "headers": {},
  "expiresAt": "2026-11-03T16:51:04.087Z"
}

PATCH/envelopes/{id}/items/{itemId}

Rename or move an item

Positions stay dense and ordered from zero: moving the third document to the front renumbers the two it passed. A caller supplies only the position they want and never has to know the others changed, which is why the whole list comes back. A position past the end means last.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • itemIdpath · 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

  • filenamestring1 to 255 characters
  • positioninteger
  • uploadIdstring

Response 200

Every item, in its new order

Response fields
  • itemsarray of object
    • idstring
    • positioninteger
    • filenamestring
    • mimeTypestring
    • pageCountinteger or any or null
  • fieldsReanchoredinteger

Errors

Request
curl -X PATCH https://api.signrs.com/api/v1/envelopes/env_8kR4tZp1/items/itm_5Qn2wLr6 \
  -H "Authorization: Bearer $SIGNRS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "ruiz-landscaping-services-agreement.pdf"
  }'
Response 200
{
  "items": [
    {
      "id": "env_8kR4tZp1",
      "position": 1,
      "filename": "ruiz-landscaping-services-agreement.pdf",
      "mimeType": "application/pdf",
      "pageCount": 1
    }
  ]
}

DELETE/envelopes/{id}/items/{itemId}

Remove an item from a draft

The item's fields go with it and the response says how many. The upload behind it is released only where no revision outside this item references the same object, because a copy of the envelope points at the same bytes. Removing the last item is allowed: an envelope with no documents is a legitimate draft, and "at least one document" is a distribute precondition.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • itemIdpath · 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 removed

Response fields
  • idstring
  • fieldsRemovedinteger
  • uploadsReleasedinteger

Errors

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

GET/envelopes/{id}/items/{itemId}/download

Download an item

Serves the bytes of one revision. stage picks which; omitted, it serves the item's current revision: the most complete version that exists. Download is never inhibited: no response carries a header, wrapper or content type intended to prevent saving, printing or copying, because UETA 8(b) makes a record unenforceable against a recipient whose ability to print or store it was inhibited. The ETag is the revision's recorded SHA-256, so a caller can check what they received without a second call. A stage nobody has produced is NOT_FOUND rather than an empty body.

Authentication API token or Sender session

Parameters

  • idpath · stringrequired
  • itemIdpath · stringrequired
  • stagequery · string

Response 200

The document bytes

Errors

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