Authentication
All API requests require a Bearer token in theAuthorization header:
Base URL
All endpoints are served fromhttps://capy.ai/api/v1/.
Pagination
List endpoints support cursor-based pagination:limit(query, default: 20, max: 100)cursor(query, opaque string from previous response)
items, nextCursor (null if no more), and hasMore.
Errors
All errors return a consistent JSON structure:| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid API token |
| 403 | forbidden | Token doesn’t have access to the resource |
| 404 | not_found | Resource not found |
| 422 | validation_error | Invalid request parameters |
| 500 | internal_error | Unexpected server error |
Task identifiers
Task IDs accept both formats:- UUID:
550e8400-e29b-41d4-a716-446655440000 - Identifier:
SCO-123(project prefix + number)