Skip to main content

Authentication

All API requests require an X-API-Key header:
curl -H "X-API-Key: your_api_key" \
  "https://app.colacloud.us/api/v1/colas?q=bourbon"
Generate API keys at Dashboard > API Keys in the web app.

SDKs and CLI

Both SDKs require the API key as a constructor argument:
client = ColaCloud(api_key="cola_xxxx")           # Python
const client = new ColaCloud({ apiKey: 'cola_xxxx' }); // JavaScript
The CLI reads from the COLACLOUD_API_KEY environment variable or a persistent config file:
export COLACLOUD_API_KEY=cola_xxxx   # Environment variable
cola config set-key                  # Or configure persistently

Rate Limits

TierMonthly RequestsPer Minute
Free50010
Starter10,00060
Pro100,000200
Upgrade your tier at Dashboard > API Keys > Upgrade.

Rate Limit Headers

Every response includes these headers:
HeaderDescription
X-RateLimit-LimitYour monthly request limit
X-RateLimit-RemainingRequests remaining this month
X-RateLimit-ResetUnix timestamp when limits reset (first of next month)
When you exceed a limit, the API returns 429 Too Many Requests with a Retry-After header (for per-minute limits).

Pagination

List endpoints support page and per_page parameters:
ParameterDefaultMaxDescription
page1Page number
per_page20100Results per page
Responses include pagination metadata:
{
  "data": [...],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "total": 1234,
    "pages": 62
  }
}

Error Responses

StatusCodeDescription
401unauthorizedMissing or invalid API key
404not_foundResource not found
429rate_limit_exceededMonthly or per-minute limit exceeded
{
  "error": {
    "code": "unauthorized",
    "message": "API key is required. Include it in the X-API-Key header.",
    "details": {}
  }
}