Every API error follows a consistent Stripe-style structure. This page documents the error codes you're most likely to meet, what causes them, and how to fix them.

Error Shape

{
  "success": false,
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_missing",
    "message": "The 'title' field is required.",
    "param": "title",
    "doc_url": "https://www.cstar.help/developers/errors#parameter_missing",
    "request_id": "req_a1B2c3D4e5F6"
  },
  "meta": {
    "requestId": "req_a1B2c3D4e5F6",
    "timestamp": "2026-03-30T10:30:00Z"
  }
}

Key fields:

  • type -- The broad error category (see below)
  • code -- Machine-readable error code (use this for programmatic handling)
  • message -- Human-readable explanation
  • param -- Which parameter caused the error (when applicable)
  • doc_url -- Direct link to documentation for this error
  • request_id -- Include this when contacting support

Error Types

Type Meaning
authentication_error API key issue (missing, invalid, wrong type, insufficient permissions)
invalid_request_error Bad request (missing fields, invalid values, conflicts)
not_found_error Resource doesn't exist
rate_limit_error Too many requests
api_error Something went wrong on our end

Authentication Errors (401/403)

Code Status Description
authentication_required 401 Missing or malformed Authorization header
invalid_api_key 401 Key is invalid, revoked, or expired
invalid_key_format 401 Key doesn't start with sk_live_, pk_live_, sk_test_, or pk_test_
publishable_key_forbidden 403 Publishable key used on a team endpoint, even for a read
insufficient_permissions 403 A test key tried to create a live key, or a key tried to change or remove the team owner
publishable_key_write 403 Tried to write with a publishable key
team_access_denied 403 Key doesn't belong to this team, its scope lacks the permission, or a member rule blocks it
feature_disabled 403 The team turned that feature off in Settings (Tickets, Community and so on). details.feature names it and details.enable_url links to the switch
team_paused 402 The team has no active subscription. Reads still work, so you can export data and revoke keys; writes resume when the owner subscribes

Common fix: Check that you're using the right key type. Publishable keys (pk_*) can't call team endpoints at all, so use a secret key (sk_*).


Invalid Request Errors (400/409)

Code Status Description
parameter_missing 400 A required parameter is missing
parameter_invalid 400 A parameter has an invalid value
invalid_json 400 Request body isn't valid JSON
idempotency_key_in_use 409 The Idempotency-Key was used on another endpoint, or its first request is still running
resource_conflict 409 Duplicate resource (e.g., customer email already exists)

The param field tells you exactly which parameter failed. Examples:

{"code": "parameter_missing", "param": "title", "message": "The 'title' field is required"}
{"code": "parameter_invalid", "param": "assignedTo", "message": "The 'assignedTo' parameter must be a UUID."}
{"code": "resource_conflict", "param": "email", "message": "A customer with this email already exists"}

Not Found Errors (404)

Code Status Description
resource_not_found 404 The requested resource doesn't exist

Double-check the ID. UUIDs and prefixed IDs (like tkt_a1B2c3D4e5F6, at least 8 characters after the prefix) both work. A malformed ID returns 404 on GET and 400 parameter_invalid on PATCH or DELETE.


Rate Limit Errors (429)

Code Status Description
rate_limit_exceeded 429 Too many requests in the current window

The response includes a Retry-After header with seconds to wait. See API Rate Limits for backoff strategies.


Server Errors (500)

Code Status Description
internal_error 500 Unexpected server error
service_unavailable 503 A dependency is briefly down (retry with backoff), or AI isn't set up for your team

These are our fault, not yours. If persistent, contact support with the request_id.


HTTP Status Code Summary

Status Meaning
200 Success
201 Resource created
204 Success (no body, used for CORS preflight)
400 Invalid request
401 Authentication failed
403 Permission denied
404 Resource not found
409 Conflict (duplicate resource)
429 Rate limit exceeded
500 Server error

Debugging Tips

  1. Read the param field -- it points directly to the problem parameter
  2. Follow the doc_url -- each error links to its own documentation
  3. Save the request_id -- support can trace the exact request with it
  4. Validate your JSON before sending -- malformed bodies return invalid_json

Related