Skip to content

Fundamentals

Pagination

Page through SignatureAPI list endpoints: set the page size with limit, follow the next and previous links, and fetch every page with a short loop.

All endpoints that list objects provide support for pagination.

Paginated responses return items in reverse chronological order, such that the most recently created object will be returned first on the list and the oldest will be returned last.

The result includes a links object with a previous and a next property. Do a GET to the URLs in those properties to fetch the previous or next page of results.

Following pagination links
Following pagination links4 parts: GET /v1/envelopes, Page 1, Page 2, Last page. Connections: GET /v1/envelopes to Page 1 (returns); Page 1 to Page 2 (links.next); Page 2 to Last page (links.next).GET /v1/envelopesPage 1Page 2Last pagereturnslinks.nextlinks.next
GET /v1/envelopesPage 1Page 2Last pagereturnslinks.nextlinks.next
Diagram as text

Parts

  • GET /v1/envelopes: The first request. Add limit to set the page size.
  • Page 1: Newest objects. links.previous is null.
  • Page 2: Reached by a GET to page 1's links.next.
  • Last page: Oldest objects. links.next is null.

Connections

  • GET /v1/envelopes to Page 1: returns
  • Page 1 to Page 2: links.next
  • Page 2 to Last page: links.next

Query parameters

limitinteger

The maximum number of objects to return in the response, from 1 to 20. The default is 20.

A value above 20 returns a 422 validation error. To get more results, follow the next link instead.

List endpoints also take their own filters, such as status and topic on List Envelopes.

Attributes

Paginated responses share a common structure using cursor-based pagination.

Links to fetch the next and previous page of the paginated result.

Treat these URLs as opaque strings. Do not try to parse or construct them.
dataArray of objects

An array of objects, sorted in reverse chronological order by creation date.

Example

The first page of envelopes, two per page. links.next points to the second page, and links.previous is null because this is the first page.

