Faraatarjomeh API
Pages

For AI agents: this page as Markdown at https://faraatarjomeh.com/api/v1/docs/errors.md; all docs in one file at llms-full.txt.

Errors

Every error is application/problem+json (RFC 9457) with a stable code. Find the code below and follow its retry rule. The same table is available as JSON: https://faraatarjomeh.com/api/v1/docs/errors.json.

At a glance#

Retry rules#

retry Meaning
do_not_retry The same request fails again. Change what the error names first (ask the user if needsUser). Nothing was done, so after the fix the same Idempotency-Key may be reused.
refresh_then_retry Read the resource again (GET), rebuild the request from the fresh state, then send it. Nothing was done by the failed request.
retry_later Send the same request again with the same Idempotency-Key, after Retry-After seconds if sent, otherwise with exponential backoff (2s, 4s, 8s ... max 5 min).
check_then_retry The outcome is unknown and this answer is stored under the Idempotency-Key (a resend with it replays the error). Check whether the work happened (list the jobs, or the ledger with ?jobId=). Only if it did not, send again with a NEW Idempotency-Key after a pause.
wait Do not send anything. The job is already running; poll it or wait for its webhook.

Problem body#

JSON
{
  "type": "https://faraatarjomeh.com/api/v1/docs/errors#error-insufficient-credits",
  "title": "Payment Required",
  "status": 402,
  "detail": "Insufficient credits",
  "instance": "/api/v1/translate/start/3f1c2b7e-9a4d-4c1e-8f7a-2b9c4d5e6f70",
  "code": "INSUFFICIENT_CREDITS",
  "request_id": "5f0b8d2e-1c3a-4b7e-9d6f-0a1b2c3d4e5f",
  "balance": 12,
  "estimatedCost": 40
}

Codes#

