eSignature REST API — Direct Integration
A clean REST API with JSON requests, API key authentication, and webhooks. Works with any language, any framework, any platform that can make an HTTPS call.
Webhook document.completed posts straight back to your endpoint
What you can do with the REST API
- Generate a PDF from a template and send it for signing in a single API call
- Define recipients, roles, field positions, signing order, and expiry in the request body
- Receive real-time webhook events when documents are sent, viewed, signed, or completed
- Download the signed PDF with the embedded audit trail via the completion webhook URL
- Manage templates, documents, and signing requests programmatically
- Use regional endpoints (US, EU, Singapore, Australia) for data residency compliance
Authentication
eSignature API uses API key authentication. Include your API key in the request header:
X-API-KEY: your_api_keyGet your API key from your CraftMyPDF dashboard after signing up. The free plan includes 50 documents per month — no credit card required.
Basic signing request
curl -X POST https://api.craftmypdf.com/v1/create \
-H "X-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"template_id": "your_template_id",
"signers": [
{
"name": "Jane Smith",
"email": "jane@example.com",
"role": "signer",
"order": 1
},
{
"name": "John Manager",
"email": "john@example.com",
"role": "signer",
"order": 2
}
],
"callback_url": "https://yourapp.com/webhooks/esign"
}'Webhook events
When a document is completed, eSignature API sends a POST request to your callback_url with:
- Document ID and status
- Signer details and timestamps
- Signed PDF download URL
- Audit trail data
Use this to trigger downstream actions in your application: update a database record, send a confirmation email, or archive the signed document.
Regional endpoints
eSignature API provides endpoints in four regions for data residency compliance:
| Region | Endpoint |
|---|---|
| United States | api.craftmypdf.com (US) |
| European Union | api-eu.craftmypdf.com |
| Singapore | api-sg.craftmypdf.com |
| Australia | api-au.craftmypdf.com |
Common questions
What languages and frameworks does eSignature API support?
How do I test the API before going live?
Where is the full API documentation?
Start integrating eSignature API today
Free plan. 50 documents per month. No credit card. Full docs included.