Skip to content

Fileverity API docs

Errors

The Fileverity API error format, HTTP statuses and the complete table of error codes, with guidance on which errors to retry.

View as MarkdownUpdated 2026-11-04

Errors use a standard HTTP status and a JSON body with a stable code. Branch on code, not on message: messages can change.

{  "error": {    "type": "invalid_request_error",    "code": "invalid_parameter",    "message": "Unrecognized parameter: files.",    "param": "files",    "request_id": "req_4mQ9cX2vB7nP1sK8tL3wR6yZ"  }}
FieldDescription
error.typeThe category. One type maps to one HTTP status family, listed below.
error.codeA stable, machine-readable identifier.
error.messageA human-readable explanation. It can name the field or limit involved.
error.paramThe request field that caused the error, or null.
error.request_idThe ID of this request, also in the x-request-id response header. Quote it when you contact support at hello@fileverity.com.

Error types

TypeStatusMeaning
invalid_request_error400, 413, 415, 422The request is malformed or breaks a limit. Fix the request; retrying it unchanged fails again.
authentication_error401The API key is missing or invalid.
billing_error402The balance or a spend limit stops the request. Add funds or raise the limit.
not_found_error404The resource does not exist, has expired or belongs to another workspace.
conflict_error409The request conflicts with current state.
rate_limit_error429Too many requests or too many pending uploads. For rate_limited, wait for retry-after seconds. pending_files_limit carries no retry-after: use, delete or wait for files to expire.
api_error500, 502, 503A problem on our side or busy capacity. These requests were not charged. Retry with backoff. service_unavailable carries a retry-after header.

What to retry

  • Retry rate_limited after the retry-after seconds, and internal_error, analysis_failed and service_unavailable with exponential backoff (for service_unavailable, start with the retry-after seconds). Send the same Idempotency-Key so a retry cannot run twice. See Idempotency.
  • Retry after waiting idempotency_in_progress.
  • Do not retry other 4xx errors until you change the request or the account state.
  • A check that ends in an error is not charged.

Still stuck? Write to hello@fileverity.com or use the contact page, and include the request ID.

Error codes

This table is generated from the API's own error definitions.

CodeStatusTypeMessage
invalid_json400invalid_request_errorThe request body must be a JSON object.
missing_parameter400invalid_request_errorA required parameter is missing.
invalid_parameter400invalid_request_errorA parameter has an invalid value.
text_too_short400invalid_request_errorThe text is too short to evaluate. Send at least 100 words.
text_too_long413invalid_request_errorThe text exceeds 100,000 characters. Split it into several requests.
unsupported_media_type415invalid_request_errorSend the request body as JSON with the header "Content-Type: application/json".
unsupported_language400invalid_request_errorThe text is not in a supported language. Supported languages are en, fr, de, es and zh.
file_not_found400invalid_request_errorThe uploaded file was not found or has expired. Upload it again.
unsupported_file415invalid_request_errorThe file format is not supported for this model.
file_too_large413invalid_request_errorThe file exceeds the size limit for this model.
too_many_pixels413invalid_request_errorThe image exceeds 40 megapixels.
too_many_pages413invalid_request_errorThe document exceeds 100 pages.
document_too_long413invalid_request_errorThe document contains too much text to analyze in one request.
invalid_file422invalid_request_errorThe file is damaged or cannot be read.
password_required422invalid_request_errorThe document is encrypted. Send its password to analyze it.
wrong_password422invalid_request_errorThe document password is incorrect.
not_examinable422invalid_request_errorThe document has no text, photos or structure that can be examined. You were not charged.
missing_api_key401authentication_errorNo API key provided. Send it in the header "Authorization: Bearer fv_live_...".
invalid_api_key401authentication_errorThe API key is invalid or has been revoked.
insufficient_balance402billing_errorYour balance is too low for this request. Top up your balance in the console.
spend_limit_reached402billing_errorThis API key has reached its monthly spend limit. Raise the limit in the console or wait until the next month (UTC).
not_found404not_found_errorThe requested resource does not exist.
model_not_found404not_found_errorThe model does not exist or is not available.
not_cancelable409conflict_errorThe analysis can no longer be canceled.
canceled409conflict_errorThe analysis was canceled. You were not charged.
idempotency_mismatch409conflict_errorThis Idempotency-Key was already used with a different request body.
idempotency_in_progress409conflict_errorA request with this Idempotency-Key is still being processed. Retry shortly.
pending_files_limit429rate_limit_errorThis workspace has too many pending uploads. Analyze or delete uploaded files, or wait up to 24 hours for them to expire.
rate_limited429rate_limit_errorToo many requests. Retry after the number of seconds in the Retry-After header.
internal_error500api_errorThe request could not be completed. Retry it; if the problem persists, contact support with the request ID.
analysis_failed502api_errorThe analysis could not be completed. You were not charged; retry it, and contact support with the request ID if it fails again.
service_unavailable503api_errorThe service is temporarily unavailable or busy. You were not charged; retry after the number of seconds in the Retry-After header.

Console-only codes

These codes are returned by the Console's own endpoints, which work on your sign-in session. Requests made with an API key do not return them.

CodeStatusTypeMessage
session_required401authentication_errorSign in to continue.
forbidden403permission_errorYou do not have permission to do this.
invite_invalid404not_found_errorThis invitation is invalid, expired or already used.
invite_mismatch403permission_errorThis invitation was sent to a different email address.
invite_limit409conflict_errorThis workspace already has the maximum number of pending invitations. Revoke one first.
last_owner409conflict_errorA workspace must keep at least one owner. Make another member an owner first.
webhook_limit409conflict_errorThis workspace already has the maximum number of webhook endpoints. Delete one first.
key_limit409conflict_errorThis workspace already has the maximum number of active API keys. Revoke one first.