Skip to content

Error Codes

HTTP Status Codes

CodeMeaningCommon Cause
200SuccessRequest completed
400Bad RequestMissing required fields, invalid parameters
401UnauthorizedMissing or invalid Bearer token
402Payment RequiredInsufficient credits
403ForbiddenNo permission to access this resource
404Not FoundResource doesn't exist
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer-side error or execution failure
504Gateway TimeoutResource exceeded 120s timeout

Error Response Format

json
{
  "error": "Description of what went wrong",
  "requestId": "req-xxx"
}

Common Errors

"Alias required"

You must set an alias before creating resources. Set one at universalapi.co/keys or via API:

bash
curl -s -X POST https://api.universalapi.co/user/alias \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"alias": "your-name"}' | jq

"Insufficient credits"

Your account doesn't have enough credits. Check balance at universalapi.co or purchase more via the Pricing page.

"Execution error"

The resource's source code threw an exception. Check the code and logs.

Universal API - The agentic entry point to the universe of APIs