Skip to content

Developers

The easysign API

Send PDFs for signature from your own software, follow them while they are being signed, and download the signed copy with its audit certificate.

Base URLhttps://geteasysign.app/api/v1

OpenAPI reference (JSON)
On this page

Overview

With the easysign API you send PDFs for signature from your own software, or from tools such as Zapier, Make and n8n, without opening the app. You follow each document while it is being signed, and download the signed PDF and its audit certificate when it is done.

A typical integration

  1. Upload the PDF with its signers and the place where each of them signs, and send it: one request.

  2. Follow the status: poll the document or the event feed, or let a webhook tell you.

  3. Download the signed PDF and the audit certificate, and keep them with your own records.

Base URL
https://geteasysign.app/api/v1

Every path on this page is relative to this base URL. Always use https and exactly this host. Don’t rely on redirects: many HTTP clients drop the Authorization header when they follow one.

Requests and answers are JSON in UTF-8, except the upload (multipart) and the downloads (PDF). Times are ISO 8601 in UTC, such as 2026-10-25T09:12:03Z; give the ones you send with a time zone. Ids are UUIDs.

The full reference, with every field and error code of every request, is the OpenAPI 3.1 description at https://geteasysign.app/api/v1/openapi.json. Import it in Postman or Insomnia, or generate a client from it.

Authentication

Every request carries an API key in the Authorization header:

With every requestHTTP
Authorization: Bearer es_live_…

Administrators of an organization create keys in the app, under Settings → API. Give each key a name, such as the integration it is for, and choose what it may do:

  • Read only: fetch documents, downloads, events and credits (documents:read).
  • Read and write: also create, send, change, cancel and delete documents, send reminders and manage webhooks (documents:write).

The key starts with es_live_ and is shown once, when you create it. Put it in your integration’s secret store: we only keep a fingerprint of it and can’t show it again. Lost it? Revoke it and create a new one.

A key acts as the administrator who created it. That person is the sender of every document the key creates: the signers see their name in the invitation, and it is on the audit certificate. Should documents go out in someone else’s name? Then that administrator creates the key.

Revoke a key under Settings → API whenever you want: it stops working at once. A key also stops working when the person who created it leaves the organization, and after its expiry date, if you gave it one.

To check a key, call GET /me. It answers with the key, the user it acts for and the organization; Zapier and Make call it to test a connection.

Testing a keyShell
curl https://geteasysign.app/api/v1/me \
  -H "Authorization: Bearer $EASYSIGN_API_KEY"
AnswerJSON
{
  "api_key": {
    "id": "0199f0b7-3c2a-7e41-9b8d-5a6c7d8e9f01",
    "name": "CRM integration",
    "prefix": "es_live_k7Qm",
    "scopes": ["documents:read", "documents:write"],
    "expires_at": null
  },
  "user": {
    "id": "0199e1a2-4b3c-7d5e-8f60-718293a4b5c6",
    "name": "Sarah Peeters",
    "email": "sarah@example.be"
  },
  "organization": {
    "id": "0199e1a2-4b3c-7d5e-8f60-0a1b2c3d4e5f",
    "name": "Peeters & Partners"
  }
}

A missing, unknown, revoked or expired key gets 401 invalid_api_key. A read-only key that tries to change something gets 403 insufficient_scope.

Treat a key like a password: keep it on your server, never in a web page, a mobile app or a code repository. Use one key per integration, so you can revoke one without stopping the others.

Creating and sending a document

One request uploads the PDF, adds the signers with their signature boxes and sends it: POST /documents, as multipart/form-data with two parts:

  • file: the PDF, at most 20 MB, without a password and not signed yet.
  • data (optional): a JSON object with the fields below. Without it, or without send, the document stays a draft that you complete step by step.
