Developers

Build on the signrs API

Send a document for signature from your own software in eight calls.

Send your first envelope

Eight calls take a PDF from your disk to a signed document and its evidence. Every request is JSON to https://api.signrs.com/api/v1.

  1. 1 Sign in

    Keep the token from the response and send it as Authorization: Bearer on every call after this one. An organisation API token works the same way.

    POST /auth/login

    Request
    curl -X POST https://api.signrs.com/api/v1/auth/login \
      -H "Content-Type: application/json" \
      -d '{
        "email": "dana.ruiz@example.com",
        "password": "your password"
      }'
    Response 200
    Response 200
    {
      "token": "example",
      "sessionId": "ses_6Hn3kQw8",
      "expiresAt": "2026-11-03T16:51:04.087Z",
      "user": {
        "id": "env_8kR4tZp1",
        "email": "dana.ruiz@example.com",
        "name": "Dana Ruiz",
        "emailVerifiedAt": "2026-11-03T16:51:04.087Z",
        "locale": "example",
        "timezone": "example"
      },
      "organisation": {
        "id": "env_8kR4tZp1",
        "name": "Dana Ruiz",
        "slug": "example"
      },
      "role": "OWNER",
      "scopes": [
        "example"
      ]
    }
  2. 2 Upload the PDF

    Ask for an upload target, then send the file's bytes to the URL it returns:

    Upload the bytes
    curl -X PUT "$UPLOAD_URL" \
      -H "Content-Type: application/pdf" \
      --data-binary @ruiz-landscaping-services-agreement.pdf

    Send the headers the ticket lists. The URL works once, for that file.

    POST /uploads

    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
    Response 201
    {
      "uploadId": "upl_7Bv3mTq2",
      "url": "https://example.com/hooks/signrs",
      "method": "PUT",
      "headers": {},
      "expiresAt": "2026-11-03T16:51:04.087Z"
    }
  3. 3 Create the envelope

    Attach the upload and add the people who sign. The response carries the envelope's ID.

    POST /envelopes

    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
    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"
        }
      ]
    }
  4. 4 Place a signature field

    Fields go on a page of a document, for a party. Every signer needs at least one signature field.

    POST /envelopes/{id}/fields

    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
    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"
        }
      ]
    }
  5. 5 Prepare the documents

    Fixes the bytes each signer will be shown, before anyone sees them.

    POST /envelopes/{id}/prepare

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

    With "EMAIL", each signer gets an invitation. With "NONE", the response gives you each signing link once, to deliver yourself.

    POST /envelopes/{id}/distribute

    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
    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"
    }
  7. 7 Follow what happens

    Poll for events, and resume from nextSince each time. Webhooks deliver the same events if you would rather be told.

    GET /events

    Request
    curl https://api.signrs.com/api/v1/events \
      -H "Authorization: Bearer $SIGNRS_TOKEN"
    Response 200
    Response 200
    {
      "nextSince": "18643",
      "hasMore": true,
      "events": [
        {
          "id": "env_8kR4tZp1",
          "sequence": "18643",
          "envelopeId": "env_8kR4tZp1",
          "type": "example",
          "occurredAt": "2026-11-03T16:51:04.087Z",
          "recordedAt": "2026-11-03T16:51:04.087Z",
          "data": {}
        }
      ]
    }
  8. 8 Collect the evidence

    When everyone has signed, the package holds the signed document and its audit trail.

    POST /envelopes/{id}/evidence-package

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

The same API the web app uses

The signrs web app is a client of the same public API you use. It cannot do anything the API cannot.

The API reference is generated from the same schemas the server validates every request against, and the build fails if it is out of date.