API guide

OpenAPI file

Send documents from your own website, CRM or booking tool, follow them as they're signed, and let clients sign inside your own app. Everything uses your templates, so the documents look exactly like the ones you send by hand.

Keys

Make a key in Settings, Developers. It is shown once, so store it somewhere safe. Send it on every request:

Authorization: Bearer knox_...

A full access key can create, send, remind and void. A read only key can list documents, read their status and download files. Revoke a key at any time; anything using it stops working at once. Every call is recorded in the access log under the key's name.

All addresses below start with /api/v1.

Quick start

1. Find the template and its roles

curl -H "Authorization: Bearer $KEY" /templates

Each template lists its roles (for example "Client") and its fields. Boxes with a label can be filled in for you through values.

2. Create and send a document

curl -X POST /documents \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "template_id": "TEMPLATE_ID",
    "external_id": "booking-1042",
    "recipients": [{ "role": "Client", "name": "Jordan Lee", "email": "[email protected]", "verify": "email" }],
    "values": { "Shoot date": "2026-12-12", "Package": "Full day" },
    "lock_values": true
  }'

The client gets the usual email with their personal link. The response is the document, with each recipient's signing_url in case you'd rather deliver it yourself. Pass "send": false to create a draft and send it later with POST /documents/{id}/send.

3. Know when it's signed

Add a webhook and wait for document.completed, then download the signed PDF:

curl -H "Authorization: Bearer $KEY" -o signed.pdf /documents/DOCUMENT_ID/pdf

The signed PDF carries the Certificate of Completion, the digital seal and the trusted timestamp. Anyone can check it at /verify.

Endpoints

EndpointWhat it does
GET/meChecks your key. Returns the firm name, the key's name and access.
GET/templatesYour templates, with roles and fields.
GET/templates/{id}One template.
POST/documentsCreates a document from a template and sends it (unless send is false).
GET/documentsNewest first. Filter with status or external_id; page with limit (up to 100) and starting_after.
GET/documents/{id}Status, recipients, and every field's value.
POST/documents/{id}/sendSends a draft.
POST/documents/{id}/remindEmails a reminder to whoever is up next.
POST/documents/{id}/voidCancels a document that is out for signature. Body: { "reason": "..." }.
GET/documents/{id}/pdfThe signed PDF. Returns 409 until everyone has signed.
GET/documents/{id}/originalThe PDF as uploaded.
GET/documents/{id}/auditThe full event history.
POST/documents/{id}/recipients/{rid}/embedA single-use signing address for embedded signing.

The document object

{
  "id": "Rk2...", "object": "document", "title": "Wedding Agreement", "status": "sent",
  "ref": "K7Q2-9MPD", "external_id": "booking-1042", "template_id": "Tp9...",
  "created_at": "2026-11-23T10:02:11.000Z", "sent_at": "...", "completed_at": null, "expires_at": "...",
  "recipients": [{ "id": "Sg4...", "name": "Jordan Lee", "email": "[email protected]", "type": "signer",
                   "status": "viewed", "verify": "email", "viewed_at": "...", "signed_at": null }],
  "fields": [{ "label": "Package", "type": "dropdown", "recipient_id": "Sg4...", "value": "Full day" }],
  "files": { "original": ".../original", "signed": null, "audit": ".../audit" }
}

Statuses: draft, sent, completed, declined, voided, expired, and purged (deleted under your retention rule; the reference, dates and fingerprints remain).

Webhooks

Add an endpoint in Settings, Developers. Each event is a POST with a JSON body:

{
  "id": "evt_...", "object": "event", "type": "document.completed", "created": "2026-11-23T10:15:00.000Z",
  "data": { "document": { "id": "Rk2...", "status": "completed", "ref": "K7Q2-9MPD", "external_id": "booking-1042" },
            "recipient": { "id": "Sg4...", "name": "Jordan Lee", "status": "signed" } }
}
EventWhen
document.sentThe document went out.
recipient.viewedA recipient opened it for the first time.
recipient.signedOne person signed (and paid, if a payment was due).
document.completedEveryone signed. The sealed PDF is ready.
document.declinedSomeone declined to sign.
document.voidedYou cancelled it.
document.expiredThe deadline passed.
payment.succeededA deposit or fee was paid through Stripe.
recipient.reassignedA signer passed it to someone else.
recipient.updatedYou corrected a recipient's name or email.
document.purgedIt was deleted under your retention rule.

