Skip to main content

Authentication

All API requests require a Bearer token in the Authorization header:
curl -H "Authorization: Bearer capy_xxxx" https://capy.ai/api/v1/projects
Generate API tokens at capy.ai/settings/tokens.

Base URL

All endpoints are served from https://capy.ai/api/v1/.

Pagination

List endpoints support cursor-based pagination:
  • limit (query, default: 20, max: 100)
  • cursor (query, opaque string from previous response)
Responses include items, nextCursor (null if no more), and hasMore.

Errors

All errors return a consistent JSON structure:
{
  "error": {
    "code": "validation_error",
    "message": "Request body validation failed",
    "details": {}
  }
}
StatusCodeDescription
401unauthorizedMissing or invalid API token
403forbiddenToken doesn’t have access to the resource
404not_foundResource not found
422validation_errorInvalid request parameters
500internal_errorUnexpected server error

Task identifiers

Task IDs accept both formats:
  • UUID: 550e8400-e29b-41d4-a716-446655440000
  • Identifier: SCO-123 (project prefix + number)