BAD_REQUEST | 400 | Invalid query parameters (e.g., check_blur is not a boolean or days is not an integer), or the multipart file field is missing. | Verify query parameter types and provide the uploaded file using the file form key. |
EMPTY_FILE | 400 | The uploaded .json file is empty or contains only whitespace or BOM bytes. | Ensure the JSON file contains valid data before uploading. |
UNAUTHORIZED | 401 | The provided API key was not found, is inactive, or has been revoked. | Provide a valid, active API key in the x-api-key header. |
NO_ACTIVE_SUBSCRIPTION | 402 | The organization has no active plan, or no usable subscription or token source could be resolved. | Renew or purchase a plan with available usage from the dashboard. |
TOKENS_EXHAUSTED | 402 | Available tokens or seat quota were exhausted during reservation or request completion. | Purchase additional tokens or upgrade your organization’s seat plan. |
NOT_ALLOWED | 403 | The user does not have sufficient permissions to perform the requested operation within the organization. | Ask your organization administrator to grant the required permissions. |
FORBIDDEN | 403 | The provided x-api-key has an invalid format or prefix, or has expired. | Generate a new API key from your workspace settings. |
NOT_FOUND | 404 | The request log ID could not be found during the completion step. | Ensure the transaction has not been cleared or expired before completion. |
REQUEST_NOT_PENDING | 409 | The request has already been completed, expired, or previously marked as failed. | Submit a new detection request instead of attempting to complete the existing one. |
FILE_TOO_LARGE | 413 | The uploaded file exceeds the size limit (10 MB for images and JSON; 25 MB for Excel). | Compress or reduce the file size to meet the allowed limit. |
INVALID_FILE_TYPE | 415 | The file extension is not supported (.png, .jpg, .jpeg for images; .json for JSON; .xlsx, .xlsm for Excel). | Convert or re-save your file using one of the supported extensions. |
INVALID_FILE_CONTENT | 415 | The file is corrupted or its content does not match the expected format (JPEG/PNG, JSON, or Excel). | Upload an uncorrupted file with valid content matching the expected format. |
UNPROCESSABLE_ENTITY | 422 | The upstream AI engine could not extract or detect valid structures from the uploaded file. | Review the error details in the response payload, retake the photo, or verify the document format. |
TOO_MANY_PENDING_REQUESTS | 429 | Too many simultaneous requests are already in progress for this account. | Reduce request concurrency and wait for in-flight requests to finish before sending more requests. |
INTERNAL_ERROR | 500 | An unexpected internal server error occurred. | Retry with exponential backoff. If the problem persists, contact support. |