A practical guide to integrating e-signatures into your application using the SignFlow API. Covers authentication, sending documents, webhooks, and embedded signing.
David Kim
VP of Engineering

If your application handles contracts, agreements, or any documents that need signing, embedding e-signatures directly into your product creates a seamless experience for your users. Instead of redirecting to a third-party signing page, users stay in your app from start to finish.
Common integration scenarios:
All API requests use Bearer token authentication:
`bash curl -X POST https://api.asignflow.com/v2/envelopes \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" `
Generate your API key in Settings → API Keys in your SignFlow dashboard.
An envelope represents a document sent for signature:
`json { "name": "Service Agreement", "documents": [ { "name": "contract.pdf", "base64": "JVBERi0xLjQK..." } ], "recipients": [ { "email": "client@example.com", "name": "Jane Smith", "role": "signer", "order": 1 } ], "fields": [ { "type": "signature", "page": 1, "x": 100, "y": 700, "recipientIndex": 0 } ] } `
Poll for status or use webhooks:
`bash GET /v2/envelopes/{id}/status `
Response: `json { "status": "completed", "recipients": [ { "email": "client@example.com", "status": "signed", "signedAt": "2026-05-01T14:30:00Z" } ] } `
Register a webhook to receive real-time notifications:
`json { "url": "https://yourapp.com/webhooks/signflow", "events": ["envelope.completed", "envelope.viewed", "recipient.signed"] } `
For the smoothest UX, embed the signing experience directly in your app:
`bash POST /v2/envelopes/{id}/signing-url { "recipientEmail": "client@example.com", "returnUrl": "https://yourapp.com/signing-complete" } `
The response includes a URL you can open in an iframe or redirect to.
SignFlow's API is designed to be simple enough to integrate in a single afternoon. Full documentation, SDKs for popular languages, and a Postman collection are available.
Learn everything you need to know about electronic signatures, how they work, and why they are legally binding in most countries.
A step-by-step guide to sending your first document for electronic signature using SignFlow.
Learn how to create document templates that can be used again and again, saving hours of repetitive work.