How it works
- You register a webhook endpoint via the API.
- When a subscribed event occurs, SimpleDocs sends an HTTP
POSTrequest to your URL with a JSON payload. - Your server processes the payload and responds with a
2xxstatus code to acknowledge receipt.
Supported events
| Event | Description |
|---|---|
execution_complete | Fired when a request has been fully executed (all parties have signed). |
Creating a webhook
Use the Create webhook endpoint. You’ll need a token with thewrite scope.
No authentication
Basic authentication
Bearer token authentication
Webhook payloads
When an event fires, SimpleDocs delivers aPOST request to your URL with a JSON body. The exact payload structure depends on the event type.
execution_complete payload
Responding to webhooks
Your endpoint must return an HTTP2xx status code within 30 seconds to indicate successful receipt. Any other status code or a timeout is treated as a delivery failure.
Best practices
- Use HTTPS — Always use an
https://URL for your webhook endpoint to protect payloads in transit. - Respond quickly — Process webhook payloads asynchronously (e.g., enqueue a background job) and return
200immediately. - Handle duplicates — In rare cases a webhook may be delivered more than once. Design your handler to be idempotent.
- Ignore unknown events — As new events are added, your endpoint may receive event types you haven’t seen before. Return
200and ignore them.