Documentation Index
Fetch the complete documentation index at: https://docs.creem.io/llms.txt
Use this file to discover all available pages before exploring further.
Error Response Format
When an API request fails, Creem returns a JSON error response:| Field | Type | Description |
|---|---|---|
trace_id | string | Unique identifier for the request (useful for debugging) |
status | number | HTTP status code |
error | string | Error category |
message | string[] | Array of human-readable error messages |
timestamp | number | Unix timestamp in milliseconds |
The
trace_id is included in every error response. Include it when contacting
support for faster debugging.HTTP Status Codes
| Status | Error | When It Occurs |
|---|---|---|
400 | Bad Request | Invalid request parameters, malformed JSON, or validation errors |
403 | Forbidden | Invalid API key or insufficient permissions |
404 | Not Found | Requested resource doesn’t exist |
Common Error Scenarios
Authentication Errors (403 Forbidden)
Returned when the API key is missing, invalid, or doesn’t have permission for the requested resource.- Verify your API key in the dashboard
- Ensure the
x-api-keyheader is included in your request - Check you’re using the correct key for the environment (test vs. production)
Validation Errors (400 Bad Request)
Returned when request parameters are missing or invalid.- Check the
messagearray for specific validation errors - Verify all required fields are included
- Ensure data types match the expected format
Resource Not Found (404)
Returned when the requested resource doesn’t exist.- Verify the resource ID is correct
- Ensure you’re using the right environment (test vs. production resources are separate)
- Check if the resource was deleted
Duplicate Resource (400 Bad Request)
Returned when trying to create a resource that already exists.- Use a unique identifier for idempotent requests
- Check if the resource already exists before creating
Handling Errors in Code
TypeScript SDK
cURL
Environments
Make sure you’re using the correct base URL:| Environment | Base URL |
|---|---|
| Production | https://api.creem.io |
| Test Mode | https://test-api.creem.io |
Need Help?
If you’re experiencing issues:- Check the
trace_idin your error response - Join our Discord community for quick help
- Contact support with your trace ID for faster debugging