Get started

Authentication

.md

Authenticate requests with secret API keys via Bearer tokens.

TickOS uses API keys to authenticate requests. Keys start with sk_ and belong to a single workspace: every request is scoped to the workspace that owns the key. Send your key in the Authorization header as a Bearer token.

request.http
HTTP
01Authorization: Bearer sk_your_api_key
UTF-8 · LF · HTTPtickos.dev

The Bearer prefix is recommended. For backwards compatibility the API also accepts the bare key (Authorization: sk_your_api_key).

Permission levels

Each key has one of three permission levels. Higher levels include the lower ones (admin > write > read). Each endpoint page states the permission it requires.

PermissionAllows
readRead endpoints (list, retrieve and stats), plus a few non-destructive actions such as POST /v1/connections/{id}/verify-outbound (re-checking a domain verification).
writeEverything in read, plus creating, updating and most deletes (tags, contact groups and their members, automations, changelog entries, draft messages, scheduled emails, team members...).
adminEverything in write, plus deleting tickets, customers, inboxes, connections and campaigns, and managing API keys (/v1/keys).

Authentication errors

StatusWhen
401The Authorization header is missing, the key does not start with sk_, or the key is invalid or revoked.
403The key is valid but its permission level is lower than the one the endpoint requires.
403 response
JSON
01{
02 "error": "Insufficient permissions",
03 "message": "This endpoint requires \"admin\" permission, but your key has \"write\" permission"
04}
UTF-8 · LF · JSONtickos.dev
Keep secrets safe
Never commit secret keys to source control or expose them in client-side code. If a key leaks, revoke it immediately from Settings > Developers and create a new one.