Base URL
Authentication
Include your access token in theAuthorization header:
See Authentication for setup details.
Request Format
All requests use JSON:Idempotency
For POST requests, includeIdempotency-Key to safely retry without duplicates:
Response Format
Success
Error (RFC 7807)
Rate Limits
Rate-limited requests return HTTP 429 with a
Retry-After header.
Pagination
List endpoints use cursor-based pagination:Endpoints
Chat API
Completions with streaming
Authentication
JWT and M2M setup
FAQ
Is the API RESTful?
Yes. The Cuadra AI API follows REST conventions with resource-based URLs, standard HTTP methods (GET, POST, PATCH, DELETE), and JSON payloads.What’s the latency?
Depends on the LLM provider and response length. Typical first-token latency is 200-500ms. Usestream: true for perceived faster responses.
Is there a sandbox environment?
No separate sandbox. Use the Free plan for testing.How do I handle rate limits?
Implement exponential backoff. Check theRetry-After header on 429 responses. See Errors for retry logic examples.