Uploading and sending in one requestShell
curl https://geteasysign.app/api/v1/documents \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -H "Idempotency-Key: deal-4711-agreement" \
  -F file=@agreement.pdf \
  -F 'data={
    "title": "Service agreement 4711",
    "message": "Please sign before Friday.",
    "signing_order": "sequential",
    "expires_at": "2026-12-31T23:00:00Z",
    "external_id": "deal-4711",
    "metadata": { "crm": "pipedrive", "deal": 4711 },
    "send": true,
    "signers": [
      {
        "name": "An Peeters",
        "email": "an@example.be",
        "locale": "nl",
        "level": "qualified",
        "anchor": "[[sign:1]]"
      },
      {
        "name": "Julie Dubois",
        "email": "julie@example.be",
        "locale": "fr",
        "level": "simple",
        "field": { "page": 3, "x": 320, "y": 90, "w": 200, "h": 60 }
      }
    ]
  }'

# A long JSON can come from a file: -F 'data=<document.json'

The fields of data

The fields of data
FieldMeaning
titleThe title the signers see; at most 300 characters. Default: the file name.
messageA message for the signers, in their invitation; at most 2,000 characters.
signing_orderany (default): everyone is invited at once. sequential: one after the other, in the order of position.
expires_atThe signing deadline. Default: 30 days after sending.
external_idYour own reference, such as a deal or case number; at most 255 characters. It comes back in every answer and every event, and GET /documents?external_id=… finds the document by it.
metadataUp to 20 keys of your own (1 to 40 letters, digits or _ . -), each with a text of at most 500 characters, a number, true, false or null. You get them back as you sent them.
signersThe signers, at most 50: see the next table.
sendtrue: send right away; every signer then needs a box. Default: false.

Each signer

Each signer
FieldMeaning
nameFull name, at most 200 characters.
emailWhere the invitation goes; one address per signer.
localenl, fr or en: the language of the emails and of the signature stamp. Default: your organization’s language.
levelsimple (default, 1 credit): the signer opens the link in the email and types their name, on any device. qualified (2 credits): a qualified signature with the Belgian eID card, on a computer with a card reader.
position1, 2, 3…: the order in a sequential document. Default: the order of the list.
field | anchorWhere the signature goes: a box with coordinates (field) or a text in the PDF (anchor), one of the two. See Placing signature boxes.
Sending reserves each signer’s credits: 1 credit for a simple signature, 2 credits for a qualified one. Without enough available credits the answer is 402 insufficient_credits; GET /credits tells you what is available.

The answer

The answer is the document, as GET /documents/{id} returns it: 201 Created, or 202 Accepted when the send is queued. Every upload is scanned for viruses first, and a send that comes in while the scan is still running waits for it. send.state says where the send stands:

The values of send.state
ValueMeaning
not_requestedNo send was asked for: the document is a draft.
queuedThe send waits for the virus scan, usually a few seconds, and then becomes sent or failed by itself.
sentThe signers are invited: the status is out_for_signature, or already further.
failedThe send did not go through and the document is still a draft. send.error holds the error code, such as file_infected or insufficient_credits. The sender also gets an email, and the event document.send_failed is published. Once the cause is fixed, send again with POST /documents/{id}/send.

Credits and the email limits are checked when you make the request, so those errors come back at once, even when the send is queued.

Answer: 202 Accepted (shortened)JSON
{
  "id": "0199f0c2-5a1e-7c3b-9d4e-2f6a8b1c0d3e",
  "external_id": "deal-4711",
  "metadata": { "crm": "pipedrive", "deal": 4711 },
  "title": "Service agreement 4711",
  "status": "draft",
  "signing_order": "sequential",
  "send": { "state": "queued", "requested_at": "2026-10-25T09:00:02Z", "error": null },
  "scan_status": "pending",
  "page_count": 4,
  "signed_count": 0,
  "signer_count": 2,
  "signers": [
    {
      "id": "0199f0c2-5a2f-7a10-8b2c-3d4e5f6a7b8c",
      "name": "An Peeters",
      "email": "an@example.be",
      "locale": "nl",
      "level": "qualified",
      "position": 1,
      "status": "pending",
      "field": { "page": 4, "x": 72, "y": 118.5, "w": 200, "h": 60 }
    }
  ],
  "expires_at": "2026-12-31T23:00:00Z",
  "kept_until": null,
  "files": {
    "original": "https://geteasysign.app/api/v1/documents/0199f0c2-5a1e-7c3b-9d4e-2f6a8b1c0d3e/file?version=original",
    "latest": "https://geteasysign.app/api/v1/documents/0199f0c2-5a1e-7c3b-9d4e-2f6a8b1c0d3e/file?version=latest",
    "signed": null,
    "audit_certificate": null
  }
}

