Conventions
Request IDs, idempotency, cursor pagination, versioning, and transport rules, common to all v1 endpoints.
Request IDs
Each request gets an ID in ULID format prefixed with req_. This ID is returned in 2 headers (aliased):
X-Request- ID: req_ 01J9X8Z3F4K2M5N7P9Q1R3S5T7 Capturia-Request- ID: req_ 01J9X8Z3F4K2M5N7P9Q1R3S5T7
Give this ID to support: it is what lets us find your request in our logs.
Idempotency
These operations accept an optional Idempotency- header, so that a retry does not repeat an operation that already succeeded: POST /, POST /, POST /, POST /, POST /, POST /, POST /, POST /, POST / and POST /. Other endpoints ignore it.
Idempotency-Key: a1b2c3d4-1234-4567-89ab-cdef01234567Format: 16 to 128 characters
[A-(a UUID v4 works). A malformed key is refused withZa- z0- 9_- ] 400 invalid_(request details.); an empty header counts as no headerfield: idempotency- key Memory: 24 hours
Scope: per API key (two different keys can use the same
Idempotency-without conflict)Key A refusal (status 400 or above) is not kept: resending the same key replays the request. After a
500error, the operation may have gone through anyway: check the resource before sending it againException: on
POST /, the key is scoped to the whole account with no time limit. Sent again later or from another API key of the account, it returns the email already queued, orv1/ emails/ send 409 idempotency_(conflict details.:reason payload_) for a different bodymismatch
Behaviors
| Scenario | Outcome |
|---|---|
| First execution | Endpoint executed normally, response kept 24 hours |
| Replay (same body) | Original response replayed verbatim, same status, with the |
| Conflict (different body) |
|
| Concurrent request (the first one is still in progress) |
|
Pagination
All GET collection endpoints use opaque cursor-based pagination:
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
limit | int | 20 | 100 | Page size (max 100, > 100 → |
cursor | string | None | None | Opaque base64url cursor returned in the previous response's |
updated_after | date-time | None | None | On contacts, deals, bookings, quotes and payments: only what changed since this date (inclusive), oldest change first. Restart from the |
{
"data": [...],
"pagination": {
"next_cursor": "eyJ2IjoxLCJmIjoiY3JlYXRlZF9hdCIsInMiOiJkZXNjIiwidmFsIjoiMjAyNi0wNS0wNFQxMDowMDowMFoiLCJpZCI6ImN0X2FiYyJ9",
"has_more": true,
"limit": 20
}
}Error format
Every refusal follows the same envelope, and its exact shape is the example the reference shows for that endpoint: error., error. (the stable code, the one to test), error. often followed by error., error., error. and, when relevant, error.. The refusal is written in French if the request sends Accept-, in English otherwise; codes never change language. Every endpoint and every one of its refusals is in the reference. The list of codes: Error catalog.
- Unserved method:
405 method_, with thenot_ allowed Allowheader listing the address's methods. - Unknown address under
/:v1 404 not_.found - Call from a browser (
Originheader):403 browser_, except onnot_ allowed POST /,v1/ leads/ capture POST /,v1/ contacts/ batch GET /andv1/ me GET /. An API key is a secret: use it from a server.v1/ usage - Body over 4.5 MB: our host, Vercel, answers
413 FUNCTION_, in its own shape.PAYLOAD_ TOO_ LARGE
Versioning and deprecation
URL versioning (/, future /). A major version is bumped only for breaking changes — backwards-compatible additions stay in the current version.
Minimum 12-month delay between deprecation announcement and removal
Headers emitted on deprecated endpoints:
Deprecation(RFC 9745) +Sunset(RFC 8594) +Link: <url>; rel="deprecation" Public changelog page:
/developers/ api/ v1/ changelog
Dry-run mode
No endpoint has a trial mode: a ?dry_ parameter is ignored and the request runs normally.
Content-Type
Strict application/ (with or without charset=). Refused: multipart/, application/, etc. → 415 invalid_.
Body size
Limit: 1 MB per request. Over → 413 payload_, with details. and, when the request sends Content-, details.. For large batches (more than 100 contacts), use several smaller requests, each with its own Idempotency-.
Encoding
Strict UTF-8. Any other charset rejected → 400 invalid_.
Compression
Handled automatically by Vercel: Accept- supported. The Vary: Accept- header is emitted for intermediate caches.