Error Reference
Error Codes & Troubleshooting
All TTX endpoints return standardized, deterministic error payloads with actionable diagnostic messages.
Standard Error Schema
{ "statusCode": 403, "error": "Forbidden", "message": "API key lacks required scope 'scripts:compile'", "code": "INSUFFICIENT_SCOPE", "timestamp": "2026-11-28T10:45:00.000Z" }Centralized Error Reference
| Error Code | HTTP Status | Cause / Resolution |
|---|---|---|
| UNAUTHORIZED_KEY | 401 | Missing or invalid X-TTX-API-KEY header |
| REVOKED_KEY | 401 | API key was rotated or explicitly revoked |
| INSUFFICIENT_SCOPE | 403 | Key lacks the required scope for this endpoint |
| DEVELOPER_SUSPENDED | 403 | Developer profile was suspended by Super Admin |
| RATE_LIMIT_EXCEEDED | 429 | Exceeded 60 requests/min; wait and retry with backoff |
| SECURITY_VIOLATION | 400 | Script references forbidden symbols or I/O globals |
| MISSING_DEPENDENCY | 400 | Selected provider lacks required order flow or depth data |
