Authorization header with a bearer token:
Live and test keys
Every key is prefixed to make its mode obvious:
Use test keys in development and CI. Requests made with a test key behave identically to live requests — the same validation, the same webhook events — except nothing actually reaches a real inbox or phone unless the recipient has been added as a verified test address from your dashboard.
Creating and revoking keys
Manage keys with the API Keys resource:Scopes
Keys can be limited to a subset of the API:
A key created without an explicit
scopes array defaults to ["messages:write", "messages:read"].
Authentication errors
Requests with a missing, malformed, or revoked key receive a401 with an authentication_error type: