REST API
The public API at /api/public/v1, its response shape, and how the reference is organized.
Early access
The REST API, webhooks and embedded signing are open to accounts in early access. If Settings, Developers is not in your account yet, write to contact@docudetect.com. What these pages describe can still change; breaking changes are announced on this site first.
Base address: https://docudetect.com/api/public/v1. JSON in, JSON out, over HTTPS only. The one exception is Make a draft from a PDF, which takes multipart/form-data, and the two downloads, which answer with the PDF.
Response shape
Every JSON answer has the same outer shape:
{ "success": true, "data": { "id": "665f1c2e9b1d4a0012345678", "status": "sent" } }Every failure:
{ "success": false, "status": 403, "message": "This key does not have the documents:send permission.", "code": "insufficient_scope" }code is stable and meant for your code; message is meant for people and may change. See Errors.
What you can do
| Area | Operations |
|---|---|
| Account | Who the key belongs to and what it may do; the OpenAPI document. |
| Documents | Make a draft from a PDF, list, get, history, send, remind, cancel, download the signed PDF and the certificate, open an embedded signing session. |
| Templates | List, get, and make a draft from a template with its signers filled in. |
| Webhooks | List, add and delete webhook endpoints. |
Shared objects are on Schemas. The reference is generated from the OpenAPI document the API serves, so the two always agree.
Compatibility
- Responses may gain fields. Ignore the ones you don't know.
- Request bodies and query strings with unknown fields are refused with
invalid_request, so a typo never passes silently. - The version is in the path (
v1). A change that would break a working integration gets a new version, not an edit of this one.
The same rules as the app
The API calls the same services as the app. A document made with a key shows "Created with API key" and the key's name on its page in the app. Sending, reminding and canceling go through the same checks and count against the same account limits as the app.