Base URL
The ActumX API is organized around REST principles. All API endpoints are prefixed with/v1 for versioning.
API Versioning
The API uses URL-based versioning. The current version isv1. All endpoints are prefixed with /v1 (e.g., /v1/agents, /v1/billing/summary).
Response Format
All API responses are returned in JSON format. Successful responses typically return a 200 status code with the requested data.Success Response
Error Response
Error responses include anerror field with a machine-readable error code:
HTTP Status Codes
The API uses standard HTTP status codes:| Code | Meaning |
|---|---|
| 200 | Success - Request completed successfully |
| 202 | Accepted - Request accepted (used for JSON-RPC notifications) |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Missing or invalid authentication |
| 402 | Payment Required - x402 payment required (see x402 Protocol) |
| 404 | Not Found - Resource doesn’t exist |
| 500 | Internal Server Error - Something went wrong on the server |
Error Codes
Common error codes returned in theerror field:
unauthorized- Authentication required or invalidmissing_or_invalid_api_key- API key missing or not validpayment_required- x402 payment needed for this endpointinsufficient_balance- Not enough credits to complete operationpayment_not_found- Payment ID not foundinvalid_payment_proof- Payment proof doesn’t matchagent_not_found- Agent ID doesn’t exist or not owned by user
Rate Limiting
Rate limiting is not currently enforced but may be implemented in future versions. Monitor response headers for rate limit information.CORS
The API supports CORS for requests from the dashboard origin. The following headers are allowed:Content-TypeAuthorizationx-api-keyx-payment-idx-payment-proof