C
Chatty

Errors

Format

All errors return a JSON body with a single detail field:

{ "detail": "Human-readable error message." }

Every response includes an X-Request-ID header. Include it when contacting support.

HTTP status codes

CodeNameWhen
400Bad RequestMissing field, invalid value, or malformed input
401UnauthorizedMissing/invalid/revoked API key
403ForbiddenMissing scope or IP not on allowlist
404Not FoundResource doesn't exist or belongs to another bot
422Unprocessable EntityValid request but operation couldn't complete (e.g. URL has no content)
429Too Many RequestsRate limit exceeded
500Internal Server ErrorUnexpected server error
502Bad GatewayAI provider error or timeout

Common errors

You didn't include the Authorization header or it doesn't start with Bearer .

Fix: Add Authorization: Bearer chatty_sk_your_key to your request headers.

The key doesn't match any key in the system.

Fix: Check for typos or trailing whitespace. Regenerate if needed.

The key was revoked from the dashboard.

Fix: Create a new key in Dashboard → API Keys.

{ "detail": "This API key is missing the 'write' scope. Current scopes: ['chat', 'read']." }

Fix: Edit the key in the dashboard and add the required scope.

{ "detail": "IP address '203.0.113.42' is not permitted for this API key." }

Fix: Add your IP to the allowlist or remove the allowlist restriction.

{ "detail": "URL returned no usable content" }

The page is likely behind a login wall or is a JavaScript SPA. Use type: "text" and paste content manually.

{ "detail": "assistant error: upstream provider timeout" }

The underlying AI provider returned an error. Retry with backoff. If persistent, contact support with the X-Request-ID.