Account API
The organization and developer account behind a key or token.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/account
The account behind the key
Returns the organization (workspace) the credential acts for, and, when called with an API key, the key's kind and mode. It is the cheapest way to check that a key works and to learn whether it is a test or live key before doing anything that matters.
Any valid key may call it, including restricted keys, but a restricted key still needs the account:read scope like any other /v1 resource. Publishable keys are refused here: they only open widget sessions. A personal access token or console session may call it too; mode and key_kind are then null because no key was used.
sandbox is true for a workspace made by developer sign-up. Nothing a sandbox does reaches a real phone or WhatsApp number, whatever the key's mode. Test keys on a normal organization are simulated in the same way, but that organization's live keys are real.
It reads only, costs nothing and is safe to repeat.
Scope account:read. Accepts: API key or personal access token. Open in the API reference
POST/v1/developer/signup
Make a sandbox workspace for a signed-in person
Makes a sandbox workspace for the signed-in person, with a test secret key and a test publishable key. Nothing a sandbox does reaches a real phone or WhatsApp number, and nothing in it is charged. The person joins their sandbox as an admin.
Only a signed-in person may call this, with a personal access token or a console session. An API key is refused with 403 because a key cannot create the organization it belongs to. No scope applies.
The secret key is shown once, in this response, and is never readable again; store it now. The publishable key is for the widget and may be listed again later by prefix under Keys. allowed_origins are the sites the publishable key accepts; left out, it accepts http://localhost:3000 only.
Repeat-safe by behaviour, not by Idempotency-Key. Idempotency keys apply to API keys only, and this call is made by a person. Instead, opening the console in two tabs at once, or retrying, never makes two sandboxes: calls from the same person are serialised, and if a sandbox was made for them in the last minute the call answers 200 with created: false and empty key fields instead of making another. The keys of that earlier sandbox were shown in the earlier response.
A person may hold a limited number of sandboxes. Past it, the call is refused with 409 until one is deleted.
Accepts: personal access token. Open in the API reference
GET/v1/readiness
Steps towards a working integration
A checklist of what the organization has done towards a working integration, for the console's getting-started panel. It is guidance only. Nothing here gates anything: live use is paid from credit and is never approved by hand, so an unfinished item does not stop you.
The items are fixed: email verified, every admin signed in with a second step, a test key exists, a successful API call in the last 30 days, and a webhook endpoint that answered 2xx. done and total count them.
live lists where live keys can be made: this organization when it is a real one, or, when called from a sandbox, every real organization the person administers, each with its balance and whether it has any credit. A live workspace with no credit can still make live keys, but its live calls fail with insufficient_credit until it is topped up.
Who may call it: a person with settings or developer-management rights, or a secret key. Restricted and publishable keys are refused. balance_minor is null when the balance could not be read.
Read only and safe to repeat.
Scope readiness:read. Accepts: API key or personal access token. Open in the API reference