Add e-signatures to your app in 3 API calls
Upload the PDF, create the envelope, send it. That's the whole integration. Here is each call with a copy-paste example, plus how to get status updates without polling.
Most products that need signatures end up with the same messy workaround: export a PDF, email it, wait, chase, download the signed copy and upload it back. An e-signature API replaces all of that with a few lines of code, and your users never leave your product.
With SignYourDox the whole flow is three API calls. Here is each one.
Before you start: get an API key
In SignYourDox, go to Settings → API and create a key. It looks like sydx_<id>.<secret> and goes in the Authorization header of every call. Give each key a name, such as "CRM" or "Onboarding app". That name appears on every envelope the key creates, so you always know where an envelope came from.
Step 1: Upload the PDF
Send one or more PDF files as multipart/form-data. Each file can be up to 25 MB. You get back a mediaId for each file.
curl -X POST https://<host>/api/v1/documents \
-H 'Authorization: sydx_<id>.<secret>' \
-F 'files=@vendor-agreement.pdf'
# → { "data": [{ "mediaId": "3c9f…", "originalFileName": "vendor-agreement.pdf" }] }Step 2: Create the envelope
An envelope holds the documents, the recipients and the email they receive. This is also where you set reminders, expiry and signing order. Add tags with your own record id, so you can match envelopes and webhook events to your data later.
curl -X POST https://<host>/api/v1/envelops \
-H 'Authorization: sydx_<id>.<secret>' \
-H 'Content-Type: application/json' \
-d '{
"envelopName": "Q3 Vendor Agreement",
"emailSubject": "Please sign: Q3 Vendor Agreement",
"emailMessage": "Hi Jane, please review and sign the agreement.",
"reminderFrequency": 3,
"expireInDays": 14,
"documents": [{ "media": { "id": "3c9f…" }, "documentName": "Vendor Agreement" }],
"recipients": [{
"name": "Jane Doe",
"email": "jane@example.com",
"recipientRole": "NEEDS_TO_SIGN",
"signingOrder": 1
}],
"tags": [{ "name": "externalId", "value": "vendor-4471" }]
}'
# → { "data": { "envelopId": "e1f2…", "documents": [{ "documentId": "d1d1…" }] } }| Option | What it does |
|---|---|
recipientRole | NEEDS_TO_SIGN, IN_PERSON_SIGNER or RECEIVES_A_COPY |
signingOrder | With hasSigningOrder on, recipients sign step by step. The same number means they sign at the same time. |
reminderFrequency | How often, in days, unsigned recipients are reminded. |
expireInDays | How long recipients have to sign before the envelope expires. |
tags | Your own name/value pairs. They come back on every response and webhook. |
Step 3: Place the fields and send
Tell SignYourDox where each recipient signs. Each field has a type, the document and page it belongs to, a position and a size, and the email of the recipient who fills it in. As soon as this call succeeds, the recipients get their emails.
curl -X POST https://<host>/api/v1/envelops/e1f2…/send \
-H 'Authorization: sydx_<id>.<secret>' \
-H 'Content-Type: application/json' \
-d '{
"fields": [{
"recipientEmail": "jane@example.com",
"documentId": "d1d1…",
"fieldType": "SIGNATURE",
"page": 1,
"coordinateX": 60,
"coordinateY": 700,
"width": 150,
"height": 50,
"required": true
}]
}'
# → { "data": { "status": "SENT", "sendDate": "…", "expireDate": "…" } }Step 4 (optional): know when it's signed
You have two ways to follow an envelope:
- Ask:
GET /api/v1/envelops/{id}returns its status and each recipient's status.GET /api/v1/envelopslists your envelopes, filtered by status if you like. - Be told: register a webhook and SignYourDox calls your server when anything happens. This is the better option. See 12 webhook event types.
When the envelope is completed, download the signed PDF, the completion certificate and the audit trail through the API, and store them next to your own record.
Why teams pick this API
- Small surface. Upload, create, send, read. No SDK required, just HTTPS and JSON.
- Clear errors. A wrong recipient email, a non-PDF file or a second send of the same envelope gets a plain-English message telling you what to fix.
- One account, two doors. Envelopes you create through the API show up in the web app, so your team can follow them like any other.
- Priced for volume. Paid plans include unlimited envelopes. See how we keep the cost per envelope tiny.
The full reference, with every field and error, is in your account under Settings → API. Create a free account to get a key.