Step by step

You can also build a document in several requests: upload the file without send, then complete the draft.

Step by step
RequestMeaning
POST /documentsUpload the PDF, with or without data. Without send, it stays a draft.
PUT /documents/{id}/signersReplace the draft’s signers: always the whole list, each with their box, with the same fields as in signers.
PATCH /documents/{id}Change the title, message, signing order or deadline of a draft, and the external_id and metadata at any time. Only the fields you send change.
POST /documents/{id}/sendSend the draft: 200, or 202 while the virus scan is running.
DELETE /documents/{id}Delete a draft (204). A document that was sent can’t be deleted: cancel it.
POST /documents/{id}/cancelStop a document that is out for signature. The credits that were not used are released, and the invited signers are told.
POST /documents/{id}/signers/{signer_id}/remindEmail an invited signer their link again; at most once an hour per signer (429 remind_too_soon).
The same, step by stepShell
# 1. Upload: without "send" the document stays a draft
curl https://geteasysign.app/api/v1/documents \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -F file=@agreement.pdf

# 2. The signers, each with a box (always the whole list)
curl -X PUT https://geteasysign.app/api/v1/documents/$DOCUMENT_ID/signers \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[{ "name": "An Peeters", "email": "an@example.be", "anchor": "[[sign:1]]" }]'

# 3. Send it: 200, or 202 while the upload is being virus scanned
curl -X POST https://geteasysign.app/api/v1/documents/$DOCUMENT_ID/send \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -H "Idempotency-Key: send-$DOCUMENT_ID"

Placing signature boxes

Each signer has one box, in which their signature stamp is printed. Give it as coordinates (field) or as a text printed in the PDF (anchor).

Coordinates: field

field has the page (1 for the first) and x, y, w and h: the bottom-left corner, the width and the height of the box, in PDF points (1/72 inch; an A4 page is 595 × 842). The origin is the bottom-left corner of the page as it is displayed: its rotation and visible area (the CropBox) are taken into account, so you measure what you see.

The box must be at least 180 × 50 points (422 field_too_small) and lie within the page (422 field_outside_page). The document’s pages gives the displayed width and height of each page.

xywh0, 0

For example, a box of 200 × 60 at 40 points from the right and bottom edges of an A4 page: x = 595 − 40 − 200 = 355 and y = 40.

A signer with a boxJSON
{
  "name": "Julie Dubois",
  "email": "julie@example.be",
  "field": { "page": 2, "x": 355, "y": 40, "w": 200, "h": 60 }
}

A text in the PDF: anchor

Do you generate the PDF yourself, from a CRM, a Word template or a document generator? Then print a marker where the signature goes, such as [[sign:1]], and give that text as the anchor. We look it up in the PDF and put the bottom-left corner of the box at the bottom-left of the text.

Signers with an anchorJSON
{
  "signers": [
    { "name": "An Peeters", "email": "an@example.be", "anchor": "[[sign:1]]" },
    {
      "name": "Julie Dubois",
      "email": "julie@example.be",
      "anchor": { "text": "[[sign:2]]", "y_offset": -20, "w": 220, "h": 70 }
    }
  ]
}

