Quickstart
From a test key to a signed PDF in five minutes, without sending a real email.
Get a test key
Every account has a test mode. Test keys start with sk_test_; nothing made with them is billed, emails go only to your own verified addresses, and the signed PDF carries a TEST watermark. Live keys start with sk_live_.
Create and send a document
A document can start from Markdown. Fields are written in double braces; @client says which signer fills a field.
curl https://api2.sendforsign.com/v2/documents \
-H "Authorization: Bearer $SENDFORSIGN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Photography agreement",
"markdown": "# Photography agreement\n\nBetween **Lens & Light** and {{Client name@client}}.\n\n1. The fee is {{Fee:money}}.\n\nSigned: {{Signature@client:signature}}",
"data": { "fee": { "amount": 320000, "currency": "EUR" } },
"parties": [{ "role": "client", "name": "Anna Smith", "email": "sign@test.monoclan.ru" }],
"send": true
}'
sign@test.monoclan.ru is a test recipient: about five seconds after it is notified, it signs by itself.
The same with the Node SDK:
import Sendforsign from '@monoclan/node';
const sfs = new Sendforsign(process.env.SENDFORSIGN_KEY!);
const doc = await sfs.documents.create({
name: 'Photography agreement',
markdown: '# Photography agreement\n\nBetween **Lens & Light** and {{Client name@client}}.',
parties: [{ role: 'client', name: 'Anna Smith', email: 'sign@test.monoclan.ru' }],
send: true,
});
Start from a Word file
Upload the .docx, then create the document from the file. Markers typed in Word become fields; everything else stays as Word laid it out.
import { readFile } from 'node:fs/promises';
const file = await sfs.files.create({ file: await readFile('agreement.docx'), filename: 'agreement.docx' });
const doc = await sfs.documents.create({ file: file.id, parties: [{ role: 'client', email: 'sign@test.monoclan.ru' }] });
await sfs.documents.send(doc.id);
Get the result
Listen for document.completed with a webhook, or poll the document. Once completed:
const pdf = await sfs.documents.pdf(doc.id); // signed PDF with the certificate appended
const filled = (await sfs.documents.retrieve(doc.id)).fields; // every value, typed
Next
- Show the signing screen in your product: Sessions, React components.
- Let an agent do this: Agents and MCP.