API reference
A REST API over HTTPS with JSON bodies, standard HTTP methods and status codes. These pages are generated from the service's own API description, so they list what the API actually exposes rather than what someone remembered to write down. Prefer OpenAPI? Browse it in Swagger or take the raw OpenAPI document for Postman or a client generator.
Base URL
Base URL $ESCROW_API_BASE # the API host + /v1, issued with your key
Format JSON over HTTPS
Auth Authorization: Bearer esc_test_<prefix>_<secret>Access is pre-release: the base URL for your environment is issued with your API key, and samples on these pages call it $ESCROW_API_BASE. Endpoint paths are shown in full, starting at /v1.
Initial setup
- Create an account and verify your email address.
- Create a test API key on the dashboard's API keys page. The secret is shown once — keep it on your server (authentication).
- Register a webhook endpoint and send it a test event, so you can receive and verify signed deliveries (webhooks).
- Optionally, ask your sellers to verify their payout wallets so escrows pay to an address they proved they control.
- Make your first call — the quickstart goes from key to funded escrow in four steps.
Guides
Authentication
API keys, test and live, the six scopes and which endpoints need none.
Responses and errors
Status codes, cursor pagination, the error envelope, idempotency and request ids.
OpenAPI document
The description these pages are built from. Generate a client in any language.
SDK guide
The typed TypeScript client: create escrows and verify webhook signatures.
Conventions
| Rule | |
|---|---|
| Money | Atomic-unit decimal strings, never numbers. USDC has 6 decimals: "1000000" is 1 USDC. |
| Timestamps | RFC 3339 in UTC, e.g. 2026-09-10T00:00:00.000Z. |
| IDs | Opaque strings with a type prefix: esc_, egrp_, swal_, evt_. Store them as given. |
| Idempotency | Writes accept an Idempotency-Key header (8–255 characters). Same key and body replays the original response. |
| Request ids | Every response carries X-Request-Id. Send your own to find a request in the dashboard log. |
| Pagination | Lists are cursor-based: limit (1–100) and cursor from the previous page's nextCursor. |
| Rate limits | A token bucket per credential, reported in X-RateLimit-* headers; 429 carries Retry-After. |
| Environments | A key is test or live and only ever sees its own environment's objects. |
Endpoint groups
Every merchant-facing endpoint, by area. Each group has its own page with every parameter and field.
| Group | What it is for | Credential | Endpoints |
|---|---|---|---|
| Escrows | Create an escrow, read its state and history, and prepare release, refund or cancellation. | API key | 11 |
| Milestone groups | Create 2–20 escrows for a job paid in stages in one atomic request, and read them back as one unit. | API key | 2 |
| Seller wallets | Ask a seller to prove they control their payout wallet, then pay to the verified wallet by id. | API key | 4 |
| Transactions | Register a transaction hash and follow it to confirmation. | API key | 2 |
| Disputes | Open a dispute against a funded escrow and submit evidence. | API key | 3 |
| Webhooks | Register endpoints, manage signing secrets, and inspect or replay deliveries. | API key | 10 |
| Checkout | The buyer-facing surface behind a checkout link. Takes no credential at all — a buyer has no account. | None | 11 |
API keys, team members and dashboard settings are managed signed in to the dashboard, not with an API key, so they are not part of this reference.