A string is the text, with a box of 200 × 60. An object has the text and, if you want, x_offset and y_offset (in points, added to the position: a negative y_offset moves the box down) and w and h (default 200 and 60). A box that would stick out of the page is moved inside it.

  • The text must occur exactly once in the PDF: 422 anchor_not_found when it isn’t there, anchor_ambiguous when it occurs more than once. Give each signer their own marker: [[sign:1]], [[sign:2]].
  • Whitespace is ignored, so a marker that the PDF spaces out or splits up ([[sign: 1]]) is still found.
  • It must be real text. A marker in an image, such as a scan, or in a font without a Unicode mapping, can’t be found. If you can select and copy it in a PDF reader, it usually works.
  • The box follows the rules of field: at least 180 × 50 points.
The stamp is printed over the marker and covers it. To be sure it never shows, print the marker in white or in a tiny font: it is still real text, so it is still found.

Following the status

Every answer with a document gives its status and that of each signer, the counters signed_count and signer_count, and under files the downloads available so far.

Document status

Document status
ValueMeaning
draftBeing prepared, not sent yet.
out_for_signatureSent, waiting for one or more signatures.
completedEveryone signed.
declinedA signer declined, so the document is closed.
expiredThe deadline passed before everyone signed.
cancelledThe sender cancelled the document.

Signer status

Signer status
ValueMeaning
pendingNot invited yet: in a sequential document, it isn’t their turn.
invitedInvited, hasn’t signed yet.
signedSigned, at signed_at.
declinedDeclined, at declined_at, with the decline_reason if they gave one. That closes the document.

Three ways to keep up

Choose what suits your integration, or let a webhook call you instead.

One document: ETag

GET /documents/{id} answers with an ETag header. Send it back in If-None-Match when you poll again: as long as nothing changed, the answer is 304 Not Modified, without a body.

Polling one documentShell
# The first poll: note the ETag header of the answer
curl -i https://geteasysign.app/api/v1/documents/$DOCUMENT_ID \
  -H "Authorization: Bearer $EASYSIGN_API_KEY"

# The next polls: 304 Not Modified, without a body, while nothing changed
curl -i https://geteasysign.app/api/v1/documents/$DOCUMENT_ID \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -H 'If-None-Match: "3f9a1c0e8b7d6a5f4e3d2c1b0a998877"'

Changed documents: updated_since

GET /documents lists the organization’s documents by their last change, updated_at. To sync, ask for the documents changed since the last updated_at you processed (updated_since), oldest first (order=asc), and follow next_cursor (pass it as cursor) until it is null. Filter with status (repeatable) and external_id; limit is 1 to 100, 25 by default.

Syncing changed documentsShell
curl -G https://geteasysign.app/api/v1/documents \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  --data-urlencode "updated_since=2026-10-25T08:00:00Z" \
  -d order=asc \
  -d limit=100

# Then the same request with -d cursor=<next_cursor>, until next_cursor is null

Let each sync start a minute or so before the last updated_at you saw, and skip what you already have: a change is timestamped when it starts, so a slow one can show up a moment later.

A signer’s own steps, such as being invited or opening the document, don’t change updated_at: follow those in the event feed.

Everything that happens: the event feed

GET /events lists what happened to the organization’s documents, oldest first. Keep the id of the last event you processed and pass it as after the next time. The answer’s next_after is the value to keep (null when nothing new came in: keep yours), and has_more says whether more are waiting. Filter with types (repeatable, or separated by commas) and document_id; limit is 1 to 100, 50 by default.

With order=desc you get the newest first (page back with before), the way Zapier’s polling triggers want it. An event appears 30 seconds after it happened, so that a cursor never skips one.

Reading the event feedShell
curl -G https://geteasysign.app/api/v1/events \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -d after=0199f0c4-1d2e-7f30-9a4b-5c6d7e8f9a0b \
  -d types=signer.signed,document.completed