Check the signature

Every request carries SignKnox-Signature: t=1763892900,s0=.... s0 is an HMAC-SHA256 of t + "." + raw body with your endpoint's secret. After you make a new secret, events carry an s1 signed with the old one for 24 hours. Reject events older than five minutes.

// Node.js (Express): use the raw body, not parsed JSON
const crypto = require('crypto');
app.post('/hooks/signknox', express.raw({ type: 'application/json' }), (req, res) => {
  const parts = Object.fromEntries(req.get('SignKnox-Signature').split(',').map((p) => p.split('=')));
  const want = crypto.createHmac('sha256', process.env.SIGNKNOX_SECRET).update(`${parts.t}.${req.body}`).digest('hex');
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  const ok = [parts.s0, parts.s1].filter(Boolean).some((s) => s.length === want.length && crypto.timingSafeEqual(Buffer.from(s), Buffer.from(want)));
  if (!fresh || !ok) return res.status(400).end();
  const event = JSON.parse(req.body);
  // ... handle event.type ...
  res.status(200).end();
});

Delivery

Answer with any 2xx within 10 seconds. Redirects are not followed, and addresses on private networks are refused. A failed event is retried after 5 minutes, 30 minutes, 2, 5, 10 and 20 hours. After 10 failures in a row the endpoint is turned off and you're emailed. Every delivery is listed under Deliveries, where you can retry one by hand. The same event can arrive twice, so use id to ignore repeats.

Embedded signing

Let a client sign inside your own app instead of from an email. Give the recipient a client_user_id (your own id for them) when you create the document. They are not emailed a link.

"recipients": [{ "role": "Client", "name": "Jordan Lee", "email": "[email protected]", "client_user_id": "user_381" }]

When they're ready to sign, ask for a signing address. It works once and lasts five minutes, so ask for it right before you show it:

curl -X POST /documents/DOCUMENT_ID/recipients/RECIPIENT_ID/embed \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{ "client_user_id": "user_381" }'
# { "url": ".../embed/...", "expires_at": "..." }

Show it in an iframe. Only the sites listed on the key under Sites that may embed signing can frame it.

<iframe src="URL" style="width:100%;height:90vh;border:0"></iframe>
<script>
  addEventListener('message', (e) => {
    if (e.data?.type === 'signknox:completed' || e.data?.type === 'signknox:signed') { /* move on */ }
    if (e.data?.type === 'signknox:declined') { /* ask what happened */ }
  });
</script>

Messages: signknox:ready, signknox:signed, signknox:completed, signknox:declined and signknox:error. Rely on webhooks for anything that matters; messages are a convenience for your page. Not using an iframe? Pass a return_url and the page sends the signer back to it with ?event=signed, completed or declined.

Identity checks

Each recipient can be asked to prove it's them before the document opens. Set verify per recipient:

verifyHow it works
noneThe emailed link opens it.
codeA 6-digit code you give them yourself. The response includes it as access_code.
emailA one-time code is emailed to them when they open the link.
smsA one-time code is texted to phone (with country code, like +15551234567). Needs Twilio connected in Settings, Security.

Codes last 10 minutes; five wrong tries locks the link. The Certificate of Completion records how each person proved who they were.

Errors and limits

{ "error": { "code": "missing_recipients", "message": "Add a recipient for: Client" } }

400 something in the request needs fixing, 401 the key is missing, wrong or revoked, 403 the key is read only, 404 not found, 409 the document isn't in a state that allows this, 429 too many requests. Each key may make 1,000 requests an hour; X-RateLimit-Remaining shows what's left and Retry-After says when to try again.