Developers
Create packets from your own systems.
Versioned HTTPS JSON for templates, envelopes, packets, webhook endpoints, and embedded sessions.
Available on Firm+
The HTTP API, webhooks, and embedded sessions are available on Firm+.
Embedded-session tokens last at most 15 minutes. They are revocable and bound to an actor, tenant, environment, exact origin, and one purpose: editor, sender, or signer. The embedding route enforces the matching CSP frame-ancestors origin.
Resources
Versioned resources
HTTPS JSON under /v1. Templates are read-only. Envelopes, packets, webhook endpoints, and embedded sessions share that surface.
Credentials
Scoped access
A show-once service-account credential is the bearer token. It resolves the service account, organization, workspace, scopes, and environment. Sandbox credentials stay on sandbox data.
Webhooks
HMAC-signed events
Each delivery is a versioned envelope whose data is a typed envelope or packet object, signed with HMAC-SHA256 over the exact raw body.
Quickstart
Create a packet from a template.
Dates are ISO 8601 UTC and identifiers are UUIDs. Live and sandbox keep separate hosts, credentials, and data.
Read a template with GET /v1/templates or GET /v1/templates/{id}. The published template mutation creates an envelope. Packet create is listed beside list, get, send, and evidence. The packet sample is illustrative of that contract: every field name comes from the published envelope body, and the request target is omitted because the foundation doc does not publish a packet URL.
The only dynamic maps the contract allows are merge_data and field_values. Mutations documented as idempotent send a printable 16–255 character Idempotency-Key. A sandbox credential addresses sandbox data only, and X-Environment does not change that credential’s environment. The generated OpenAPI 3.1 document is at /openapi.json.
GET /v1/templates HTTP/1.1
Host: api.sandbox.signthedoc.com
Authorization: Bearer std_12345678.REDACTED
Accept: application/jsonHost: api.sandbox.signthedoc.com
Authorization: Bearer std_12345678.REDACTED
Accept: application/json
Content-Type: application/json
{
"template_id": "...",
"title": "Mutual NDA",
"recipients": [
{ "name": "Dana Lee", "email": "dana@example.com" }
]
}curl.exe "https://api.sandbox.signthedoc.com/v1/envelopes" `
--request POST `
--header "Authorization: Bearer $env:SIGNTHEDOC_API_KEY" `
--header "Content-Type: application/json" `
--header "Idempotency-Key: envelope-$([guid]::NewGuid())" `
--data '{"template_id":"...","title":"Mutual NDA","recipients":[{"name":"Dana Lee","email":"dana@example.com"}]}'Webhooks
Example webhook payload.
Webhook events use a versioned envelope whose data is a typed envelope or packet object.
Illustrative of the documented contract. Sign the exact raw request bytes and send X-Signthedoc-Signature. data is the published property name on the versioned envelope. The foundation doc does not publish the other property names, event names, or the typed object schema. The header format below is the one the contract specifies.
X-Signthedoc-Signature: t=<unix-seconds>,v1=<hex>
{
"data": "<typed envelope or packet object>"
}Signatures
Verify the webhook signature.
Consumers verify the HMAC before trusting the body. Use the current secret and the rotating previous secret.
HMAC-SHA256(secret, timestamp + "." + raw_body)01
Read the signature header
X-Signthedoc-Signature is t=<unix-seconds>,v1=<hex>. The v1 value is the hex HMAC.
02
Reject stale timestamps
Reject timestamps outside five minutes.
03
Mac the raw body
Compute HMAC-SHA256(secret, timestamp + "." + raw_body) over the exact raw request bytes.
04
Try the rotating secrets
Verify against the current secret and the rotating previous secret.
05
Compare in constant time
Compare signatures in constant time.
06
Deduplicate deliveries
Deduplicate by event ID.
Contact
Request a spot.
Onboarding spots are limited. We’ll reach out to set up your workspace.