code HTTP retry needs user meaning and action
INVALID_API_KEY 401 do_not_retry yes The API key is missing, malformed, revoked, or unknown. Check the key and send it as Authorization: Bearer fara_sk_....
API_KEY_EXPIRED 401 do_not_retry yes The API key has passed its expiry date. Create a new key on the website.
ACCOUNT_DISABLED 403 do_not_retry yes The account that owns this key is disabled.
API_KEY_ROUTE_NOT_ALLOWED 403 do_not_retry no This endpoint is not available with an API key (for example login, password, buying Fara, or key management). Use the website for it.
CONNECTION_NOT_ALLOWED 403 do_not_retry no A key from a connected AI assistant cannot change account settings, webhooks, or delete anything. Use the website for it.
INSUFFICIENT_SCOPE 403 do_not_retry yes The key does not have the scope this request needs. The problem body has requiredScope (read or write).
API_DISABLED 403 retry_later (≥ 10 min) no API access is switched off right now. Try again later.
EMAIL_NOT_VERIFIED 403 do_not_retry yes The account email is not verified yet. Verify it on the website first.
RATE_LIMITED 429 retry_later no Too many requests. Wait for the number of seconds in Retry-After, then retry.
INVALID_IDEMPOTENCY_KEY 400 do_not_retry no Idempotency-Key must be 1-255 visible ASCII characters. A UUID is a good choice.
IDEMPOTENCY_KEY_IN_USE 409 retry_later no A request with this Idempotency-Key is still running. Wait for Retry-After and send it again to get the stored answer.
IDEMPOTENCY_KEY_REUSED 422 do_not_retry no This Idempotency-Key was already used for a different request. Use a new key for a new request.
IDEMPOTENCY_KEY_ALREADY_USED 409 do_not_retry no This Idempotency-Key was already used and its answer (a file, or a very large body) cannot be replayed. originalStatus has the first answer's status. Use a new key to run the request again.
INVALID_CURSOR 400 do_not_retry no startingAfter is not a valid cursor. Use an id or nextCursor from a previous page.
INVALID_LIMIT 400 do_not_retry no limit must be a whole number from 1 to 100.
FEATURE_NOT_ENABLED 403 do_not_retry yes This feature is in early access and is not turned on for your account. Ask us to turn it on; sending the request again will not help.
SPEND_LIMIT_REACHED 402 do_not_retry yes This API key has reached the spend limit its owner set for the period (spendLimit, spent and required are in the body). The account may still have Fara: the owner raises the limit on the website (limitsUrl in the body), or the period rolls over (UTC day or month).
INVALID_AUDIO_URL 400 do_not_retry no audioUrl is not a public https URL (no user name or password, at most 4096 characters, not a private address).
INVALID_FILE_URL 400 do_not_retry no fileUrl is not a public https URL (no user name or password, at most 4096 characters, not a private address).
FILE_URL_FETCH_FAILED 422 do_not_retry no We could not download fileUrl: the host answered with an error, redirected more than 3 times, sent an empty file, or the download stopped. Nothing was created or charged. Check the link and send the request again.
AUDIO_URL_FETCH_FAILED 422 retry_later no We could not download audioUrl: the host answered with an error, redirected more than 3 times, sent an empty file, or the download stopped. Nothing was created or charged. Check the link (a presigned link may have expired) and send the request again.
INVALID_MAX_FARA 400 do_not_retry no maxFara must be a number of Fara of 0 or more (0 is valid when the price is 0). Send a number such as 12, or leave it out.
PRICE_CHANGED 409 refresh_then_retry yes The price of the tool is now above the maxFara you sent. faraCharged in the body is the new price. Nothing was held or charged. Show the new price to the user; if they agree, send the request again with a maxFara at or above it.
BAD_CHUNK 400 do_not_retry no The chunk index is outside the upload, or the chunk is not the right length for its index (every chunk is chunkSize bytes except the last, which is the rest). expectedBytes gives the right length when the index is valid.
CHUNK_DIGEST_MISMATCH 422 retry_later no The chunk's bytes do not match its Content-Digest header, so it was not stored. Send the same chunk again.
UPLOAD_NOT_FOUND 404 do_not_retry no No upload with this uploadId on this account (or it was cancelled).
UPLOAD_EXPIRED 410 do_not_retry no The upload passed its expiresAt (24 hours after it started) and its chunks were deleted. Start a new upload.
UPLOAD_INCOMPLETE 409 refresh_then_retry no A job was created from an upload that is missing chunks. missing lists the missing indexes (missingCount how many). Send them, then create the job again.
UPLOAD_ALREADY_USED 409 do_not_retry no This upload already made a job (jobId in the body). One upload makes one job. A resend with the first request's Idempotency-Key gets the first answer instead.
UPLOAD_CHECKSUM_MISMATCH 422 do_not_retry no The joined file does not match the sha256 sent when the upload started. Nothing was created or charged. Upload the file again.
UPLOAD_LIMIT_REACHED 409 do_not_retry no The account has the most uploads in progress allowed (maxOpenUploads). Create a job from one, or cancel one, first.
INVALID_TRANSLATION_OPTIONS 400 do_not_retry no translationMode must be standard or economy. keepLayout, summary, noSummary and translateImages must be true or false.
TRANSLATION_MODE_UNAVAILABLE 400 do_not_retry no The economy translation mode is not available for this account. Use standard.
ECONOMY_NEEDS_TEXT_LAYER 400 do_not_retry no The economy mode needs a PDF with a text layer. Scanned files need standard.
ECONOMY_UNAVAILABLE 503 retry_later no The economy mode is not available right now. Retry after the Retry-After seconds, or use standard.
INVALID_TARGET_LANGUAGE 400 do_not_retry no targetLanguage must be one of fa, en, ar, de, fr, es, ru, tr, zh.
TOOL_NEEDS_PERSIAN_TRANSLATION 409 refresh_then_retry no This tool (summary, slides, mind map, LinkedIn posts, podcast, audiobook) writes Persian, so it works only on a translation into Persian.
TARGET_LANGUAGE_NEEDS_PERSIAN_SOURCE 400 do_not_retry no A targetLanguage other than fa is accepted only for a document the analysis found to be in Persian (sourceLanguageNotice: "persian").
TRANSLATION_MODE_SWITCH_NOT_ALLOWED 400 do_not_retry no Only a failed economy job whose failure came from our side can be switched to standard on retry.
TRANSLATION_MODE_SWITCH_CONFLICT 409 refresh_then_retry no The job changed while the switch was starting. Refresh the job and try again.
TRANSLATION_MODE_UNREADABLE 503 retry_later no The translation mode of the job could not be read or saved. Try again later.
IMAGES_CHOICE_CLOSED 409 refresh_then_retry no No choice on the pictures is open for this job: it is not images_waiting, or another choice was already made. Sending the same choice again answers the stored result.
CONTENT_FORMAT_INVALID 400 do_not_retry no content does not match format: json needs an object or array, markdown and html a string, strings a string or an array of strings.
CONTENT_TOO_LARGE 413 do_not_retry no Too much text in one request (more than 20,000 strings or 1,000,000 characters). Split the content into several requests; translation memory keeps the terms the same across them.
JOB_NOT_FINISHED 409 do_not_retry no Only a finished job (completed, failed or cancelled) can be deleted. Cancel it first, or wait for it to finish.
MEETING_NOT_RUNNING 409 refresh_then_retry no The meeting stopped (failed or cancelled) while the names were being saved. Nothing was renamed.
SPEAKER_QUOTE_NOT_FOUND 422 do_not_retry no A quote in the speakers list is not in this meeting's transcript. index says which entry. Copy the words from the transcript (GET /api/v1/meetings/jobs/{id}/transcript). Nothing was renamed.
SPEAKER_QUOTE_AMBIGUOUS 422 do_not_retry no The same words were said by more than one person. candidates lists who said them and when (speakerId, startSeconds). Send a longer quote, or atSeconds near the right one. Nothing was renamed.
SPEAKER_QUOTE_CONFLICT 422 do_not_retry no Two entries disagree: a quote belongs to a different speaker than the speakerId sent with it, or two entries give one speaker different names. index says which entry. Nothing was renamed.
MEETING_NOT_FINISHED 409 wait no This meeting tool needs a completed meeting. Wait for meeting.completed (or poll the job) and send the request again.
MEETING_HAS_NO_MINUTES 409 do_not_retry no The meeting was made with output: transcript, so it has no minutes to summarise. Make minutes first with POST /api/v1/meetings/jobs/{id}/documents (early access).
TRANSCRIPT_NOT_READY 409 wait no The meeting has no timed transcript to work from yet (for speaker names: wait until the job's stage is past transcribing).
MINUTES_NOT_READY 409 wait no The meeting has no minutes to work from yet.
DOCUMENT_NOT_READY 409 wait no The document is still being made (or failed); check its state.
DOCUMENT_LIMIT_REACHED 409 do_not_retry no The meeting already has the most extra documents it can keep (50).
INSTRUCTION_NOT_APPLICABLE 422 do_not_retry yes The revision could not be made from that instruction. Reported on the job (minutesRevision.error) with a message to show the user; nothing is charged.
FEATURE_DISABLED 404 retry_later (≥ 10 min) no This tool is switched off right now. Video and meeting endpoints answer 404, and so does the translation price call (GET /api/v1/translate/{jobId}/tools/price) while price-first is off; audio, text to speech, transcription, and proofreading answer 503 with the same code. Try again later.
INSUFFICIENT_CREDITS 402 do_not_retry yes Not enough Fara for this request. The problem body may include balance, estimatedCost, cost, or required, and (for API keys) shortfall and topUpUrl: give the user topUpUrl, where they add Fara on the website (an API key cannot buy Fara), then try again.
CHARGEBACK_LIABILITY_OUTSTANDING 402 do_not_retry yes A payment on this account was reversed and is not settled yet, so no new Fara can be held. Contact support.
SPEND_LOCK_BUSY 503 retry_later no A connected AI assistant's spending is being checked by another request right now. Retry after Retry-After seconds.
CREDIT_RESERVATION_UNAVAILABLE 503 retry_later no Fara could not be held right now for a temporary reason. Your balance is fine. Retry after Retry-After seconds.
HOLD_NOT_FOUND 409 do_not_retry no The Fara held for this job is gone, so the job cannot go on. For approve calls the job is cancelled. Create a new job.
INVALID_PDF 400 do_not_retry no The file is not a valid PDF.
INVALID_PAGE_RANGE 400 do_not_retry no The page range is not valid: the numbers are not whole, the first page is after the last, a side is missing, or the range covers the whole file (translate the whole file instead). With chapters, the list is empty or names a chapter that does not exist.
PAGE_RANGE_OUT_OF_BOUNDS 400 do_not_retry no A page in the range is outside the file. Pages run from 1 to the page count.
PAGE_RANGE_NOT_CONTIGUOUS 400 do_not_retry no The chapters picked are not next to each other. Pick one run of chapters.
PAGE_RANGE_PARENT_IS_PART 409 do_not_retry no This job is already a part of a file. Start the part range from the whole file.
PAGE_RANGE_SOURCE_GONE 410 do_not_retry no The original file is no longer stored. Upload the file again.
PAGE_RANGE_UNAVAILABLE 422 do_not_retry no The pages could not be cut from the file, or the page count is not known. The whole file is not used instead. Change the range, or upload the file again.
PAGE_RANGE_EMPTY 422 do_not_retry no No readable text was found on the pages in the range. Translation has not started. Try another range.
PAGE_RANGE_BUSY 409 retry_later no The same page range is still being prepared by another request. Retry the same call after a few seconds; it then returns the part.
JOB_NOT_READY 409 wait no The job is not analysed yet (or is not in a state that allows this call). Wait until its status is analyzed, completed or completed_partial, then retry.
UNSUPPORTED_FILE_TYPE 415 do_not_retry no The file is not a PDF, a Word .docx or an EPUB file that we accept. An old Word .doc file is not accepted: save it as .docx or as PDF. Nothing was stored or charged.
DOCUMENT_PROTECTED 422 do_not_retry no The Word or EPUB file has a password or a publisher lock, and we cannot read it. Send a copy without the lock. Nothing was stored or charged.
INVALID_DOCUMENT 422 do_not_retry no The Word or EPUB file could not be opened. If it opens on your computer, save it as a PDF and send the PDF. Nothing was stored or charged.
DOCUMENT_CONVERSION_INCOMPLETE 422 do_not_retry no We could not read every text part or picture of the Word or EPUB file, so we refused it rather than lose content. Save it as a PDF and send the PDF. Nothing was stored or charged.
DOCUMENT_CONVERSION_FAILED 422 do_not_retry no We could not prepare the Word or EPUB file. Save it as a PDF and send the PDF. Nothing was stored or charged.
TOO_MANY_PAGES 422 do_not_retry no The PDF has more than 1,000 pages. Books this long cannot be translated yet. details.pageCount and details.maxPages give the numbers. Nothing was stored or charged.
EXTRACTION_EMPTY_OR_SCANNED 400 do_not_retry yes No readable text was found and the file could not be accepted for reading from page images.
EXTRACTION_CAPACITY_EXCEEDED 503 retry_later no Too many documents are being read right now. Retry after Retry-After seconds.
EXTRACTOR_RESOURCE_EXHAUSTED 503 retry_later no The document reader ran out of resources on this file. Retry later, or try a smaller file.
EXTRACTOR_RUNTIME_DEPENDENCY 503 retry_later no The document reader is not fully available right now. Retry later.
EXTRACTION_TIMEOUT 504 check_then_retry no Reading the document took too long. Retry later, or try a smaller file.
FREE_PREVIEW_UNAVAILABLE 403 do_not_retry no The free first pages are switched off right now, or this job is the rest of a book that already had them. Start without freePreview.
FREE_PREVIEW_ALREADY_USED 403 do_not_retry no This account (or its phone number or email) already used its free first pages. Start without freePreview.
NOT_A_FREE_PREVIEW 400 do_not_retry no Only a job started with freePreview has a rest to translate.
PREVIEW_NOT_FINISHED 409 refresh_then_retry no The free first pages are still being translated. Wait for the job to complete, then ask again.
PREVIEW_COVERED_WHOLE_DOCUMENT 409 refresh_then_retry no The document has no more pages than the free part, so nothing is left to translate.
PREVIEW_SOURCE_GONE 410 do_not_retry no The original file of the preview is no longer stored. Upload the PDF again to translate it all.
INVALID_EXECUTION_MODE 400 do_not_retry no executionMode must be economy_batch or realtime (or left out). Nothing was started.
TRANSLATION_NOT_CONFIGURED 503 retry_later no Translation is not available right now. Try again later.
ALREADY_QUEUED_OR_PROCESSING 409 wait no The job is already queued or running.
RESEND_IN_PROGRESS 409 wait no A section retry is still running for this job. Try again when it finishes.
RUN_JUST_ENDED 409 refresh_then_retry no The running job finished while recovery was starting. Call recover again.
CANCEL_NOT_PERSISTED 503 retry_later no The cancel could not be saved. Nothing changed. Try again.
ADMIN_REVIEW_REQUIRED 423 do_not_retry yes The job is locked while our team looks at it. No more retries are possible from your side.
RETRY_LIMIT_REACHED 423 do_not_retry yes The one free retry for this job was already used.
RETRY_STATE_PERSIST_FAILED 503 retry_later no The retry could not be recorded, so it was not started. Try again.
STALE_REVISION 409 refresh_then_retry no The translation changed since you read it. Read it again and send the new revision.
JOB_BUSY 409 retry_later no Another change to this job is running. Try again in a moment.
JOB_LEASE_LOST 409 refresh_then_retry no Another change to this job took over while this one ran. Read the job again before retrying.
DEGRADED_RETRY_IN_PROGRESS 409 wait no A section retry for this job is already running.
DEGRADED_RETRY_CONFLICT 409 refresh_then_retry no The job changed while the section retry started. Read the job again before retrying.
LEGACY_PIPELINE_REMOVED 410 do_not_retry no This older job cannot re-translate single sections. Upload the document again for a fresh translation.
MEDIA_TOO_LONG 400 do_not_retry yes The video or audio is longer than this tool allows.
SONG_DUBBING_UNAVAILABLE 409 refresh_then_retry no Singing songs in Persian (songDubbing: true) is not offered right now. Send the request again without songDubbing.
AUDIO_SOURCE_TOO_LONG 400 do_not_retry yes The audio file is longer than transcription allows.
SERVICE_BUSY 503 do_not_retry no The work could not be queued right now. The job is marked failed and its held Fara is released. Do not repeat the call; create a new job later.
FILE_TOO_LARGE 400 do_not_retry no The file is larger than this endpoint allows (PDF 100 MB; recordings sent in one request 200 MB; recordings sent as a chunked upload 1 GB). Nothing was stored. maxBytes gives the limit for chunked uploads.
UNSUPPORTED_VIDEO_FILE 400 do_not_retry yes The uploaded file is not a video we can read, or its length could not be read. Send an MP4, MOV, MKV, WebM or AVI file that has a sound track.
YOUTUBE_UNAVAILABLE 503 retry_later (≥ 10 min) no YouTube is refusing our server right now. This is not a problem with your link, and it will not clear in a few minutes. Try again much later.
DUPLICATE_JOB 409 wait no An audio job for this translation is already running. audioJobId points to it.
SOURCE_AUDIO_NOT_FOUND 409 do_not_retry no The original audio is no longer stored, so the job cannot be retried. Create a new job.
PRONUNCIATION_GENERATED_AFTER_APPROVAL 422 do_not_retry no Pronunciation text cannot be edited. It is made after you approve the review.
REVIEW_VERSION_REQUIRED 428 do_not_retry no Review edits need an If-Match header with the job's current reviewVersion.
INVALID_REVIEW_VERSION 400 do_not_retry no If-Match must be a whole number, bare (3) or quoted ("3").
REVIEW_VERSION_CONFLICT 409 refresh_then_retry no The review changed since you read it. currentVersion has the new version. Read the job again, then retry.
INVALID_WEBHOOK_URL 400 do_not_retry no The webhook URL must be a valid public https URL with no user name or password.
WEBHOOK_HOST_UNRESOLVED 400 do_not_retry no The webhook host name does not resolve.
WEBHOOK_HOST_NOT_PUBLIC 400 do_not_retry no The webhook host resolves to a private or local address.
INVALID_EVENTS 400 do_not_retry no events must be a non-empty list of known event types, or ["*"] for all.
INVALID_ENABLED 400 do_not_retry no enabled must be true or false.
WEBHOOK_ENDPOINT_LIMIT_REACHED 409 do_not_retry no The account has the most webhook endpoints allowed. Delete one first.
BAD_REQUEST 400 do_not_retry no The request is not valid. detail says what is wrong.
UNAUTHORIZED 401 do_not_retry no Authentication is required.
FORBIDDEN 403 do_not_retry no You cannot access this resource (for example, a job owned by another account).
NOT_FOUND 404 do_not_retry no The resource does not exist, or it is not yours.
METHOD_NOT_ALLOWED 405 do_not_retry no This HTTP method is not supported here.
CONFLICT 409 refresh_then_retry no The request conflicts with the current state of the resource. Read it again and retry.
GONE 410 do_not_retry no The resource is no longer available.
PRECONDITION_FAILED 412 do_not_retry no A request precondition did not hold.
PAYLOAD_TOO_LARGE 413 do_not_retry no A text field is too long. The body may include maxChars. (An uploaded file over the size limit answers 400 BAD_REQUEST instead.)
UNSUPPORTED_MEDIA_TYPE 415 do_not_retry no The request body type is not supported.
UNPROCESSABLE_CONTENT 422 do_not_retry no The request is well formed but cannot be processed.
LOCKED 423 retry_later no The resource is locked.
PRECONDITION_REQUIRED 428 do_not_retry no The request needs a precondition header such as If-Match.
INTERNAL_ERROR 500 check_then_retry no Something failed on our side. Retry later and include request_id if you contact support.
UPSTREAM_ERROR 502 check_then_retry no A service we depend on answered with an error. Retry later.
SERVICE_UNAVAILABLE 503 retry_later no The service is busy or briefly unavailable. Retry after Retry-After if it is sent.
UPSTREAM_TIMEOUT 504 check_then_retry no A service we depend on took too long. Retry later.