Developers
Everything in the app is available over a REST API and as an MCP server, so your backend or your AI agent can send documents, follow signatures and get the onchain proof. Same pricing: 1 credit per signer.
MCP for AI agents
Endpoint https://signdocumentsonchain.com/api/mcp (Streamable HTTP), authenticated with your API key. Tools: get_account, quote, send_document, list_documents, get_document, remind_signer, cancel_document, verify.
Claude Code:
claude mcp add --transport http signonchain https://signdocumentsonchain.com/api/mcp \ --header "Authorization: Bearer soc_YOUR_KEY"
Any client with a JSON config (Cursor, Windsurf, Claude Desktop via mcp-remote…):
{
"mcpServers": {
"signonchain": {
"url": "https://signdocumentsonchain.com/api/mcp",
"headers": { "Authorization": "Bearer soc_YOUR_KEY" }
}
}
}Agents are told to confirm the document, signers and cost with you before sending, and to ignore instructions found inside documents. Every send takes an idempotency key, so retries never email or charge twice.
REST API
Base URL https://signdocumentsonchain.com/api/v1. Send Authorization: Bearer soc_… on every request.
Send a PDF for signature:
curl https://signdocumentsonchain.com/api/v1/envelopes \
-H "Authorization: Bearer $SOC_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F document=@contract.pdf \
-F 'signers=[{"email":"ana@example.com","name":"Ana Gómez"},{"email":"bob@example.com"}]' \
-F title="Consulting agreement"Or JSON with the PDF base64-encoded:
POST /api/v1/envelopes
{
"document": { "filename": "nda.pdf", "content_base64": "JVBERi0xLjQK..." },
"signers": [{ "email": "ana@example.com", "name": "Ana Gómez" }],
"title": "Mutual NDA",
"message": "Please sign by Friday"
}Then poll the document until it is completed and certified:
GET /api/v1/envelopes/{id}
{
"id": "5955ce9b-…",
"status": "completed",
"signers": [{ "email": "ana@example.com", "status": "signed", "signed_at": "…" }],
"certification": {
"status": "confirmed",
"commitment": "da1e163b…",
"chain": "Base",
"transaction": "0x…",
"explorer_url": "https://basescan.org/tx/0x…",
"verify_url": "https://signdocumentsonchain.com/verify/da1e163b…"
},
"files": { "signed": "https://…/api/v1/download/…", "certificate": "https://…" }
}| Method | Path | What it does |
|---|---|---|
| GET | /me | Credits, free document, subscription |
| GET | /quote?signers=3 | Credits a send would cost |
| POST | /envelopes | Send a PDF for signature |
| GET | /envelopes | List documents (status, limit) |
| GET | /envelopes/{id} | Status, signers, certification, download links |
| POST | /envelopes/{id}/remind | Re-send a signer’s link |
| POST | /envelopes/{id}/cancel | Cancel and refund unsigned signers |
| GET | /envelopes/{id}/files/{original|signed|certificate} | Download files |
| GET | /verify/{sha256} | Public verification (no key) |
Errors and limits
Errors are {"error":{"code","message"}} with status 400 (invalid_request), 401 (unauthorized), 402 (insufficient_credits), 404 (not_found). PDFs up to 10 MB via multipart; JSON/MCP bodies are limited by the hosting platform to about 4 MB, so base64 PDFs should stay under ~3 MB.
Questions? Every response includes a dashboard_url to see the document in SignOnChain.