First page
GET /v1/envelopes?limit=2 HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
200 OK
{
  "links": {
    "next": "https://api.signatureapi.com/v1/envelopes?cursor=seq_0thJdKRhN4&limit=2",
    "previous": null
  },
  "data": [
    {
      "id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
      "title": "Offer Letter",
      "label": "Offer Letter for Maria Garcia",
      "message": "Welcome to Acme Corp! Please review and sign your offer letter.",
      "status": "in_progress",
      "mode": "test",
      "routing": "sequential",
      "language": "en",
      "timezone": "America/New_York",
      "timestamp_format": "MM/DD/YYYY HH:mm:ss",
      "attestation": "none",
      "branding": {
        "logo": "https://api.signatureapi.com/v1/uploads/upl_42NTdNnkg6dGLx8jR1X1wm",
        "accent_color": "#9810fa",
        "email": {
          "from": "noreply@signatureapi.com",
          "footer": "**Confidential:** this email is intended only for the named recipient.",
          "logo_position": "left"
        }
      },
      "sender": {
        "name": "Acme Corp Legal",
        "email": "legal@acme.example",
        "organization": "Acme Corp"
      },
      "topics": [
        "hr",
        "onboarding"
      ],
      "metadata": {
        "candidate_ref": "hr-2210"
      },
      "documents": [
        {
          "id": "doc_0Pwd2LsJXeWGOJQwRctqC1",
          "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
          "key": "offer_letter",
          "title": "Offer Letter",
          "page_count": 1,
          "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-offer-letter-template.docx",
          "format": "docx",
          "data": {
            "candidateName": "Maria Garcia",
            "position": "Product Designer",
            "startDate": "December 1, 2026",
            "salary": "$92,000"
          },
          "fixed_positions": [],
          "places": [
            {
              "key": "candidate_signs_here",
              "type": "signature",
              "recipient_key": "candidate",
              "height": 60
            }
          ]
        }
      ],
      "recipients": [
        {
          "id": "re_1mdt9PluVuu4QIhYYe8R1P",
          "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
          "type": "approver",
          "key": "hiring_manager",
          "name": "Alex Chen",
          "email": "alex.chen@example.com",
          "status": "completed",
          "ceremony": {
            "authentication": [
              {
                "type": "email_link",
                "subject_override": null,
                "message_override": null
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "completed_at": "2026-11-02T16:42:10.000Z",
          "status_updated_at": "2026-11-02T16:42:10.000Z"
        },
        {
          "id": "re_2f0wBwlt2te0kjU5QeL3Nl",
          "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
          "type": "signer",
          "key": "candidate",
          "name": "Maria Garcia",
          "email": "maria.garcia@example.com",
          "status": "sent",
          "ceremony": {
            "authentication": [
              {
                "type": "email_code"
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "signature_options": [
            "typed",
            "drawn"
          ],
          "completed_at": null,
          "status_updated_at": "2026-11-02T16:42:12.000Z"
        }
      ],
      "deliverable": {
        "id": "del_4l3fQxvjRTltbPbzIbOlmK",
        "name": null,
        "envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
        "type": "standard",
        "status": "pending",
        "url": null,
        "language": "en",
        "timezone": "America/New_York",
        "timestamp_format": "MM/DD/YYYY HH:mm:ss",
        "included_documents": [
          "offer_letter"
        ],
        "password": null,
        "created_at": "2026-11-02T16:30:00.000Z",
        "generated_at": null
      },
      "captures": {},
      "snapshot_url": null,
      "created_at": "2026-11-02T16:30:00.000Z",
      "completed_at": null
    },
    {
      "id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "title": "Service Agreement",
      "label": "Service Agreement for Acme Corp onboarding",
      "message": "Please review the agreement and provide your signature.",
      "status": "completed",
      "mode": "test",
      "routing": "parallel",
      "language": "en",
      "timezone": "UTC",
      "timestamp_format": "MM/DD/YYYY HH:mm:ss",
      "attestation": "none",
      "branding": {
        "logo": null,
        "accent_color": "#2463eb",
        "email": {
          "from": "noreply@signatureapi.com",
          "footer": null,
          "logo_position": "left"
        }
      },
      "sender": {
        "name": "Acme Corp Legal",
        "email": "legal@acme.example",
        "organization": "Acme Corp"
      },
      "topics": [
        "sales"
      ],
      "metadata": {
        "customer_ref": "acme-1042"
      },
      "documents": [
        {
          "id": "doc_4YvlxUZN28CeonDq6rTbvk",
          "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
          "key": "service_agreement",
          "title": "Service Agreement",
          "page_count": 1,
          "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-service-agreement.pdf",
          "format": "pdf",
          "fixed_positions": [],
          "places": [
            {
              "key": "client_signs_here",
              "type": "signature",
              "recipient_key": "client",
              "height": 60
            },
            {
              "key": "provider_signs_here",
              "type": "signature",
              "recipient_key": "provider",
              "height": 60
            }
          ]
        }
      ],
      "recipients": [
        {
          "id": "re_49r1R2jpPDz8hSpP75ZkPp",
          "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
          "type": "signer",
          "key": "client",
          "name": "Jane Doe",
          "email": "jane.doe@example.com",
          "status": "completed",
          "ceremony": {
            "authentication": [
              {
                "type": "email_link",
                "subject_override": null,
                "message_override": null
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "signature_options": [
            "typed",
            "drawn"
          ],
          "completed_at": "2026-11-02T14:41:02.000Z",
          "status_updated_at": "2026-11-02T14:41:02.000Z"
        },
        {
          "id": "re_4VP9v4uPj6jwZzQ14CG2O8",
          "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
          "type": "signer",
          "key": "provider",
          "name": "John Smith",
          "email": "john.smith@example.com",
          "status": "completed",
          "ceremony": {
            "authentication": [
              {
                "type": "email_link",
                "subject_override": null,
                "message_override": null
              }
            ],
            "redirect_url": null,
            "redirect_delay": 3,
            "embeddable_in": [],
            "url_variant": "standard",
            "url": null
          },
          "delivery_type": "email",
          "ceremony_creation": "automatic",
          "signature_options": [
            "typed",
            "drawn"
          ],
          "completed_at": "2026-11-02T15:21:40.000Z",
          "status_updated_at": "2026-11-02T15:21:40.000Z"
        }
      ],
      "deliverable": {
        "id": "del_6FF89lKNyTNamOJCJd1tLL",
        "name": null,
        "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
        "type": "standard",
        "status": "generated",
        "url": "https://vault.signatureapi.com/envelopes/eb4cf433-a8af-4161-b37b-7ef57d423e56/deliverables/del_6FF89lKNyTNamOJCJd1tLL/sealed.pdf?Expires=1794240000&Signature=EXAMPLE_SIGNATURE&Key-Pair-Id=EXAMPLE_KEY_ID",
        "language": "en",
        "timezone": "UTC",
        "timestamp_format": "MM/DD/YYYY HH:mm:ss",
        "included_documents": [
          "service_agreement"
        ],
        "password": null,
        "created_at": "2026-11-02T14:03:11.000Z",
        "generated_at": "2026-11-02T15:21:45.000Z"
      },
      "captures": {},
      "snapshot_url": null,
      "created_at": "2026-11-02T14:03:11.000Z",
      "completed_at": "2026-11-02T15:21:40.000Z"
    }
  ]
}

Errors every call can return are in Errors and Authentication.

Fetch every page

Request the first page, collect its data, and follow links.next until it is null. Send the API key with every request, including the ones that follow a link.

Node.js
const envelopes = [];
let url = "https://api.signatureapi.com/v1/envelopes?limit=20";

while (url) {
  const res = await fetch(url, { headers: { "X-API-Key": process.env.SIGNATUREAPI_KEY } });
  if (!res.ok) throw new Error(`Request failed with status ${res.status}`);
  const page = await res.json();
  envelopes.push(...page.data);
  url = page.links.next;
}
Python
import os
import requests

envelopes = []
url = "https://api.signatureapi.com/v1/envelopes?limit=20"

while url:
    res = requests.get(url, headers={"X-API-Key": os.environ["SIGNATUREAPI_KEY"]})
    res.raise_for_status()
    page = res.json()
    envelopes.extend(page["data"])
    url = page["links"]["next"]

Each request counts toward your rate limit. For long lists, handle 429 responses as described there.