AnswerJSON
{
  "items": [
    {
      "id": "0199f0d8-7e6f-7a51-8c3d-2b1a09f8e7d6",
      "type": "signer.signed",
      "created_at": "2026-10-25T09:12:03Z",
      "document_id": "0199f0c2-5a1e-7c3b-9d4e-2f6a8b1c0d3e",
      "external_id": "deal-4711",
      "signer_id": "0199f0c2-5a2f-7a10-8b2c-3d4e5f6a7b8c"
    }
  ],
  "next_after": "0199f0d8-7e6f-7a51-8c3d-2b1a09f8e7d6",
  "has_more": false
}

An event holds ids and its type, never personal data: fetch the document when you need names or addresses.

Event types
EventMeaning
document.sentThe document was sent.
signer.invitedA signer was invited; in a sequential document, when it is their turn.
signer.viewedA signer opened the document.
signer.signedA signer signed.
signer.declinedA signer declined.
document.completedEveryone signed: the signed PDF is ready.
document.declinedThe document was closed because a signer declined.
document.expiredThe deadline passed before everyone signed.
document.cancelledThe document was cancelled.
document.send_failedA queued send failed: see send.error.
How often should you poll? Once a minute is plenty for most integrations, and stays far within the limits. Poll the event feed rather than every document, or use a webhook when you want to know at once.

Webhooks

With a webhook, we call you: every event is POSTed to a URL of yours as soon as it happens, without polling.

Add a webhook in the app, under Settings → API, or let an integration subscribe itself with POST /webhooks, with a key that can write:

Subscribing a webhookShell
curl https://geteasysign.app/api/v1/webhooks \
  -H "Authorization: Bearer $EASYSIGN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: crm-webhook-1" \
  -d '{
    "url": "https://crm.example.be/hooks/easysign",
    "event_types": ["document.completed", "document.declined", "document.send_failed"],
    "description": "CRM: closed deals"
  }'
Answer: 201 CreatedJSON
{
  "id": "0199f0e1-2a3b-7c4d-8e5f-60718293a4b5",
  "url": "https://crm.example.be/hooks/easysign",
  "description": "CRM: closed deals",
  "event_types": ["document.completed", "document.declined", "document.send_failed"],
  "enabled": true,
  "disabled_reason": null,
  "created_at": "2026-10-25T09:30:00Z",
  "secret": "whsec_…"
}

event_types lists the events you want; an empty list means all of them. The answer carries the secret that signs the deliveries, once: store it. GET /webhooks lists the key’s webhooks and DELETE /webhooks/{id} removes one. A key only sees and manages the webhooks it created, and they are deleted when the key is revoked. An organization has at most 20 webhooks.

The URL must use https and resolve to a public address. We don’t follow redirects.

What we send

A POST with the event as JSON, in the same shape as in the event feed, with these headers:

The headers of a webhook request
HeaderMeaning
Easysign-SignatureWhen it was sent, and the signature: see Verifying a webhook request.
Easysign-Event-IdThe event’s id. It stays the same when a delivery is retried.
Easysign-Event-TypeThe event type, such as document.completed.
A webhook requestHTTP
POST /hooks/easysign HTTP/1.1
Host: crm.example.be
Content-Type: application/json
User-Agent: easysign-webhooks/1
Easysign-Signature: t=1792921317,v1=6f1c2a9e4b7d0c3f8a5e2b9d6c3f0a7e4b1d8c5f2a9e6b3d0c7f4a1e8b5d2c9f
Easysign-Event-Id: 0199f0e5-7b8c-7d9e-8f01-a2b3c4d5e6f7
Easysign-Event-Type: document.completed

{"id":"0199f0e5-7b8c-7d9e-8f01-a2b3c4d5e6f7","type":"document.completed","created_at":"2026-10-25T09:41:57Z","document_id":"0199f0c2-5a1e-7c3b-9d4e-2f6a8b1c0d3e","external_id":"deal-4711","signer_id":null}
  • Answer with any 2xx status within 10 seconds. Do the work after answering, in a queue for instance.
  • Any other answer, or none in time, is retried at growing intervals for about a day.
  • Delivery is at least once: an event can arrive twice and, after a retry, out of order. Skip the event ids you have already handled, and fetch the document when you need its current state.
  • A webhook that has failed for 3 days without a single success, or that answers 410 Gone, is switched off, and the organization’s administrators get an email. Switch it back on under Settings → API.
  • In Settings, the test button sends a ping event to the webhook, so you can check your endpoint.

