Authentication
All API requests require anX-API-Key header:
SDKs and CLI
Both SDKs require the API key as a constructor argument:COLACLOUD_API_KEY environment variable or a persistent config file:
Rate Limits
| Tier | Monthly Requests | Per Minute |
|---|---|---|
| Free | 500 | 10 |
| Starter | 10,000 | 60 |
| Pro | 100,000 | 200 |
Rate Limit Headers
Every response includes these headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Your monthly request limit |
X-RateLimit-Remaining | Requests remaining this month |
X-RateLimit-Reset | Unix timestamp when limits reset (first of next month) |
429 Too Many Requests with a Retry-After header (for per-minute limits).
Pagination
List endpoints supportpage and per_page parameters:
| Parameter | Default | Max | Description |
|---|---|---|---|
page | 1 | — | Page number |
per_page | 20 | 100 | Results per page |
Error Responses
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key |
| 404 | not_found | Resource not found |
| 429 | rate_limit_exceeded | Monthly or per-minute limit exceeded |