Faraatarjomeh API
Pages

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

API reference: Jobs

The Jobs endpoints (7 operations), generated from the OpenAPI document (https://faraatarjomeh.com/api/v1/openapi.json). For task-level walkthroughs use the guides; for error handling use /api/v1/docs/errors. The full reference: /api/v1/docs/reference.

At a glance#

Index#

Jobs#

Translation jobs: list, status, retry, cancel.

GET /api/v1/jobs#

List translation jobs

Newest first. Page-based pagination.

Parameters

Name In Type Required Notes
page query integer no Page number, starting at 1. — default: 1; min 1
limit query integer no Items per page (1-100). — default: 20; min 1; max 100

Response 200

TranslationJobList

Responses

Example

curl
curl -sS -X GET "https://faraatarjomeh.com/api/v1/jobs" \
  -H "Authorization: Bearer $FARA_API_KEY"

GET /api/v1/jobs/{jobId}#

Get a translation job Deprecated.

Deprecated for API keys: use GET /api/v1/translate/status/{jobId}. Answers carry Deprecation and Sunset headers; from 2026-09-29 API keys get 410 GONE.

The job with its outputs. For polling prefer GET /api/v1/translate/status/{jobId} (the webhook links.self): this endpoint answers 404 for an analyzed job older than 24 hours and for failed or cancelled jobs without output once their short-lived data expired. End states: completed, completed_partial, failed, cancelled.

Parameters

Name In Type Required Notes
jobId path string yes Translation job id (returned by analysis or upload).

Response 200

TranslationJob

Responses

Example

curl
curl -sS -X GET "https://faraatarjomeh.com/api/v1/jobs/$JOB_ID" \
  -H "Authorization: Bearer $FARA_API_KEY"

DELETE /api/v1/jobs/{jobId}#

Cancel or delete a translation job

A running job is cancelled and its held Fara is released. A finished job is deleted from your list. To cancel only, use POST /api/v1/jobs/{jobId}/cancel, which never deletes. With onlyFinished=1 the call never cancels: a job that is not finished answers 409 JOB_NOT_FINISHED and nothing changes.

Parameters

Name In Type Required Notes
jobId path string yes Translation job id (returned by analysis or upload).
onlyFinished query string no 1: delete only a finished job; a running or waiting one answers 409 JOB_NOT_FINISHED and is left alone. — one of: 1
Idempotency-Key header string no see /api/v1/docs/conventions#idempotency

Response 200

MessageResponse

Responses

Example

curl
curl -sS -X DELETE "https://faraatarjomeh.com/api/v1/jobs/$JOB_ID" \
  -H "Authorization: Bearer $FARA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/jobs/{jobId}/retry#

Retry a failed or cancelled translation

Translates the whole document again with the same settings. Only failed or cancelled jobs (400 otherwise), within 3 days of a failure or 1 day of a cancel (404 later). Each job has one retry from your side, shared with resend-chunks and recover (423 RETRY_LIMIT_REACHED when used). The balance is checked again; Fara is held when the job runs.

Parameters

Name In Type Required Notes
jobId path string yes Translation job id (returned by analysis or upload).
Idempotency-Key header string no see /api/v1/docs/conventions#idempotency

Response 200

RetryResponse

Responses

Example

curl
curl -sS -X POST "https://faraatarjomeh.com/api/v1/jobs/$JOB_ID/retry" \
  -H "Authorization: Bearer $FARA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/jobs/{jobId}/cancel#

Cancel a translation job

Cancels a job that has not finished (analyzed, waiting or running) and releases its held Fara, like POST …/cancel on every other product. A finished job answers 409 and is left alone.

Parameters

Name In Type Required Notes
jobId path string yes Translation job id (returned by analysis or upload).
Idempotency-Key header string no see /api/v1/docs/conventions#idempotency

Response 200

MessageResponse

Responses

Example

curl
curl -sS -X POST "https://faraatarjomeh.com/api/v1/jobs/$JOB_ID/cancel" \
  -H "Authorization: Bearer $FARA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/jobs/{jobId}/images#

Choose what happens to the pictures of a waiting job

For a job with status images_waiting: the balance does not cover the pictures with text, so the text is translated and the pictures wait for your choice. all translates every picture (402 INSUFFICIENT_CREDITS with shortFara when the balance does not cover the quoted price). part translates the first pictures the balance covers (402 when it covers none). none goes on without translating pictures and charges only for the text. The job is queued again at once. Sending the same choice again answers the stored result; another choice, or a job that is not waiting, answers 409 IMAGES_CHOICE_CLOSED.

Parameters

Name In Type Required Notes
jobId path string yes Translation job id (returned by analysis or upload).
Idempotency-Key header string no see /api/v1/docs/conventions#idempotency

Request body application/json (required)

Field Type Required Notes
choice string yes all, part or none. — one of: all, part, none

Response 200

Field Type Required Notes
jobId string yes
choice string yes all, part or none.
status string yes pending for a choice that was just accepted. On a replay of the same choice, the job's current status (for example pending, processing or completed).

Responses

Example

curl
curl -sS -X POST "https://faraatarjomeh.com/api/v1/jobs/$JOB_ID/images" \
  -H "Authorization: Bearer $FARA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"choice":"all"}'

POST /api/v1/jobs/{jobId}/recover#

Recover a stuck or failed translation

Looks at what is stored for the job and does the safe thing: re-attaches to a run that is still going, rebuilds the files if the translation is done, or queues the job again (this uses the one free retry and spends Fara like a retry). recovery.action says what happened. Works on analyzed, pending, processing, failed, and cancelled jobs. The body is optional. Re-queueing a pending or processing job answers 409 ADMIN_REVIEW_REQUIRED; forceRequeue answers 403 ADMIN_REVIEW_REQUIRED.

Parameters

Name In Type Required Notes
jobId path string yes Translation job id (returned by analysis or upload).
Idempotency-Key header string no see /api/v1/docs/conventions#idempotency

Request body application/json

RecoverRequest

Response 200

RecoverResponse

Responses

Example

curl
curl -sS -X POST "https://faraatarjomeh.com/api/v1/jobs/$JOB_ID/recover" \
  -H "Authorization: Bearer $FARA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Schemas#

Named request and response objects used above. Nested objects are flattened as parent.child; arrays as parent[].child.

MessageResponse#

Field Type Required Notes
message string no
jobId string no
analysisId string no

RecoverRequest#

Field Type Required Notes
forceRegenerate boolean no Rebuild the output files even if they exist.
forceRequeue boolean no Admin only. From an API key it answers 403 ADMIN_REVIEW_REQUIRED.

RecoverResponse#

Field Type Required Notes
jobId string yes
currentStatus string no
hasBilingualContent boolean no
hasChunks boolean no
chunkCount integer no
totalChunks integer no
hasDocxFile boolean no
hasPdfFile boolean no
completedChunks integer no
recovery object yes
recovery.success boolean yes
recovery.action string yes What recovery did: reattached_running_execution, update_status, regenerate_outputs, requeue_job, or no_data.
recovery.newStatus string no
recovery.message string no
recovery.suggestion string no

RetryResponse#

Field Type Required Notes
message string no
jobId string yes
status string yes pending.

TranslationJob#

Reads short-lived job data first: an analyzed job older than 24 hours, or a failed or cancelled job without output after its short-lived data expired, answers 404 here. GET /api/v1/translate/status/{jobId} reads the long-lived job record and answers for every job you have not deleted.

Field Type Required Notes
jobId string yes
status string yes analyzed (priced, not started), pending, processing, translating, batch_submitted, batch_waiting, batch_results_received, validating (only on jobs started before economy delivery was removed), images_waiting (the text is done; the pictures wait for your choice, see POST /api/v1/jobs/{jobId}/images), and the end states completed, completed_partial, failed, cancelled. Treat any other value as still running.
filename string | null no may be null
fileId string no Id of the stored original PDF.
sourceFormat string | null no Only for a Word or EPUB upload: docx or epub, the format the PDF was made from. Null for a PDF upload. — may be null
pageCount integer | null no may be null
outputPageCount integer | null no may be null
wordCount integer | null no may be null
charCount integer | null no may be null
quality string | null no may be null
workflow string | null no may be null
availableWorkflows string[] no
executionMode string no one of: economy_batch, realtime
economyBatchStage string | null no Economy jobs: progress detail. Display only. — may be null
economyBatchStatus string | null no Economy jobs: progress detail. Display only. — may be null
translationMode string no Economy tier: economy or standard. Absent on jobs stored before the Economy tier. — one of: economy, standard
keepLayout boolean no Economy tier: the page-design tick. Economy jobs have it off.
summary boolean no Economy tier: the book-summary tick.
noSummary boolean no Standard only: true when the translation was started without the book summary. Standard makes the summary unless this is set.
expectedBy integer | null no Economy jobs only: the promised time as ms since 1970-01-01 UTC. Null otherwise. — may be null
canSwitchToStandard boolean no Economy tier: true when this failed Economy job can be switched to Standard (the retry call with translationMode: "standard"). Always false otherwise.
economyFailure string | null no Economy tier: why this failed Economy job failed, in words the customer may see: incomplete (part of the text could not be read), extraction (the file could not be read in full) or unavailable (Economy was not available). Null for any other job. — one of: incomplete, extraction, unavailable, null; may be null
totalChunks integer no
completedChunks integer no
progress integer no 0-100.
processingStage string | null no extracting, preparing, translating, or null. Display only. — may be null
translationStep integer | null no Rough progress marker while translating. Display only; use progress for how far the job is. — may be null
createdAt string | null no may be null
updatedAt string | null no may be null
completedAt string | null no may be null
error string | null no Always null for API keys. — may be null
errorCode string | null no Always null for API keys. Use customerErrorCode. — may be null
customerErrorCode string | null no Why the job failed, as a stable code. Null while the job is fine. — one of: NO_TEXT_LAYER, FILE_TOO_LARGE, TOO_MANY_PAGES, MEDIA_TOO_LONG, TOOK_TOO_LONG, PARTIAL_SECTIONS, INSUFFICIENT_CREDITS, SPEND_LIMIT_REACHED, SERVICE_BUSY, YOUTUBE_UNAVAILABLE, NO_SPEECH_FOUND, VOICE_CONSENT_REQUIRED, RETRY_LIMIT_REACHED, UNDER_REVIEW, OUTLINE_NO_MATERIAL, DOCUMENT_NO_MATERIAL, OUTLINE_EMPTY, RECOVERY_LIMIT, UNSUPPORTED_FILE_TYPE, DOCUMENT_PROTECTED, INVALID_DOCUMENT, DOCUMENT_CONVERSION_INCOMPLETE, DOCUMENT_CONVERSION_FAILED, GENERIC, null; may be null
outputs object | null no Present once the job is completed or completed_partial. Download with GET /api/v1/translate/download/{jobId}/{type}. — may be null
outputs.docx string | null no Set when a DOCX exists. — may be null
outputs.pdf string | null no Set when a PDF exists. — may be null
hasFailedChunks boolean no
failedChunkCount integer no
hasEmptyChunks boolean no
emptyChunkCount integer no
hasQualityWarnings boolean no
qualitySummary object | null no Quality summary. Informational. — may be null
outputWarnings object[] no Informational notes about the output files.
outputWarningCount integer no
userRetryCount integer no
retryLocked boolean no
adminReviewRequired boolean no
reviewReasonCode string | null no may be null
images object | null no Only while status is images_waiting. Can be null for a moment after a choice or a cancel, or when the record cannot be read; then read it again.
source string no Internal detail. Ignore.

TranslationJobList#

Field Type Required Notes
jobs object[] yes
jobs[].jobId string yes
jobs[].status string yes analyzed (priced, not started), pending, processing, translating, batch_submitted, batch_waiting, batch_results_received, validating (only on jobs started before economy delivery was removed), images_waiting (the text is done; the pictures wait for your choice, see POST /api/v1/jobs/{jobId}/images), and the end states completed, completed_partial, failed, cancelled. Treat any other value as still running.
jobs[].filename string | null no may be null
jobs[].pageCount integer | null no may be null
jobs[].outputPageCount integer | null no Pages in the Persian PDF, once made. — may be null
jobs[].wordCount integer | null no may be null
jobs[].charCount integer | null no may be null
jobs[].quality string | null no may be null
jobs[].workflow string | null no may be null
jobs[].availableWorkflows string[] no
jobs[].executionMode string no one of: economy_batch, realtime
jobs[].economyBatchStage string | null no Economy jobs: progress detail. Display only. — may be null
jobs[].economyBatchStatus string | null no Economy jobs: progress detail. Display only. — may be null
jobs[].translationMode string no Economy tier: economy or standard. Absent on jobs stored before the Economy tier. — one of: economy, standard
jobs[].keepLayout boolean no Economy tier: the page-design tick. Economy jobs have it off.
jobs[].summary boolean no Economy tier: the book-summary tick.
jobs[].noSummary boolean no Standard only: true when the translation was started without the book summary. Standard makes the summary unless this is set.
jobs[].expectedBy integer | null no Economy jobs only: the promised time as ms since 1970-01-01 UTC. Null otherwise. — may be null
jobs[].canSwitchToStandard boolean no Economy tier: present for jobs that stored options. True when this failed Economy job can be switched to Standard (the retry call with translationMode: "standard"). False while the job is locked for retry, for anyone but an admin.
jobs[].economyFailure string | null no Economy tier: why this failed Economy job failed, in words the customer may see: incomplete (part of the text could not be read), extraction (the file could not be read in full) or unavailable (Economy was not available). Null for any other job. — one of: incomplete, extraction, unavailable, null; may be null
jobs[].totalChunks integer no
jobs[].completedChunks integer no
jobs[].progress integer no 0-100.
jobs[].processingStage string | null no extracting, preparing, translating, or null. Display only. — may be null
jobs[].translationStep integer | null no Rough progress marker while translating. Display only; use progress for how far the job is. — may be null
jobs[].createdAt string | null no may be null
jobs[].updatedAt string | null no may be null
jobs[].completedAt string | null no may be null
jobs[].error string | null no Always null for API keys. — may be null
jobs[].errorCode string | null no Always null for API keys. Use customerErrorCode. — may be null
jobs[].customerErrorCode string | null no Why the job failed, as a stable code. Null while the job is fine. — one of: NO_TEXT_LAYER, FILE_TOO_LARGE, TOO_MANY_PAGES, MEDIA_TOO_LONG, TOOK_TOO_LONG, PARTIAL_SECTIONS, INSUFFICIENT_CREDITS, SPEND_LIMIT_REACHED, SERVICE_BUSY, YOUTUBE_UNAVAILABLE, NO_SPEECH_FOUND, VOICE_CONSENT_REQUIRED, RETRY_LIMIT_REACHED, UNDER_REVIEW, OUTLINE_NO_MATERIAL, DOCUMENT_NO_MATERIAL, OUTLINE_EMPTY, RECOVERY_LIMIT, UNSUPPORTED_FILE_TYPE, DOCUMENT_PROTECTED, INVALID_DOCUMENT, DOCUMENT_CONVERSION_INCOMPLETE, DOCUMENT_CONVERSION_FAILED, GENERIC, null; may be null
jobs[].hasFailedChunks boolean no
jobs[].failedChunkCount integer no
jobs[].hasEmptyChunks boolean no
jobs[].emptyChunkCount integer no
jobs[].hasQualityWarnings boolean no
jobs[].qualityWarningCount integer no
jobs[].outputWarnings object[] no Always empty for API keys.
jobs[].outputWarningCount integer no
jobs[].userRetryCount integer no
jobs[].retryLocked boolean no True when no more retries are possible from your side.
jobs[].adminReviewRequired boolean no
jobs[].reviewReasonCode string | null no may be null
total integer yes
page integer yes
totalPages integer yes
limit integer no