Quickstart: zero to a signed document in under 5 minutes
1. Create a free account and generate a key
Sign up free (no credit card), then open
Settings → API & AI Agents and click
Generate API key. Copy the key; it starts with
syd_ and is shown only once. The free plan
includes 15 signature requests a month, plenty for this
quickstart.
2. Connect your agent (MCP) or call the API (REST)
For an AI agent, paste the MCP config from
the MCP section into your client and add
your key. For code, send the key as
Authorization: Bearer YOUR_API_KEY to
https://signyodoc.com/api/v1.
3. Create a document and send it
Upload a PDF as base64, then send it to your signer. You get back a signing link per signer (they also get an email). Try it with the curl commands in the core flow.
4. Watch it complete and download the signed PDF
Poll GET /documents/{id} (or register a
webhook) until the status is
completed, then download the signed PDF and its
completion certificate. Your signer needs no account; they
sign from the email link.
Workflow recipes
Three complete workflows, exactly as they run against the live API. Each step shows the smallest thing that works, then one line on what just happened.
Recipe 1: Your first signed document with an AI agent (MCP)
No code at all: you paste one config block, then ask your agent in plain words. Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any other MCP client.
Step 1: Get a key and paste the config
Sign up free, open Settings → API & AI Agents, click Generate API key, and put the key in your MCP client's config:
{
"mcpServers": {
"signyodoc": {
"url": "https://signyodoc.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
What just happened: your agent can now see nine SignYoDoc tools (send, track, download, self-sign). Restart the client if it was already running.
Step 2: Ask in plain words
What just happened: the agent called get_account_info first to check your plan budget, then create_document with send: true, your PDF as base64, and Pat as the recipient with that access code.
Step 3: The signer signs from their email
Pat opens the email, clicks the link, enters the access code
Kiwi-42, and signs. No account, no password,
nothing to install.
What just happened: the send counted once against your monthly sends, the same as sending from the web app. The signing link in the agent's reply is the real one, so you can also pass it to Pat yourself.
Step 4: Ask for the signed PDF
What just happened: the agent called get_document_status (it returned completed), then download_signed_document, which handed back the finished PDF. Ask for kind: "certificate" and it brings the completion certificate instead.
That is the whole loop. The same conversation works for templates ("list my templates, then send the NDA template to…"), several signers, and signing orders; the agent picks the tools.
Recipe 2: Send from your app with the REST API
The same flow from your own code. Request and response bodies
below are the real shapes the live API returns (ids shortened).
Set KEY to a key from Settings → API & AI
Agents.
Step 1: Upload a PDF, get a draft
curl -X POST https://signyodoc.com/api/v1/documents \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Services Agreement",
"filename": "services-agreement.pdf",
"file_base64": "'"$(base64 -w0 services-agreement.pdf)"'"
}'
201 Created
{
"id": "aBcDeFgHiJ",
"title": "Services Agreement",
"status": "draft",
"created_at": "2026-11-27T20:52:05.247Z",
"sent_at": null,
"expires_at": "2026-12-12T20:52:05.247Z",
"signers": [],
"signed_count": 0,
"signer_count": 0
}
What just happened: the PDF is stored in your workspace as a draft. Nothing has been sent and no send has been used.
Step 2: Send it to your signer
curl -X POST https://signyodoc.com/api/v1/documents/aBcDeFgHiJ/send \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"recipients": [
{ "name": "Pat Signer", "email": "pat@example.com", "access_code": "Kiwi-42" }
]
}'
200 OK
{
"id": "aBcDeFgHiJ",
"status": "awaiting_signatures",
"sent_at": "2026-11-27T20:52:05.649Z",
"signers": [
{ "name": "Pat Signer", "email": "pat@example.com",
"signed": false, "signed_at": null }
],
"invites": [
{ "email": "pat@example.com",
"signing_url": "https://signyodoc.com/login/…",
"email_status": "sent" }
]
}
What just happened: one send was used, Pat got the invite email, and the response hands you the same signing link, so your app can show or forward it too. The access code means only someone who knows Kiwi-42 can open the document.
Step 3: Wait for the signature (poll, or use the webhook)
curl https://signyodoc.com/api/v1/documents/aBcDeFgHiJ \
-H "Authorization: Bearer $KEY"
200 OK
{
"id": "aBcDeFgHiJ",
"status": "completed",
"signers": [
{ "name": "Pat Signer", "email": "pat@example.com",
"signed": true, "signed_at": "2026-11-27T21:02:11.000Z" }
],
"download_url": "https://signyodoc.com/api/v1/documents/aBcDeFgHiJ/download",
"certificate_url": "https://signyodoc.com/…presigned link…"
}
What just happened: polling every 10-15 seconds is fine. Better: set a webhook URL in Settings once, and we POST document.completed to your server the moment this flips, signed so you can verify it (see Webhooks). Then skip polling entirely.
Step 4: Download the signed PDF and the certificate
curl https://signyodoc.com/api/v1/documents/aBcDeFgHiJ/download \
-H "Authorization: Bearer $KEY" -o signed.pdf
curl https://signyodoc.com/api/v1/documents/aBcDeFgHiJ/certificate \
-H "Authorization: Bearer $KEY" -o certificate.pdf
What just happened: you have the finished document and its completion certificate (the audit record of who signed, when, and from where). Ask too early and you get 409 document_not_completed instead of a broken file.
The same recipe in JavaScript (create and send in one call):
import fs from "node:fs";
const KEY = process.env.SIGNYODOC_API_KEY;
const BASE = "https://signyodoc.com/api/v1";
const headers = { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" };
const created = await fetch(`${BASE}/documents`, {
method: "POST", headers,
body: JSON.stringify({
title: "Services Agreement",
file_base64: fs.readFileSync("services-agreement.pdf").toString("base64"),
send: true,
recipients: [{ name: "Pat Signer", email: "pat@example.com", access_code: "Kiwi-42" }],
}),
}).then(r => r.json());
console.log(created.invites[0].signing_url); // the link Pat signs from
let doc = created;
while (doc.status !== "completed") {
await new Promise(r => setTimeout(r, 15000));
doc = await fetch(`${BASE}/documents/${created.id}`, { headers }).then(r => r.json());
}
const pdf = await fetch(`${BASE}/documents/${created.id}/download`, { headers });
fs.writeFileSync("signed.pdf", Buffer.from(await pdf.arrayBuffer()));
And in Python:
import base64, os, time
import requests
KEY = os.environ["SIGNYODOC_API_KEY"]
BASE = "https://signyodoc.com/api/v1"
H = {"Authorization": f"Bearer {KEY}"}
with open("services-agreement.pdf", "rb") as f:
pdf_b64 = base64.b64encode(f.read()).decode()
created = requests.post(f"{BASE}/documents", headers=H, json={
"title": "Services Agreement",
"file_base64": pdf_b64,
"send": True,
"recipients": [{"name": "Pat Signer", "email": "pat@example.com",
"access_code": "Kiwi-42"}],
}).json()
print(created["invites"][0]["signing_url"])
while True:
doc = requests.get(f"{BASE}/documents/{created['id']}", headers=H).json()
if doc["status"] == "completed":
break
time.sleep(15)
open("signed.pdf", "wb").write(
requests.get(f"{BASE}/documents/{created['id']}/download", headers=H).content)
Recipe 3: Automate self-signing
For documents only you sign: generated agreements, internal approvals, form letters. Self-signing completes instantly and never uses one of your monthly sends.
Step 1: Create the draft
curl -X POST https://signyodoc.com/api/v1/documents \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{ "title": "Approved Vendor Form", "file_base64": "<base64 PDF>" }'
# 201 -> { "id": "xYzAbCdEfG", "status": "draft", ... }
What just happened: same upload as Recipe 2. A draft with no signers is what self-sign expects.
Step 2: Sign it in your name
curl -X POST https://signyodoc.com/api/v1/documents/xYzAbCdEfG/self-sign \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{ "signature_name": "Alex Morgan" }'
# 200 -> { "id": "xYzAbCdEfG", "status": "completed", ... }
What just happened: your typed signature (or a PNG, via signature_image_base64) was placed on the last page, the document ran through the same completion pipeline as a guest signing, and a completion certificate was generated. Send count: unchanged.
Step 3: Download it like any finished document
curl https://signyodoc.com/api/v1/documents/xYzAbCdEfG/download \
-H "Authorization: Bearer $KEY" -o signed.pdf
What just happened: done, in seconds. Run this in a loop and you can self-sign a whole batch of generated documents; the rate limit is 120 requests a minute per key.
Get an API key
API keys live in the app under Settings → API & AI Agents. A key authenticates as your workspace (tenant), not as your personal login: documents an agent creates belong to the workspace and are visible in the app like any other document.
- Format:
syd_followed by 40 characters. The first 13 characters are the key's public prefix, shown in Settings so you can tell keys apart. - A key is shown exactly once, at creation. We store only a salted SHA-256 hash, so a lost key cannot be recovered; generate a new one.
- Up to 10 active keys per workspace (one per agent or environment is a good pattern).
- Revoking a key takes effect immediately; anything still using it gets
401 api_key_revoked. - Keys never expire on a schedule. Rotate them whenever a person or agent should lose access.
Treat a key like a password. Store it in your agent platform's secret or environment-variable config. Never commit it to a repo, paste it into a chat, or ship it in client-side code.
Authentication
Every REST and MCP request carries your key in one of two headers:
Authorization: Bearer syd_your_key_here
# or
X-API-Key: syd_your_key_here
Missing key: 401 missing_api_key. Unknown key:
401 invalid_api_key. Revoked key:
401 api_key_revoked. Error bodies are always JSON
with a stable machine-readable code and a message
written to tell you (or your agent) what to fix; see
error codes.
MCP server (Model Context Protocol)
SignYoDoc hosts a remote MCP server using the streamable HTTP transport, so any MCP client can connect without running anything locally:
https://signyodoc.com/api/mcp
Authentication is the same API key, sent as a Bearer header. The server is stateless per request and scopes every tool call to the key's workspace. If you are evaluating MCP e-signature servers, this is the whole setup: one URL, one header.
Client configs
Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json), and most MCP clients use this shape:
{
"mcpServers": {
"signyodoc": {
"url": "https://signyodoc.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Claude Code (terminal):
claude mcp add --transport http signyodoc https://signyodoc.com/api/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Windsurf (~/.codeium/windsurf/mcp_config.json) uses serverUrl for remote servers:
{
"mcpServers": {
"signyodoc": {
"serverUrl": "https://signyodoc.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
ChatGPT: use the OpenAPI path below (custom GPT Actions), or add the MCP URL as a custom connector in developer mode with the same Bearer header.
Prefer stdio? A stdio bridge ships with the
SignYoDoc server (mcp/signyodoc-mcp.mjs in the
server package). It exposes the identical tools and talks to
the REST API: set SIGNYODOC_API_KEY (and optionally
SIGNYODOC_API_BASE) and register it as a stdio
server running node signyodoc-mcp.mjs.
MCP tools
| Tool | What it does |
|---|---|
| get_account_info | Workspace, plan, and sends used / remaining this month. Call first to check the plan budget. |
| create_document | Upload a base64 PDF as a draft, or create + send in one call with send: true and recipients. |
| send_for_signature | Send an existing draft to 1-10 recipients, with optional per-signer access codes and signing order. |
| list_templates | List the workspace's reusable templates and their signer slots. |
| create_document_from_template | Create a ready-to-send document from a template, mapping recipients to signer slots in order. |
| list_documents | List recent documents, optionally filtered by status. |
| get_document_status | One document's status, per-signer progress, and signing links for anyone still pending. |
| download_signed_document | The signed PDF (embedded for files up to 4 MB, plus a download URL) or the completion certificate. |
| self_sign | Sign a document yourself in the workspace owner's name; never counts toward the send limit. |
Tool inputs and outputs are plain JSON. Errors come back as MCP tool errors whose text starts with the same stable error codes as the REST API, so an agent can branch on them.
OpenAPI & ChatGPT Actions
The REST API is described by an OpenAPI 3.1 spec, served from two identical URLs:
https://signyodoc.com/openapi.json
https://signyodoc.com/api/v1/openapi.json
To build a custom GPT or ChatGPT Action:
- Create a GPT and open Configure → Actions → Create new action.
- Import the spec from
https://signyodoc.com/openapi.json. - Set authentication to API key, type Bearer, and paste your workspace key.
- Describe the actions in the GPT's instructions, for example: "Use the SignYoDoc actions to send PDFs for signature and report when they are completed."
The same spec drops into any OpenAPI-consuming agent framework, code generator, or API client.
REST API: the core flow
Base URL: https://signyodoc.com/api/v1. Four calls take a document from PDF to signed PDF.
1. Create a document (upload a PDF)
curl -X POST https://signyodoc.com/api/v1/documents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Services Agreement",
"filename": "services-agreement.pdf",
"file_base64": "<base64-encoded PDF>"
}'
# 201 -> { "id": "abc123...", "title": "Services Agreement", "status": "draft", ... }
2. Send it for signature
curl -X POST https://signyodoc.com/api/v1/documents/abc123.../send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipients": [
{ "name": "Pat Signer", "email": "pat@example.com", "access_code": "Kiwi-42" }
],
"email_subject": "Please sign: Services Agreement"
}'
# 200 -> status "awaiting_signatures"; the "invites" array carries one
# entry per signer with their signing_url and email_status.
# The signer also receives an email with the same link; no account needed.
3. Check status
curl https://signyodoc.com/api/v1/documents/abc123... \
-H "Authorization: Bearer YOUR_API_KEY"
# 200 -> { "status": "completed", "signers": [{ "email": "pat@example.com",
# "status": "signed", "signed_at": "..." }], ... }
4. Download the signed PDF and certificate
curl https://signyodoc.com/api/v1/documents/abc123.../download \
-H "Authorization: Bearer YOUR_API_KEY" -o signed.pdf
curl https://signyodoc.com/api/v1/documents/abc123.../certificate \
-H "Authorization: Bearer YOUR_API_KEY" -o certificate.pdf
Statuses: draft → awaiting_signatures
→ completed (or declined /
expired). Calling download before completion
returns 409 document_not_completed with guidance
to poll or use a webhook, so agents can wait correctly instead
of guessing.
Endpoint reference
All request and response bodies are JSON. Binary endpoints (download, certificate) return application/pdf on success.
Workspace name, account email, current plan, and this month's send usage (used, limit, left; limit is null on paid plans).
Create a draft from a PDF. Body: title (required), file_base64 (required, max ~15 MB decoded), filename, note (message to signers), expires_in_days (1-365), and optional fields to place signature/text/date/checkbox fields per recipient (defaults to one signature field per signer on the last page). Add "send": true with recipients to create and send in one call. Returns 201.
Send a draft. Body: recipients (1-10, each name + email, optional per-signer access_code of 4-64 characters), send_in_order (default false), email_subject, email_message. The response carries an invites array with each signer's signing_url and email_status, plus pending_signing_links for anyone who has not signed yet.
Create and optionally send from a template. Body: template_id, title, recipients mapped 1:1 in order to the template's signer slots, send (default true).
List templates with their signer slots, so you know how many recipients a template expects.
List recent documents (newest first). Query: status (draft, awaiting_signatures, completed, declined, expired), limit (1-100, default 25), offset.
One document: status, per-signer state, pending signing links, and (when finished) download_url and certificate_url.
The signed PDF. 409 document_not_completed until every signer has signed.
The completion certificate PDF (audit summary). 409 certificate_not_ready until the document completes.
Sign a signer-less draft yourself. Body: signature_name (typed signature) or signature_image_base64 (PNG). Completes immediately and never uses a send.
JavaScript & Python: create, send, wait, download
JavaScript (Node 18+)
import fs from "node:fs";
const KEY = process.env.SIGNYODOC_API_KEY;
const BASE = "https://signyodoc.com/api/v1";
const headers = { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" };
// 1. Create + send in one call
const created = await fetch(`${BASE}/documents`, {
method: "POST", headers,
body: JSON.stringify({
title: "Services Agreement",
file_base64: fs.readFileSync("agreement.pdf").toString("base64"),
send: true,
recipients: [{ name: "Pat Signer", email: "pat@example.com" }],
}),
}).then(r => r.json());
console.log("signing link:", created.invites[0].signing_url);
// 2. Poll until completed
let doc = created;
while (doc.status !== "completed") {
await new Promise(r => setTimeout(r, 15000));
doc = await fetch(`${BASE}/documents/${created.id}`, { headers }).then(r => r.json());
}
// 3. Download the signed PDF
const pdf = await fetch(`${BASE}/documents/${created.id}/download`, { headers });
fs.writeFileSync("signed.pdf", Buffer.from(await pdf.arrayBuffer()));
Python
import base64, os, time
import requests
KEY = os.environ["SIGNYODOC_API_KEY"]
BASE = "https://signyodoc.com/api/v1"
H = {"Authorization": f"Bearer {KEY}"}
with open("agreement.pdf", "rb") as f:
pdf_b64 = base64.b64encode(f.read()).decode()
created = requests.post(f"{BASE}/documents", headers=H, json={
"title": "Services Agreement",
"file_base64": pdf_b64,
"send": True,
"recipients": [{"name": "Pat Signer", "email": "pat@example.com"}],
}).json()
print("signing link:", created["invites"][0]["signing_url"])
while True:
doc = requests.get(f"{BASE}/documents/{created['id']}", headers=H).json()
if doc["status"] == "completed":
break
time.sleep(15)
signed = requests.get(f"{BASE}/documents/{created['id']}/download", headers=H)
open("signed.pdf", "wb").write(signed.content)
Webhooks
Set a webhook URL in Settings → API & AI
Agents. When a document finishes, we POST a JSON event
to it: document.completed when every signer has
signed, document.declined when a signer declines.
Saving a URL issues your signing secret (shown once); use
"Generate new secret" to rotate it.
{
"id": "evt_9f2...",
"type": "document.completed",
"created_at": "2026-11-27T20:41:03.000Z",
"data": {
"document": {
"id": "abc123...",
"title": "Services Agreement",
"status": "completed",
"signers": [{ "name": "Pat Signer", "email": "pat@example.com",
"status": "signed", "signed_at": "..." }],
"download_url": "https://signyodoc.com/...",
"certificate_url": "https://signyodoc.com/..."
}
}
}
Every delivery carries X-SignYoDoc-Event and
X-SignYoDoc-Signature: sha256=<hex>, the
HMAC-SHA256 of the raw request body keyed with your secret.
Verify it before trusting the payload:
// Node: verify the signature
import crypto from "node:crypto";
const expected = "sha256=" + crypto
.createHmac("sha256", process.env.SIGNYODOC_WEBHOOK_SECRET)
.update(rawBody) // the exact bytes received, not re-serialized JSON
.digest("hex");
const ok = crypto.timingSafeEqual(
Buffer.from(expected), Buffer.from(req.headers["x-signyodoc-signature"]));
# Python: verify the signature
import hashlib, hmac, os
expected = "sha256=" + hmac.new(
os.environ["SIGNYODOC_WEBHOOK_SECRET"].encode(), raw_body, hashlib.sha256
).hexdigest()
ok = hmac.compare_digest(expected, request.headers["X-SignYoDoc-Signature"])
Deliveries time out after 5 seconds and are retried once. Respond with any 2xx to acknowledge. If your endpoint is down, nothing is lost: the document state is always available through the API.
Plans, send limits, and rate limits
The API plays by exactly the same rules as the app, because it runs on the same sending pipeline:
- What counts as a send: one document sent for signature in the calendar month. Bulk sends count per recipient in the app; API sends count once per document sent (a from-template send counts once). Self-signing never counts.
- Free plan: 15 sends per month. The 16th send returns
403 send_limit_reachedwith the same upgrade message the app shows; nothing is half-sent. - Paid plans (Solo $15, Team $39, Business $79, flat per workspace): unlimited sends, every feature included. API access is included in every plan, free included; it is not an add-on.
- Rate limit: 120 requests per minute per API key. Over it, you get
429 rate_limited; back off briefly and retry. Poll document status every 10-15 seconds at most, or use webhooks instead of polling.
Check your budget any time with GET /me or the MCP
get_account_info tool before a big batch.
Error codes
Every error has the same shape, on REST and (as tool-error text) on MCP:
{ "error": { "code": "send_limit_reached", "message": "You've reached..." } }
| HTTP | Code | What it means / what to do |
|---|---|---|
| 401 | missing_api_key | No key was sent. Add the Authorization: Bearer header. |
| 401 | invalid_api_key | The key does not exist. Check for typos or a truncated paste; generate a fresh key in Settings. |
| 401 | api_key_revoked | The key was revoked. Generate a new one in Settings → API & AI Agents. |
| 403 | send_limit_reached | Free plan monthly sends are used up. Upgrade for unlimited sends, or wait for next month. Self-signing still works. |
| 404 | document_not_found | No such document in this workspace (wrong id, or a key from another workspace). |
| 404 | template_not_found | No such template in this workspace. |
| 404 | route_not_found | The path is not part of the API. Check the endpoint reference. |
| 409 | already_sent | The document was already sent. Fetch it to see signer state instead of resending. |
| 409 | already_completed | The document is finished. Download it instead. |
| 409 | document_not_completed | Download attempted too early. Poll status or wait for the webhook. |
| 409 | certificate_not_ready | The certificate exists only after completion. |
| 400 | validation_error | A field failed validation; the message names the field and the expected format. |
| 429 | rate_limited | Over 120 requests/minute on this key. Back off and retry. |
| 502 | upload_failed | The PDF upload failed transiently. Retry the create call. |
| 500 | internal_error | Something broke on our side. Retry once; the message carries no internal details. |
Validation messages are written to be acted on, human or agent: they name the field, the constraint, and an example of a valid value where that helps.