Skip to main content
The Ayliea API uses standard HTTP status codes and returns errors in a consistent JSON format.

Error format

All error responses return a JSON object with a single error field containing a human-readable message:
{
  "error": "Human-readable error description"
}
Error messages are intentionally general and do not expose internal implementation details.

Status codes

CodeMeaningWhen it happens
200OKRequest succeeded
400Bad requestInvalid query parameters (e.g., limit out of range)
401UnauthorizedMissing or invalid X-API-Key header
403ForbiddenAPI key lacks the required scope, or organization is not on the Enterprise tier
404Not foundRequested resource does not exist
409ConflictDuplicate resource (e.g., maximum API keys reached)
429Too many requestsRate limit exceeded
500Internal server errorUnexpected server-side failure

Example error responses

{
  "error": "Invalid API key"
}

Handling errors

4xx errors indicate a problem with your request. Check the error message, fix the issue, and retry. 429 errors mean you have been rate limited. Wait for the Retry-After period and retry. See Rate limiting for details. 500 errors indicate a server-side problem. These are safe to retry with exponential backoff. If 500 errors persist, contact support@ayliea.com.