Error response format
All error responses contain anerror object with three fields:
Machine-readable error code that categorizes the error type
Human-readable error message describing what went wrong
Additional context about the error. May contain validation details, field-specific errors, or other diagnostic information.
HTTP status codes
The API uses standard HTTP status codes to indicate success or failure:| Status Code | Meaning |
|---|---|
200 OK | Request succeeded |
201 Created | Resource was successfully created |
400 Bad Request | Invalid request parameters or malformed request |
401 Unauthorized | Missing or invalid authentication credentials |
403 Forbidden | Authenticated but not authorized to access this resource |
404 Not Found | Requested resource does not exist |
422 Unprocessable Entity | Request was valid but could not be processed |
429 Too Many Requests | Rate limit exceeded |
500 Internal Server Error | Server error - please try again or contact support |
Common error codes
unauthorized
Authentication failed or credentials are missing.
401 Unauthorized
Common causes:
- Missing
Authorizationheader - Invalid Bearer token format
- Invalid or revoked API key
Bearer cc_live_YOUR_API_KEY.
invalid_parameter
One or more request parameters are invalid.
400 Bad Request
Common causes:
- Parameter value is out of allowed range
- Parameter format is incorrect (e.g., invalid UUID, date format)
- Parameter type mismatch (e.g., string provided instead of number)
- Using mutually exclusive parameters together
missing_parameter
A required parameter was not provided.
400 Bad Request
Resolution: Check the endpoint documentation for required parameters and ensure all are included in your request.
invalid_cursor
The pagination cursor is invalid or expired.
400 Bad Request
Resolution: Use the next_cursor value from the most recent response, or start over without a cursor.
not_found
The requested resource does not exist.
404 Not Found
Common causes:
- Resource ID is incorrect
- Resource was deleted
- Resource belongs to a different user
forbidden
You don’t have permission to access this resource.
403 Forbidden
Common causes:
- Attempting to access another user’s resources
- Insufficient permissions for the requested operation
Parameter validation
The API performs extensive validation on request parameters. Here are the validation rules:UUID parameters
Must be valid UUIDs in the formatxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:
Date parameters
Must useYYYY-MM-DD format:
Month parameters
Must useYYYY-MM format:
Number parameters
Must be valid numbers within the specified range:Boolean parameters
Accepttrue/false or 1/0 (case-insensitive):
Enum parameters
Must be one of the allowed values:List parameters
Comma-separated values (e.g., UUIDs, field names):Troubleshooting
Check your API key
Ensure your API key is valid and properly formatted:Validate request parameters
Double-check parameter names, types, and formats against the endpoint documentation:- UUID parameters must be valid UUIDs
- Date parameters must use
YYYY-MM-DDformat - Numeric parameters must be within allowed ranges
- Enum parameters must be from the allowed set
Check for typos
Common mistakes:- Misspelled parameter names
- Wrong HTTP method (GET vs POST)
- Incorrect endpoint path
- Missing
/api/v1prefix in the URL
Test with minimal parameters
Start with the minimum required parameters and add optional ones incrementally:Check the error details
Theerror.message field provides specific information about what went wrong. Read it carefully for clues about how to fix the issue.
Rate limiting
If you’re receiving429 Too Many Requests errors, reduce your request rate and implement exponential backoff.
Getting help
If you’re still experiencing issues:- Check the API documentation for endpoint-specific requirements
- Review the authentication guide if you’re getting auth errors
- Contact support with:
- The full error response
- The request you’re making (without your API key)
- The endpoint you’re trying to access
- Any relevant timestamps