Docs
API Reference

Authentication

Authenticate API requests using Bearer tokens with the t0_ prefix.

The Ticket0 REST API uses bearer tokens for authentication. All API requests must be made over HTTPS.

Base URL: https://app.ticket0.ai/api/v1

Generating an API key

  1. Go to Settings → API keys
  2. Click New key
  3. Give the key a descriptive name, pick the scopes it needs, and optionally set an expiry date
  4. Click Create key
  5. Copy the key from the confirmation dialog — this is the only time the full key is shown. If you lose it, revoke and create a new one

API keys start with t0_. Only workspace Owners and Admins can create or revoke keys.

Making authenticated requests

Include your key in the Authorization header:

curl https://app.ticket0.ai/api/v1/tickets \
  -H "Authorization: Bearer t0_your_api_key"

Scopes

Each API key is issued with one or more scopes. Request only the scopes your integration needs.

ScopeGrants
tickets:readRead tickets and ticket details
tickets:writeCreate and update tickets
messages:readRead ticket messages
messages:sendSend replies on tickets
customers:readRead customer records
customers:writeCreate and update customers
adminFull access to all resources and settings

Errors

All errors return a consistent JSON body:

{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Valid API key required"
  }
}

Error code values are uppercase, underscore-separated constants — parse them as exact strings (e.g. "UNAUTHORIZED", not "unauthorized"). Common error codes:

HTTP statusCodeMeaning
400VALIDATION_ERRORInvalid request body or parameters (missing required field, bad enum value, etc.)
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENAPI key lacks the required scope
404NOT_FOUNDResource not found (wrong ID, or not in this workspace)
429RATE_LIMITEDRate limit exceeded — see Rate limiting
500INTERNALUnexpected server error — safe to retry with exponential backoff

Quick start

# List your 10 most recent open tickets
curl "https://app.ticket0.ai/api/v1/tickets?status=open&limit=10" \
  -H "Authorization: Bearer t0_your_api_key"

On this page