Docs/API Reference

API Reference

The Klarora REST API provides programmatic access to your team's data. All endpoints return JSON responses and require authentication via API key.

Base URL

https://gateway.thekairos.app/v1

All API endpoints are relative to this base URL. For example, to list tasks:

GET https://gateway.thekairos.app/v1/tasks

Authentication

All requests must include your API key in the Authorization header:

curl -X GET "https://gateway.thekairos.app/v1/tasks" \
  -H "Authorization: Bearer YOUR_API_KEY"
Keep Your API Key Secret
Never expose your API key in client-side code, version control, or public repositories. See the Authentication guide for security best practices.

Response Format

All successful responses follow a consistent format:

{
  "data": { ... },
  "pagination": {
    "page": 1,
    "limit": 50,
    "total": 243,
    "has_more": true
  }
}

The pagination object is included for list endpoints. Single resource endpoints only return the data object.

Error Responses

Errors return an appropriate HTTP status code with a JSON body:

{
  "error": {
    "code": "validation_error",
    "message": "title is required",
    "request_id": "req_abc123xyz"
  }
}

Common Error Codes

HTTP StatusError CodeDescription
400validation_errorInvalid request parameters
401unauthorizedMissing or invalid API key
403forbiddenInsufficient scope for this action
404not_foundResource not found
429rate_limit_exceededToo many requests
500internal_errorServer error

Rate Limiting

API requests are rate limited based on your plan. Rate limit headers are included in every response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1704067200

When you exceed the rate limit, you'll receive a 429 Too Many Requests response. Wait until the reset time before making more requests.

Available Endpoints