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 name and select the scopes it needs
  4. Copy the key — it is shown only once

API keys start with t0_.

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": "Invalid or missing API key"
  }
}

Common error codes:

HTTP statusCodeMeaning
400bad_requestInvalid request body or parameters
401unauthorizedMissing or invalid API key
403forbiddenAPI key lacks required scope
404not_foundResource not found
429rate_limitedToo many requests
500internal_errorUnexpected server error

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