Documents
Full reference for the SignYu documents API - create, add signers, send, and retrieve documents.
A document represents a PDF and its signers. It moves through three states: PENDING (created, not yet sent), SENT (out for signature), and COMPLETED (all signers have signed).
Create a document
POST /api/v1/documents
Uploads a PDF and creates a document in PENDING state. Send the request as multipart/form-data.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | The PDF to be signed. Must be application/pdf and at most 10MB. |
name | string | No | A label for the document. Defaults to the file name. |
replyTo | string (email) | No | Address that receives signer replies to SignYu's signing emails (signature request, completion). An invalid email returns 400 invalid_request. |
notifySigners | "true" or "false" | No | false stops SignYu emailing signers for this document: no signing-request email and no completion email. Defaults to true. |
notifyOwner | "true" or "false" | No | false stops SignYu emailing you (the account owner) when the document is completed. Defaults to true. |
The reply-to address is chosen in this order: the per-document replyTo, then the reply-to setting on your account (dashboard Settings), then your account login email. The effective address is returned as replyTo when you create or get a document.
Sending signing links yourself
To handle all communication with signers from your own system, create the document with notifySigners=false. SignYu then sends signers no emails at all. After you send the document, share each signer's signUrl (returned by the send call and by GET /documents/{documentId}) from your own email, SMS or app. Signers still see and can download their signed copy on the signing page once everyone has signed.
Add notifyOwner=false if you also don't want SignYu's completion email to your account. Use webhooks or GET /documents/{documentId} to know when the document is complete and to download the signed PDF and certificate. Both values are returned as notifySigners and notifyOwner when you create or get a document. Any value other than true or false returns 400 invalid_request.
Show your organisation name to signers
SignYu can show your registered organisation name to signers, as "Requested by" on the signing page, in the signing emails and on the completion certificate, with minimal SignYu branding. To keep signers safe from impersonation, we set the name for you after checking it against your company or GST details. Contact us with your registered name and GSTIN to switch it on. It applies to every document sent from your account.
curl -X POST https://signyu.com/api/v1/documents \
-H "Authorization: Bearer sk_live_your_api_key" \
-F "file=@/path/to/agreement.pdf" \
-F "name=Service Agreement" \
-F "[email protected]"
Node.js (SDK):
const doc = await signyu.documents.create({
file: readFileSync("/path/to/agreement.pdf"), // Buffer, Uint8Array, ArrayBuffer or Blob
fileName: "agreement.pdf",
name: "Service Agreement",
replyTo: "[email protected]", // optional
notifySigners: false, // optional: you send the signing links yourself
notifyOwner: false, // optional: no completion email to you
});
Python (SDK):
doc = client.documents.create(
file="/path/to/agreement.pdf",
name="Service Agreement",
reply_to="[email protected]",
notify_signers=False, # optional
notify_owner=False, # optional
)
Response
Returns 201 Created.
{
"documentId": "b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c",
"name": "Service Agreement",
"status": "PENDING",
"replyTo": "[email protected]",
"notifySigners": true,
"notifyOwner": true
}
Add signers
POST /api/v1/documents/{documentId}/signers
Adds one or more signers. Only allowed while the document is PENDING. When you send the document, every signer gets their signing link at once and they can sign in any order, one at a time. signingOrder (the order you add signers) only sets each signer's default signature position. A document can have at most 6 signers.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
signers | array | Yes | A non-empty array of signer objects. |
signers[].name | string | Yes | The signer's full name. |
signers[].phone | string | Yes | Digits only, at least 10 characters. |
signers[].email | string | Yes | A valid email address. The signing link is emailed here. |
signers[].advanced | object | No | Optional advanced options. Omit to use the default fixed signature slot. |
signers[].advanced.signaturePlacement | object | No | Custom stamp rectangles for this signer. |
signers[].advanced.signaturePlacement.positions | array | Yes (when placement is set) | One rectangle per page (min 1, max 20). Duplicate pages are rejected. |
positions[].page | integer | Yes | 1-based PDF page index. |
positions[].x | number | Yes | Left edge in PDF points. |
positions[].y | number | Yes | Bottom edge in PDF points (origin = bottom-left of the page). |
positions[].width | number | Yes | Box width in PDF points (minimum 140). |
positions[].height | number | Yes | Box height in PDF points (minimum 110). |
curl -X POST https://signyu.com/api/v1/documents/{documentId}/signers \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "signers": [{ "name": "Asha Rao", "phone": "9876543210", "email": "[email protected]" }] }'
Node.js:
await signyu.documents.addSigners(documentId, [
{ name: "Asha Rao", phone: "9876543210", email: "[email protected]" },
]);
Python:
client.documents.add_signers(document_id, [
{"name": "Asha Rao", "phone": "9876543210", "email": "[email protected]"},
])
Advanced: signature placement
By default each signer gets a fixed stamp slot on every page. To place the Aadhaar stamp yourself, pass advanced.signaturePlacement when adding that signer. Placement is set only at create time; it cannot be changed after the signer is added.
The stamp (Aadhaar seal + Signed by + Date) must fit inside each rectangle. Use a box of at least 140 × 110 PDF points.
Coordinate system
All values are in PDF points. Origin is the bottom-left of the page:
| Field | Meaning |
|---|---|
x | Distance from the left edge to the left of the box |
y | Distance from the bottom edge to the bottom of the box |
width / height | Size of the box |
If you measure a box in a top-left tool (pdf.js, many PDF UIs) where y grows downward:
// pageHeight = page.getViewport({ scale: 1 }).height (PDF points)
const yBottom = pageHeight - yTop - height;
const position = {
page: 1, // 1-based
x: xLeft,
y: yBottom, // send this as y
width,
height,
};
Example on a Letter page (pageHeight = 792): a box drawn at top-left (31, 443) with size 253 × 110 becomes { x: 31, y: 239, width: 253, height: 110 } because 792 - 443 - 110 = 239.
One stamp on one page
curl -X POST https://signyu.com/api/v1/documents/{documentId}/signers \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"signers": [{
"name": "Asha Rao",
"phone": "9876543210",
"email": "[email protected]",
"advanced": {
"signaturePlacement": {
"positions": [
{ "page": 2, "x": 31, "y": 257, "width": 253, "height": 110 }
]
}
}
}]
}'
With the SDKs, pass the same advanced object on the signer:
await signyu.documents.addSigners(documentId, [
{
name: "Asha Rao",
phone: "9876543210",
email: "[email protected]",
advanced: {
signaturePlacement: {
positions: [{ page: 2, x: 31, y: 257, width: 253, height: 110 }],
},
},
},
]);
client.documents.add_signers(document_id, [{
"name": "Asha Rao",
"phone": "9876543210",
"email": "[email protected]",
"advanced": {
"signaturePlacement": {
"positions": [{"page": 2, "x": 31, "y": 257, "width": 253, "height": 110}],
},
},
}])
Different pages, different boxes
Each entry in positions must use a distinct page. Up to 20 rectangles per signer.
curl -X POST https://signyu.com/api/v1/documents/{documentId}/signers \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"signers": [{
"name": "Asha Rao",
"phone": "9876543210",
"email": "[email protected]",
"advanced": {
"signaturePlacement": {
"positions": [
{ "page": 1, "x": 50, "y": 100, "width": 200, "height": 120 },
{ "page": 2, "x": 50, "y": 500, "width": 200, "height": 120 }
]
}
}
}]
}'
Rules and common mistakes
| Rule | Detail |
|---|---|
Omit advanced | Signer uses the default fixed slot (same as the dashboard product). |
page | Integer ≥ 1. Pages beyond the PDF length may fail at signing time. |
| Box size | width ≥ 140 and height ≥ 110, or the API returns 400 invalid_request. |
| Duplicate pages | Two positions with the same page for one signer → 400 invalid_request. |
Top-left y sent as-is | Stamp appears in the wrong vertical place. Convert with pageHeight - yTop - height first. |
| Mix of signers | Some signers can use placement and others can omit it on the same document. |
Invalid placement returns 400 with error: "invalid_request" and a message describing the field (for example width too small or duplicate page).
Response
Returns 201 Created with the created signers and their assigned signing order. When placement was set, it is echoed under advanced.signaturePlacement.
{
"signers": [
{
"signerId": "s_1",
"name": "Asha Rao",
"email": "[email protected]",
"signingOrder": 1,
"advanced": {
"signaturePlacement": {
"positions": [
{ "page": 2, "x": 31, "y": 257, "width": 253, "height": 110 }
]
}
}
}
]
}
Send for signature
POST /api/v1/documents/{documentId}/send
Deducts one credit per signer, marks the document SENT, emails a signing link to each signer (unless the document was created with notifySigners=false), and returns those links. Requires at least one signer. The request has no body.
curl -X POST https://signyu.com/api/v1/documents/{documentId}/send \
-H "Authorization: Bearer sk_live_your_api_key"
Node.js:
const sent = await signyu.documents.send(documentId);
Python:
sent = client.documents.send(document_id)
Response
{
"documentId": "b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c",
"status": "SENT",
"creditsRemaining": 48,
"signers": [
{
"signerId": "s_1",
"name": "Asha Rao",
"email": "[email protected]",
"signingOrder": 1,
"signUrl": "https://signyu.com/sign?did=b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c&sid=s_1"
}
]
}
If you do not have enough credits, the request returns 402 insufficient_credits and nothing is sent.
Retrieve a document
GET /api/v1/documents/{documentId}
Returns the document, each signer's progress, and a downloadUrl for the signed PDF once the document is COMPLETED. The download URL is a temporary, presigned link. When the document is COMPLETED, certificateUrl points at the on-demand completion certificate and audit trail PDF endpoint (Bearer auth required). replyTo is the effective reply-to address used for signer emails, and notifySigners and notifyOwner show whether SignYu emails signers and you for this document. Each signer's signUrl is null until the document is sent, and is populated once the status is SENT. When a signer was created with custom placement, advanced.signaturePlacement is included on that signer.
curl https://signyu.com/api/v1/documents/{documentId} \
-H "Authorization: Bearer sk_live_your_api_key"
Node.js:
const document = await signyu.documents.get(documentId);
Python:
document = client.documents.get(document_id)
Response
{
"documentId": "b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c",
"name": "Service Agreement",
"status": "COMPLETED",
"createdAt": "2026-07-17T06:30:00.000Z",
"updatedAt": "2026-07-17T07:15:00.000Z",
"completedAt": "2026-07-17T07:15:00.000Z",
"downloadUrl": "https://s3.ap-south-1.amazonaws.com/...",
"certificateUrl": "https://signyu.com/api/v1/documents/b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c/certificate",
"signers": [
{
"signerId": "s_1",
"name": "Asha Rao",
"email": "[email protected]",
"phone": "9876543210",
"signingOrder": 1,
"openedAt": "2026-07-17T07:00:00.000Z",
"signedAt": "2026-07-17T07:05:00.000Z",
"hasSigned": true,
"signUrl": "https://signyu.com/sign?did=b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c&sid=s_1",
"advanced": {
"signaturePlacement": {
"positions": [
{ "page": 2, "x": 31, "y": 257, "width": 253, "height": 110 }
]
}
}
}
]
}
Download completion certificate
GET /api/v1/documents/{documentId}/certificate
Returns a PDF containing the Signature Completion Certificate and chronological Audit Trail. Available only when the document status is COMPLETED. Returns 409 invalid_state if the document is not yet complete.
curl https://signyu.com/api/v1/documents/{documentId}/certificate \
-H "Authorization: Bearer sk_live_your_api_key" \
-o completion-certificate.pdf
Node.js:
const pdf = await signyu.documents.getCertificate(documentId); // Uint8Array
writeFileSync("completion-certificate.pdf", pdf);
Python:
with open("completion-certificate.pdf", "wb") as fh:
fh.write(client.documents.get_certificate(document_id))
List documents
GET /api/v1/documents
Returns your documents, most recent first, with a summary of signer progress.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Number of documents to return (1 to 100). |
offset | number | 0 | Number of documents to skip. |
curl "https://signyu.com/api/v1/documents?limit=20&offset=0" \
-H "Authorization: Bearer sk_live_your_api_key"
Node.js:
const { documents } = await signyu.documents.list({ limit: 20, offset: 0 });
Python:
page = client.documents.list(limit=20, offset=0)
Response
{
"documents": [
{
"documentId": "b6b1f0e2-1c9a-4a1e-9b1a-2f3d4e5a6b7c",
"name": "Service Agreement",
"status": "SENT",
"createdAt": "2026-07-17T06:30:00.000Z",
"signers": { "total": 2, "signed": 1 }
}
],
"limit": 20,
"offset": 0
}