Verifying a webhook request

Check every delivery before you trust it. Easysign-Signature holds t, the time of sending in Unix seconds, and v1: the HMAC-SHA256, in hexadecimal, of t, a dot and the raw body, with the webhook’s secret as the key.

The signature header
Easysign-Signature: t=<unix seconds>,v1=<signature>

signature = hex(HMAC-SHA256(key = the webhook's secret, message = t + "." + raw body))
  1. Take the raw body, before any JSON parsing: the signature covers the exact bytes we sent.

  2. Compute the HMAC and compare it with v1 in constant time.

  3. Refuse a t that is more than 5 minutes off, so an old delivery can’t be replayed.

Verifying in Python (Flask)Python
import hashlib
import hmac
import time

from flask import Flask, request

SECRET = "whsec_…"  # shown once, when the webhook was created
TOLERANCE = 5 * 60  # seconds


def verify(raw_body: bytes, header: str) -> bool:
    """True when the Easysign-Signature header matches the raw request body."""
    parts = dict(item.split("=", 1) for item in header.split(",") if "=" in item)
    try:
        timestamp = int(parts["t"])
    except (KeyError, ValueError):
        return False
    if abs(time.time() - timestamp) > TOLERANCE:
        return False  # too old (or too far ahead): it could be replayed
    message = f"{timestamp}.".encode() + raw_body
    expected = hmac.new(SECRET.encode(), message, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))


app = Flask(__name__)


@app.post("/hooks/easysign")
def easysign_webhook():
    if not verify(request.get_data(), request.headers.get("Easysign-Signature", "")):
        return "", 400
    event = request.get_json()
    # Delivery is at least once: skip an event["id"] you have already handled.
    # Answer within 10 seconds: hand the work to a background job.
    handle_later(event)
    return "", 204
Verifying in Node.js (Express)JavaScript
import crypto from "node:crypto";
import express from "express";

const SECRET = process.env.EASYSIGN_WEBHOOK_SECRET; // whsec_…, shown once
const TOLERANCE_SECONDS = 5 * 60;

function verify(rawBody, header = "") {
  const parts = {};
  for (const item of header.split(",")) {
    const at = item.indexOf("=");
    if (at > 0) parts[item.slice(0, at).trim()] = item.slice(at + 1).trim();
  }
  const timestamp = Number(parts.t);
  if (!Number.isInteger(timestamp)) return false;
  // Too old (or too far ahead): it could be replayed.
  if (Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false;
  const expected = crypto
    .createHmac("sha256", SECRET)
    .update(`${timestamp}.`)
    .update(rawBody)
    .digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}

const app = express();

// express.raw keeps the exact bytes: the signature covers the raw body, not parsed JSON.
app.post("/hooks/easysign", express.raw({ type: "application/json" }), (req, res) => {
  if (!verify(req.body, req.get("Easysign-Signature"))) return res.sendStatus(400);
  const event = JSON.parse(req.body.toString("utf8"));
  res.sendStatus(204); // answer within 10 seconds, then do the work
  // Delivery is at least once: skip an event.id you have already handled.
  handleLater(event);
});

app.listen(3000);

Downloads

GET /documents/{id}/file returns the PDF. version=latest (the default) is the current version, with the signatures so far: once the status is completed, that is the signed PDF. version=original is the PDF as you uploaded it.

GET /documents/{id}/audit-certificate returns the audit certificate: who did what, when and from where, with the signing certificates and the SHA-256 fingerprints of the original and the latest version. locale (nl, fr or en) chooses its language; by default, that of the key’s user. A draft has no certificate yet (409 document_is_draft).

Downloading the signed PDF and the audit certificateShell
# The signed PDF (until the document is completed: the current version)
curl --fail -o signed.pdf \
  "https://geteasysign.app/api/v1/documents/$DOCUMENT_ID/file?version=latest" \
  -H "Authorization: Bearer $EASYSIGN_API_KEY"

# The audit certificate, in French
curl --fail -o audit-certificate.pdf \
  "https://geteasysign.app/api/v1/documents/$DOCUMENT_ID/audit-certificate?locale=fr" \
  -H "Authorization: Bearer $EASYSIGN_API_KEY"

Every document answer also has these links, under files: signed and audit_certificate stay null until there is something to download. The links need the API key too.

We don’t keep documents forever. A document is deleted 3 months after your organization’s last payment, and never sooner than 3 months after it was finished; kept_until gives the earliest date. Download what you need to keep, for instance when document.completed comes in.

Retries, errors and limits

Retrying safely: Idempotency-Key

A network error doesn’t tell you whether your request arrived. So send an Idempotency-Key header with every POST: a value of your own, unique per operation, of up to 255 printable characters (a UUID, or deal-4711-agreement). Repeat the request with the same value and you get the first answer again, marked Idempotent-Replayed: true, instead of a second document or a second reservation of credits.

A replayed answerHTTP
HTTP/1.1 201 Created
Content-Type: application/json
Idempotent-Replayed: true
X-Request-Id: 9b2e7c4a1f0d4e3b8a6c5d2e1f0a9b8c
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 1792919580

An Idempotency-Key is remembered for 24 hours, per API key. The same value with a different request (another path or body) gets 422 idempotency_key_reused. A request that ended in an error isn’t remembered: its retry runs again.

Errors

An error comes with a fitting HTTP status and this body:

An errorJSON
{
  "error": {
    "code": "insufficient_credits",
    "message": "Not enough credits",
    "details": { "needed": 3, "available": 1 }
  }
}

code is stable: build on it. message is a short explanation in English, for people, and may change. details, when present, adds data, such as needed and available for insufficient_credits, or the list of problems (errors) for validation_error.

Common error codes
StatusCodeMeaning
401invalid_api_keyThe key is missing, unknown, revoked or expired, or its user left the organization.
403insufficient_scopeA read-only key tried to change something.
402insufficient_creditsNot enough credits available to send: see details.
404document_not_foundThere is no such document in your organization.
409document_not_draftThe document was already sent, so this change is no longer possible.
409document_not_openThe document is no longer out for signature.
413pdf_too_largeThe PDF is larger than 20 MB.
415not_a_pdfThe file is not a PDF.
422pdf_encryptedpdf_already_signedpdf_unreadableThe PDF is protected with a password, already signed or damaged.
422validation_errorA field is missing or invalid: details.errors says which.
422anchor_not_foundanchor_ambiguousThe anchor text isn’t in the PDF, or occurs more than once.
422field_too_smallfield_outside_pageA box is smaller than 180 × 50 points, or not within its page.
422missing_fieldsA signer has no box, so the document can’t be sent.
422idempotency_key_reusedThis Idempotency-Key was used for a different request.
429rate_limitedToo many requests: wait the number of seconds in Retry-After.
429email_rate_limitedYour organization sent too many emails recently: try again after Retry-After.
429remind_too_soonThis signer was reminded less than an hour ago: details.retry_after_seconds says how long to wait.

The reference lists every code each request can return. Retry other 5xx errors later, at growing intervals.

Limits

  • 120 requests a minute per key. Every answer says where you stand, in X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (in Unix seconds). Above it: 429 rate_limited, with Retry-After.
  • 60 uploads and 300 downloads an hour per key.
  • Every answer carries an X-Request-Id. Mention it when you contact us about a request: it lets us find it.

GET /credits gives the organization’s balance, the credits reserved by documents out for signature, and what is available for sending. Administrators buy credits in the app.

Compatibility

Version 1 only grows: we add fields, values and event types, but don’t remove or rename them. Ignore the fields and enum values you don’t know, so that a new one doesn’t break your integration.