Skip to content

API Error Reference

This document provides a reference for the error codes and messages returned by the API.

Error Format

All errors returned by the API follow this standard format:

json
{
  "error": {
    "code": "ERROR_CODE",
    "message": "A descriptive error message.",
    "details": "Additional information about the error (if available)."
  }
}

Error Codes

CodeHTTP StatusDescription
INVALID_INPUT400The input provided is invalid.
NOT_FOUND404The requested resource was not found.
UNAUTHORIZED401Authentication is required or failed.
FORBIDDEN403You do not have permission to access this resource.
SERVER_ERROR500An internal server error occurred.
RATE_LIMITED429Too many requests have been made.

Example Error Response

Invalid Input Example

json
{
  "error": {
    "code": "INVALID_INPUT",
    "message": "The 'email' field is required.",
    "details": "Ensure all required fields are provided."
  }
}

Not Found Example

json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "The requested resource could not be found.",
    "details": "Check the resource ID and try again."
  }
}

Troubleshooting

  • 400 (Bad Request): Verify the request parameters and payload.
  • 401 (Unauthorized): Ensure your API key or token is valid.
  • 403 (Forbidden): Check your permissions for the requested resource.
  • 404 (Not Found): Confirm the resource exists and the URL is correct.
  • 500 (Server Error): Retry the request later or contact support.

For further assistance, please contact our support team.