{"openapi":"3.1.0","info":{"title":"Faraatarjomeh API","version":"1.0.0","description":"Translate documents and media into Persian from your own server. This API uses the same endpoints as the website; you call them with an API key.\n\n## Authentication\n\n1. Sign in on the website and open your **profile page**. Create an API key there. It looks like `fara_sk_...` and is shown only once.\n2. Send it on every request: `Authorization: Bearer fara_sk_...`.\n\nThe key is a **secret**. Use it only from your server. Never put it in browser code, a mobile app, or a public repository: anyone who has it can spend your Fara. If a key leaks, revoke it on the profile page and make a new one.\n\nA key never has admin rights. Some actions only work on the website: signing in, passwords, buying Fara, and managing API keys. Calling them with a key gives 403 `API_KEY_ROUTE_NOT_ALLOWED`.\n\n## Scopes\n\nA key has the `read` scope, the `write` scope, or both.\n\n- `read`: GET and HEAD requests.\n- `write`: POST, PUT, PATCH, and DELETE requests.\n\nEach operation shows its scope as `x-required-scope`. A missing scope gives 403 `INSUFFICIENT_SCOPE` with `requiredScope` in the body.\n\n## Fara and billing\n\nPrices are in Fara. Check your balance with `GET /api/v1/account`: `credits.balance` is what you can spend now, and `credits.reserved` is held for running jobs.\n\n1. **Get a price first.** Documents: `POST /api/v1/translate/analyze` (or `analyze-stream`) returns `qualityEstimates` with the price (`estimatedCost`; `estimatedCostEconomy` is the same number). Video: `POST /api/v1/video/jobs/estimate`. Other tools: their `/pricing` endpoint. Getting a price is free.\n2. **Start the job.**\n3. **Fara is held when the job starts.** For media tools this happens when the job is created. For document translation it happens when the job begins running.\n4. **You are charged the actual cost when the job finishes.** It can be higher than the hold: the difference is charged as an extra ledger row when your balance covers it; if it does not, only the hold is charged. Anything held and not used goes back to your balance. Meeting tools are never charged more than their hold.\n5. **If the job fails or you cancel it, the hold is released.**\n\nOperations that can hold or charge Fara are marked `x-spends-fara: true`.\n\n- Not enough Fara: 402 `INSUFFICIENT_CREDITS`. The body may include `balance` and `estimatedCost`, `cost`, or `required`.\n- An unsettled payment reversal blocks new holds: 402 `CHARGEBACK_LIABILITY_OUTSTANDING`.\n- The hold could not be placed for a temporary reason: 503 `CREDIT_RESERVATION_UNAVAILABLE` with `Retry-After`. Your balance is fine; retry.\n\nEvery hold, charge, and refund is in the ledger: `GET /api/v1/account/transactions` (add `jobId` to see one job, including its tool charges and resends; `relatedJobId` names the parent job of each row).\n\n## Jobs run in the background\n\nStarting work returns a job id at once (201 or 202). Then either poll the job or use webhooks.\n\n| Product | Start | Poll | Result |\n| --- | --- | --- | --- |\n| Document translation | `POST /api/v1/translate/analyze` then `POST /api/v1/translate/start/{jobId}` (or `POST /api/v1/translate/upload`) | `GET /api/v1/translate/status/{jobId}` | `GET /api/v1/translate/download/{jobId}/pdf` or `/docx` |\n| Video | `POST /api/v1/video/jobs` | `GET /api/v1/video/jobs/{id}` | `GET /api/v1/video/jobs/{id}/download` |\n| Meeting minutes | `POST /api/v1/meetings/jobs` | `GET /api/v1/meetings/jobs/{id}` | `GET /api/v1/meetings/jobs/{id}/pdf` |\n| Podcast / audiobook | `POST /api/v1/audio/jobs` | `GET /api/v1/audio/jobs/{id}` | `GET /api/v1/audio/jobs/{id}/download` |\n| Persian text to speech | `POST /api/v1/farsi-tts/jobs` | `GET /api/v1/farsi-tts/jobs/{id}` | `GET /api/v1/farsi-tts/jobs/{id}/download` |\n| Transcription | `POST /api/v1/transcription/jobs` | `GET /api/v1/transcription/jobs/{id}` | `GET /api/v1/transcription/jobs/{id}/download` |\n| Website and app copy | `POST /api/v1/content/translate` (small work answers at once) | `GET /api/v1/content/jobs/{id}` | the `content` field of the job |\n\nEnd states: `completed` (and `completed_partial` for documents), `failed`, `cancelled`. A failed job has `customerErrorCode`, for example `NO_TEXT_LAYER`, `MEDIA_TOO_LONG`, `SERVICE_BUSY`, or `GENERIC`.\n\nVideo (when review is on), podcast/audiobook, and text-to-speech jobs stop at `awaiting_review` so you can check and edit the result. New meeting jobs do not stop; they go straight to the PDF. Edit, then call the job's `approve` endpoint. Video, meeting, and audio review edits need an `If-Match` header with the job's current `reviewVersion` (a bare or quoted number). Without it you get 428 `REVIEW_VERSION_REQUIRED`; with an old one, 409 `REVIEW_VERSION_CONFLICT`. A job left in review may continue on its own after a while.\n\nPoll every few seconds at most. Webhooks are better: you get a request when the status changes.\n\n## Idempotency\n\nSend an `Idempotency-Key` header (a new UUID per action) on **every POST that can spend Fara**. It is accepted on all POST, PUT, PATCH, and DELETE requests.\n\n- If a request is sent again with the same key, you get the stored first answer back with `Idempotent-Replayed: true`. The work is not done twice and Fara is not held twice.\n- Which answers are stored: 2xx and 3xx answers, and 500, 502, and 504. Any 4xx answer (for example 400, 402, 409, 429) and 503 are **not** stored: fix the problem (or top up, or wait) and send again with the **same** key.\n- After a 500, 502, or 504 the outcome is unknown and the same key replays that error. Check whether the work happened (read the job or result), then send again with a **new** key.\n- Records are kept for **24 hours**. Keys belong to the account, not to one API key.\n- The key is tied to the request: method, path, query string, and JSON body. For **multipart uploads** only the method, path, and query are compared, not the file. Always use a new key for a new upload.\n- 400 `INVALID_IDEMPOTENCY_KEY`: the key must be 1-255 visible ASCII characters.\n- 409 `IDEMPOTENCY_KEY_IN_USE`: the first request is still running. Retry after `Retry-After`.\n- 422 `IDEMPOTENCY_KEY_REUSED`: the key was used for a different request.\n- 409 `IDEMPOTENCY_KEY_ALREADY_USED`: the first answer was a file (or a very large body) and cannot be replayed.\n\n## Rate limits\n\nEach key has its own request budget (currently 120 requests per minute). Per-IP and per-account limits also apply.\n\nAnswers carry `RateLimit-Policy` and `RateLimit` headers ([draft-ietf-httpapi-ratelimit-headers](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/)), one named entry per limit, for example:\n\n```\nRateLimit-Policy: \"api_key\";q=120;w=60\nRateLimit: \"api_key\";r=87;t=34\n```\n\n`q` is the budget, `w` the window in seconds, `r` what is left, and `t` seconds until it resets. Over the limit you get 429 `RATE_LIMITED` with `Retry-After` (seconds). Wait that long, then retry.\n\n## Errors\n\nErrors use `application/problem+json` (RFC 9457):\n\n```json\n{\n  \"type\": \"https://faraatarjomeh.com/api/v1/docs/errors#error-insufficient-credits\",\n  \"title\": \"Payment Required\",\n  \"status\": 402,\n  \"detail\": \"Insufficient credits\",\n  \"instance\": \"/api/v1/translate/start/abc\",\n  \"code\": \"INSUFFICIENT_CREDITS\",\n  \"request_id\": \"5f0c...\",\n  \"balance\": 120,\n  \"estimatedCost\": 450\n}\n```\n\nBranch on `code`, not on `detail`: the text may change. `type` links to the code's entry in the table at the end of this page. Send `request_id` when you contact support. If you get a code you do not know, act on the HTTP status.\n\n## Webhooks\n\nAdd an endpoint with `POST /api/v1/webhook-endpoints` (`url` must be public `https`; `events` defaults to all). The answer has a signing `secret` (`whsec_...`), shown once. `POST /api/v1/webhook-endpoints/{id}/rotate-secret` replaces it.\n\nWe send each event as a POST with a JSON body and these headers ([Standard Webhooks](https://www.standardwebhooks.com)):\n\n- `webhook-id`: event id, the same on every retry.\n- `webhook-timestamp`: unix seconds of this attempt.\n- `webhook-signature`: `v1,<signature>`, where the signature is base64 of HMAC-SHA256 over `<webhook-id>.<webhook-timestamp>.<raw body>`. The HMAC key is the base64-decoded part of the secret after `whsec_`.\n\nTo verify: rebuild the signed text from the **raw** body (before JSON parsing), compute the HMAC, compare in constant time with each space-separated `v1,...` value, and reject timestamps more than 5 minutes away from now.\n\n```js\nimport crypto from \"node:crypto\";\n\nfunction verifyWebhook(secret, headers, rawBody) {\n  const id = headers[\"webhook-id\"];\n  const timestamp = headers[\"webhook-timestamp\"];\n  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;\n  const key = Buffer.from(secret.replace(/^whsec_/, \"\"), \"base64\");\n  const expected = \"v1,\" + crypto.createHmac(\"sha256\", key).update(`${id}.${timestamp}.${rawBody}`).digest(\"base64\");\n  return String(headers[\"webhook-signature\"] || \"\").split(\" \").some((candidate) =>\n    candidate.length === expected.length &&\n    crypto.timingSafeEqual(Buffer.from(candidate), Buffer.from(expected)));\n}\n```\n\nThe body is small: `{ type, timestamp, id, data: { object, id, status, createdAt, updatedAt, links: { self }, errorCode? } }`. Fetch `data.links.self` for the full job.\n\n- Answer with any 2xx within 10 seconds. Do slow work after answering.\n- Other answers and timeouts are retried with growing delays for about 3 days.\n- Answer **410 Gone** to switch the endpoint off at once. An endpoint that keeps failing for 5 days is switched off too; turn it back on with `PATCH /api/v1/webhook-endpoints/{id}` (`enabled: true`).\n- Delivery is at least once and not always in order. Drop duplicates by `webhook-id` and trust the job you fetch, not the order of events.\n- `POST /api/v1/webhook-endpoints/{id}/test` sends a `webhook.test` event now. `GET .../deliveries` shows recent attempts.\n\n## Pagination\n\nDifferent lists page in different ways:\n\n- **Cursor** (newer lists): `GET /api/v1/account/transactions` and `GET /api/v1/webhook-endpoints/{id}/deliveries`. Send `limit` (1-100, default 20). For the next page send `startingAfter` = `nextCursor` of the last page. Answers are `{ data, hasMore, nextCursor }`. Bad values give 400 `INVALID_LIMIT` or `INVALID_CURSOR`.\n- **Page and limit**: `GET /api/v1/jobs`, `GET /api/v1/translate/history`, `GET /api/v1/profile/credits`, `GET /api/v1/payment/history`. Send `page` (from 1) and `limit` (up to 100, default 20). Answers include `total`, `page`, and `totalPages`.\n- **Limit and offset**: `GET /api/v1/video/jobs`, `/api/v1/meetings/jobs`, `/api/v1/audio/jobs`, `/api/v1/farsi-tts/jobs`, `/api/v1/transcription/jobs`. Send `limit` (up to 50, default 20) and `offset`. Answers are `{ jobs }` with no total: stop when a page has fewer than `limit` items.\n- `GET /api/v1/webhook-endpoints` returns all endpoints at once."},"servers":[{"url":"https://faraatarjomeh.com"}],"security":[{"apiKey":[]}],"tags":[{"name":"Account","description":"Your account, Fara balance, and ledger."},{"name":"Translation","description":"Analyze, price, translate, and download documents."},{"name":"Jobs","description":"Translation jobs: list, status, retry, cancel."},{"name":"AI tools","description":"Extras made from a finished translation: LinkedIn posts, proofreading, slides, mind map, summary, podcast, audiobook."},{"name":"Video","description":"Translate YouTube videos or uploaded video files into Persian subtitles or voice."},{"name":"Meetings","description":"Meeting minutes from a recording."},{"name":"Audio","description":"Podcast or audiobook from a finished translation."},{"name":"Farsi TTS","description":"Persian text to speech."},{"name":"Transcription","description":"Recording to text, with optional translation."},{"name":"Content","description":"Website and app copy (JSON, Markdown, HTML, strings) into Persian, in the same structure."},{"name":"Uploads","description":"Send a large recording or video in chunks, then make a meeting, transcription or video job from it."},{"name":"Webhooks","description":"Get told when a job changes status."},{"name":"Payments","description":"Fara packages and past payments. Buying happens on the website."},{"name":"AI assistants","description":"Model Context Protocol endpoint: AI assistants use the API through it."},{"name":"Profile","description":"Profile, usage, and dashboard numbers."}],"paths":{"/api/v1/estimate":{"post":{"operationId":"estimatePrice","tags":["Account"],"summary":"Get the price of any product","description":"One call to price a translation, meeting, audio-to-text, video, Persian voice, podcast, audiobook or paid meeting tool before anything is uploaded. Free; nothing is held. `faraCharged` is the expected charge, `hold` what creating the job holds. The charge is the actual cost, so it can be a little above or below the hold. The per-product price calls stay for their extra details.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRequest"}}}},"responses":{"200":{"description":"The price.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/account":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"Get the account and its Fara balance","description":"`credits.balance` is what you can spend now. Fara held for running jobs is in `credits.reserved` and already taken out of the balance.","x-required-scope":"read","responses":{"200":{"description":"The account.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/account/transactions":{"get":{"operationId":"listAccountTransactions","tags":["Account"],"summary":"List Fara transactions","description":"The Fara ledger, newest first, with cursor pagination. Filter by `jobId` to see the hold, charge, and refund of one job; the filter also returns its tool charges, section resends, and reprocess charges (rows whose `relatedJobId` is that job).","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"startingAfter","in":"query","required":false,"description":"Cursor: the `nextCursor` (or last `id`) of the previous page.","schema":{"type":"string"}},{"name":"jobId","in":"query","required":false,"description":"Only transactions of this job.","schema":{"type":"string"}},{"name":"externalId","in":"query","required":false,"description":"Early access: only transactions of jobs created with this `externalId`.","schema":{"type":"string"}}],"responses":{"200":{"description":"One page of transactions.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/account/settings":{"get":{"operationId":"getAccountSettings","tags":["Account"],"summary":"Get account settings","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Auto-delete period for meetings and transcriptions, and the low-balance webhook threshold.","x-required-scope":"read","responses":{"200":{"description":"Settings.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettings"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateAccountSettings","tags":["Account"],"summary":"Change account settings","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Send a field to set it, `null` to turn it off, or leave it out to keep it. Auto-delete runs hourly on finished meeting and audio-to-text jobs older than the period (same as DELETE; ledger rows stay).","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettingsPatch"}}}},"responses":{"200":{"description":"Settings.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSettings"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/estimate":{"get":{"operationId":"getTranslationTimeModel","tags":["Translation"],"summary":"Get the time estimate model","description":"Numbers used to estimate how long a fast translation takes: the median of recent real chunk times (a fixed fallback when there are too few), and how many chunks run at once. For the estimate of a real document, analyze it.","x-required-scope":"read","responses":{"200":{"description":"Time model.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","description":"`avgMinutesPerChunk`, `minutesPerBatch`, `chunksPerBatch`, and more.","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/analyze":{"post":{"operationId":"analyzeDocument","tags":["Translation"],"summary":"Analyze a PDF and get a price","description":"Uploads a PDF, reads its text locally, and returns the page and word counts, the price in Fara per quality level (`qualityEstimates`), and a time estimate. Nothing is charged. Structured extraction is deferred until translation starts. The returned `jobId` has status `analyzed`; start it with POST /api/v1/translate/start/{jobId}. Large files can take several minutes: use a long client timeout, or the streaming version to show progress. A file over 100 MB, a file part that is not `application/pdf`, or a missing `file` answers 400 `BAD_REQUEST`. A scanned PDF (no text layer) is accepted: `scannedSource` is `true`, `wordCount` and the price are estimated from the page count, `qualityPreviews` is `null`, and the text is read from the page images when translation starts. The final charge is the real cost, as for every job. A file that cannot be accepted answers 422 `EXTRACTION_EMPTY_OR_SCANNED`; a broken or encrypted one 400 `INVALID_PDF`. When Word and EPUB input is on for the site, `file` may also be a Word `.docx` or an EPUB file (up to 100 MB). It is checked by its content, converted to PDF once, and then handled as a PDF. The job then has `sourceFormat` (`docx` or `epub`); it is null for a PDF upload. A file we cannot accept answers 415 `UNSUPPORTED_FILE_TYPE`, or 422 with one of `DOCUMENT_PROTECTED`, `INVALID_DOCUMENT`, `DOCUMENT_CONVERSION_INCOMPLETE` or `DOCUMENT_CONVERSION_FAILED`.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/AnalyzeRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUrlRequest"}}}},"responses":{"200":{"description":"Analysis result.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analysis"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}}},"/api/v1/translate/analyze-stream":{"post":{"operationId":"startDocumentAnalysis","tags":["Translation"],"summary":"Upload a PDF for analysis with a progress stream","description":"Stores the PDF and returns at once with an `analysisId`. Local text extraction starts only when you open GET /api/v1/translate/analyze-stream/{analysisId}/progress; open it within 30 minutes or the upload expires. When the stream sends `complete`, the `analysisId` is the job id to start. Nothing is charged; structured extraction is deferred until translation starts. A scanned PDF (no text layer) is accepted: `scannedSource` is `true`, `wordCount` and the price are estimated from the page count, `qualityPreviews` is `null`, and the text is read from the page images when translation starts. The final charge is the real cost, as for every job. A file that cannot be accepted sends an `EXTRACTION_EMPTY_OR_SCANNED` error event. A file over 100 MB, a file part that is not `application/pdf`, or a missing `file` answers 400 `BAD_REQUEST`.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/AnalyzeRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUrlRequest"}}}},"responses":{"200":{"description":"Analysis started.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/analyze-stream/{analysisId}/resume":{"post":{"operationId":"resumeDocumentAnalysis","tags":["Translation"],"summary":"Resume a saved local document analysis","description":"Resumes your saved analysis with its original PDF, without uploading it again. Reading stays local and is free. Returns the same analysisId and stream URL, or the completed analysis snapshot when already available. Open the returned progress stream to continue. An active analysis returns ANALYSIS_IN_PROGRESS (409); reconnect to its existing stream. Once translation has started, use the translation job endpoints instead.","x-required-scope":"write","parameters":[{"name":"analysisId","in":"path","required":true,"description":"Analysis id returned by POST /api/v1/translate/analyze-stream.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Saved analysis resumed or already complete.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["analysisId","sseUrl"],"properties":{"analysisId":{"type":"string"},"sseUrl":{"type":"string"},"status":{"type":"string"},"analysis":{"$ref":"#/components/schemas/Analysis"}},"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/analyze-stream/{analysisId}/progress":{"get":{"operationId":"streamDocumentAnalysis","tags":["Translation"],"summary":"Follow analysis progress (Server-Sent Events)","description":"A `text/event-stream`. Each event is `data: <JSON>` (see `AnalysisProgressEvent`). Comment lines (`:`) are keep-alives every 15 seconds. The stream ends after a `complete` or `error` event, or after 20 minutes with no events.","x-required-scope":"read","parameters":[{"name":"analysisId","in":"path","required":true,"description":"Analysis id returned by POST /api/v1/translate/analyze-stream.","schema":{"type":"string"}}],"responses":{"200":{"description":"Event stream.","content":{"text/event-stream":{"schema":{"type":"string","description":"Server-Sent Events. Each `data:` line holds one `AnalysisProgressEvent` (see components) as JSON."}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/analyze-stream/{analysisId}":{"delete":{"operationId":"cancelDocumentAnalysis","tags":["Translation"],"summary":"Cancel a running analysis","x-required-scope":"write","parameters":[{"name":"analysisId","in":"path","required":true,"description":"Analysis id returned by POST /api/v1/translate/analyze-stream.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{id}/analysis":{"get":{"operationId":"getDocumentAnalysis","tags":["Translation"],"summary":"Get a saved analysis","description":"Same shape as the analysis result. Use it to show the price again later.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Translation job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Analysis.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analysis"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/resumable":{"get":{"operationId":"listResumableUploads","tags":["Translation"],"summary":"List analyzed or still-analyzing uploads","description":"Documents that were analyzed but not started, and analyses still running.","x-required-scope":"read","responses":{"200":{"description":"Uploads.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumableUploads"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/pdf-styles":{"get":{"operationId":"getPdfStyleOptions","tags":["Translation"],"summary":"Get PDF style options","description":"Defaults and allowed ranges for custom PDF styles.","x-required-scope":"read","responses":{"200":{"description":"Style options.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"defaults":{"type":"object","additionalProperties":true},"options":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/custom-pdf":{"post":{"operationId":"renderCustomPdf","tags":["Translation"],"summary":"Make a PDF of a finished translation with your own styles","description":"Returns the PDF directly. It is not stored. Free.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPdfRequest"}}}},"responses":{"200":{"description":"The PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/extract-farsi-book-pdf":{"post":{"operationId":"formatFarsiBookPdf","tags":["Translation"],"summary":"Reformat a Persian PDF","description":"Takes a PDF that already contains Persian text and returns a clean, formatted Persian PDF. No translation. Free. A file over 100 MB, a file part that is not `application/pdf`, or a missing `file` answers 400 `BAD_REQUEST`.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FarsiBookRequest"}}}},"responses":{"200":{"description":"The formatted PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/magazine-translate-pdf":{"post":{"operationId":"translateMagazinePdf","tags":["Translation"],"summary":"Translate a magazine-style PDF in one call","description":"Translates the PDF and returns the translated PDF in the same response. No job is created. Fara is held from the page count (350 words per page), then charged from the words actually translated; on failure it is released. This can take many minutes, so use a long client timeout. The answer is a file, so an `Idempotency-Key` repeat gets 409 `IDEMPOTENCY_KEY_ALREADY_USED` (with `originalStatus`) instead of a replay. A file over 100 MB, a file part that is not `application/pdf`, or a missing `file` answers 400 `BAD_REQUEST`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/MagazineRequest"}}}},"responses":{"200":{"description":"The translated PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/start/{jobId}":{"post":{"operationId":"startTranslation","tags":["Translation"],"summary":"Start translating an analyzed document","description":"Queues the translation. With `freePreview: true` only the first pages are translated, free (see `freePreviewOffer`). The balance is checked now against the price (402 `INSUFFICIENT_CREDITS` with `balance` and `estimatedCost`; 503 when the balance could not be checked). Fara is held when the job begins running and charged at the actual cost when it finishes; the actual cost can be higher or lower than the estimate. Leave `executionMode` out (every translation runs fast); `economy_batch` is accepted and runs as `realtime`. An unknown value answers 400 `INVALID_EXECUTION_MODE`. A job that is not `analyzed` (already started, cancelled, or deleted) answers 400 `BAD_REQUEST`; two starts at the same moment answer 409. Poll GET /api/v1/translate/status/{jobId}, or listen for `translation.completed` webhooks.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTranslationRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTranslationResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/translate-rest":{"post":{"operationId":"translateRestAfterPreview","tags":["Translation"],"summary":"Translate the rest after the free first pages","description":"After a free preview completes, makes a new `analyzed` job for the whole document from the same upload. Nothing is charged here: start it with POST /api/v1/translate/start/{jobId} like any analyzed job. Its prices take off the free pages' share (price × (1 − free pages ÷ total pages)). Asking again returns the same job (200); the first call answers 201. A job that is not a free preview answers 400 `NOT_A_FREE_PREVIEW`; a preview still running 409 `PREVIEW_NOT_FINISHED`; a preview that covered every page 409 `PREVIEW_COVERED_WHOLE_DOCUMENT`; a preview whose file is gone 410 `PREVIEW_SOURCE_GONE`.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"The rest job already made.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analysis"}}}},"201":{"description":"The rest job, ready to start.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analysis"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/page-range":{"post":{"operationId":"translatePageRange","tags":["Translation"],"summary":"Translate part of a file (a page range or chapters)","description":"Only when the page-range feature is on; otherwise 404 `FEATURE_DISABLED`. Give `pageFrom` and `pageTo`, or `chapters` (indexes from the job's `pageRangeOffer`). The pages are cut from the stored original and made into a new analysis, returned like POST /api/v1/translate/analyze-stream (`analysisId`, `sseUrl`). The part is priced by that analysis; the parent job is not charged. The same range again within 30 minutes returns the same part while that part is still usable; if the same range is still being prepared by another request, the call waits a few seconds, then answers 409 `PAGE_RANGE_BUSY`. A range covering the whole file answers 400 `INVALID_PAGE_RANGE`; `PAGE_RANGE_OUT_OF_BOUNDS` and `PAGE_RANGE_NOT_CONTIGUOUS` are 400 too. A part of a part answers 409 `PAGE_RANGE_PARENT_IS_PART`; a job not analysed yet 409 `JOB_NOT_READY`. A missing original answers 410 `PAGE_RANGE_SOURCE_GONE`. When the pages cannot be cut the answer is 422 `PAGE_RANGE_UNAVAILABLE`; the whole file is never used instead.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageRangeRequest"}}}},"responses":{"200":{"description":"The analysis of the part.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/analyze/{jobId}":{"delete":{"operationId":"discardAnalyzedDocument","tags":["Translation"],"summary":"Discard an analyzed document","description":"Only for jobs still `analyzed` (not started).","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Discarded.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/upload":{"post":{"operationId":"uploadAndTranslate","tags":["Translation"],"summary":"Upload a PDF and start translating at once","description":"Analyze and start in one call. The job runs fast at the fast price. To see the price first, use analyze + start instead. Use a new `Idempotency-Key` for every file: for uploads the key only covers the URL, not the file. A file over 100 MB, a file part that is not `application/pdf`, or a missing `file` answers 400 `BAD_REQUEST`. When Word and EPUB input is on for the site, `file` may also be a Word `.docx` or an EPUB file (up to 100 MB). It is checked by its content, converted to PDF once, and then handled as a PDF. The job then has `sourceFormat` (`docx` or `epub`); it is null for a PDF upload. A file we cannot accept answers 415 `UNSUPPORTED_FILE_TYPE`, or 422 with one of `DOCUMENT_PROTECTED`, `INVALID_DOCUMENT`, `DOCUMENT_CONVERSION_INCOMPLETE` or `DOCUMENT_CONVERSION_FAILED`. A PDF with no readable text answers 400 `BAD_REQUEST`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUrlRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}}},"/api/v1/translate/status/{jobId}":{"get":{"operationId":"getTranslationStatus","tags":["Translation"],"summary":"Get translation status and prices","description":"Progress, the price while the job is `analyzed`, outputs, and which sections failed. The recommended endpoint to poll (every 30 s for fast jobs, every 10 minutes in economy waiting states); it answers for every job you have not deleted.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Status.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationStatus"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/download/{jobId}/{type}":{"get":{"operationId":"downloadTranslationFile","tags":["Translation"],"summary":"Download a translation output","description":"`pdf` and `docx` need a `completed` or `completed_partial` job. `slides-pptx` and `slides-pdf` need slide files (POST /api/v1/translate/{jobId}/slides/generate-files). `podcast-audio` and `audiobook-audio` need a made podcast or audiobook.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"name":"type","in":"path","required":true,"description":"Which file.","schema":{"type":"string","enum":["pdf","docx","slides-pptx","slides-pdf","podcast-audio","audiobook-audio"]}}],"responses":{"200":{"description":"The file.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"schema":{"type":"string","format":"binary"}},"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/bilingual":{"get":{"operationId":"getBilingualContent","tags":["Translation"],"summary":"Get the English and Persian text side by side","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Paragraph pairs.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BilingualContent"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/regenerate":{"post":{"operationId":"regenerateTranslationFiles","tags":["Translation"],"summary":"Rebuild the PDF and DOCX from the current translation","description":"Free. Only for `completed` or `completed_partial` jobs.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateRequest"}}}},"responses":{"200":{"description":"Rebuilt.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/resend-chunks":{"post":{"operationId":"retranslateFailedSections","tags":["Translation"],"summary":"Translate failed or empty sections again","description":"Re-translates only the sections that failed, then rebuilds the files. Synchronous: answers when done, which can take several minutes. Only for `completed`, `completed_partial`, or `failed` jobs (400 otherwise). Uses the job's one retry when it re-translates anything. Fara is held first and the actual cost of what was re-translated is charged; nothing when nothing was re-translated. `type=empty` re-translates nothing on current jobs; use `all`. If sections still fail, the job is locked for our team (`retryLocked`, `adminReviewRequired` in the answer).","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Which sections to send again.","schema":{"type":"string","enum":["all","failed","empty"],"default":"all"}},{"name":"retryableOnly","in":"query","required":false,"description":"Only sections that failed for a temporary reason.","schema":{"type":"string","enum":["true","false"],"default":"false"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendChunksRequest"}}}},"responses":{"200":{"description":"Result.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendChunksResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"423":{"$ref":"#/components/responses/Locked"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/resend-empty":{"post":{"operationId":"retranslateEmptySections","tags":["Translation"],"summary":"Translate empty sections again (old path)","description":"Deprecated. Answers `307` to POST /api/v1/translate/{jobId}/resend-chunks?type=empty, which re-translates nothing on current jobs. Use POST /api/v1/translate/{jobId}/resend-chunks with `type=all` instead.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"307":{"description":"Redirect to resend-chunks with `type=empty`.","headers":{"Location":{"$ref":"#/components/headers/Location"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/tools/price":{"get":{"operationId":"getToolPrices","tags":["AI tools"],"summary":"Price the slides, mind map and LinkedIn posts","description":"Free and makes no hold. Gives the Fara that POST /api/v1/translate/{jobId}/slides, /mindmap and /linkedin would hold now, from the same text. The price is an estimate: the charge is the actual cost, never more than this amount. Only while the price-first switch is on; while it is off the answer is 404 `FEATURE_DISABLED`. A tool with `available: false` is too short to make (no `faraCharged`). If no tool is usable the answer is 400, the same as the POSTs.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Prices of the tools.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"capped":{"type":"boolean","description":"Always true: the charge never goes above the price shown."},"tools":{"type":"object","properties":{"slides":{"type":"object","properties":{"available":{"type":"boolean"},"faraCharged":{"type":"number","description":"Fara the POST would hold. 0 when the owner is not billed. Missing when available is false."}},"additionalProperties":true},"mindmap":{"type":"object","properties":{"available":{"type":"boolean"},"faraCharged":{"type":"number","description":"Fara the POST would hold. 0 when the owner is not billed. Missing when available is false."}},"additionalProperties":true},"linkedin":{"type":"object","properties":{"available":{"type":"boolean"},"faraCharged":{"type":"number","description":"Fara the POST would hold. 0 when the owner is not billed. Missing when available is false."}},"additionalProperties":true}},"additionalProperties":true}},"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/linkedin":{"get":{"operationId":"getLinkedInPosts","tags":["AI tools"],"summary":"Get saved LinkedIn posts","description":"Returns the saved result, or `saved: false` when there is none yet.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Saved LinkedIn posts.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInPosts"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createLinkedInPosts","tags":["AI tools"],"summary":"Make LinkedIn posts from a finished translation","description":"Synchronous; can take several minutes (up to 3 attempts of up to 10 minutes each). Fara is held first (402 `INSUFFICIENT_CREDITS` if too low), then the actual cost is charged (`faraCost`). If it fails, only work already done is charged. Each call makes a new result, replaces the saved one, and charges again: always send an `Idempotency-Key`. The result is saved and can be read again for free. Price first (only while the price-first switch is on): read the price with GET /api/v1/translate/{jobId}/tools/price. Send `maxFara` in the body to refuse a higher price: the answer is 409 `PRICE_CHANGED` with `faraCharged`, and nothing is held. The charge never goes above the hold; the answer has `heldFara` and `refundedFara`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"maxFara":{"type":"number","description":"The most Fara you agree to pay (0 or more). Only read while the price-first switch is on. If the price is above it, the answer is 409 `PRICE_CHANGED` and nothing is held."}},"additionalProperties":true}}}},"responses":{"200":{"description":"New LinkedIn posts.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInPosts"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteLinkedInPosts","tags":["AI tools"],"summary":"Delete saved LinkedIn posts","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/proofread":{"get":{"operationId":"getProofreading","tags":["AI tools"],"summary":"Get saved proofreading suggestions","description":"Returns the saved result, or `saved: false` when there is none yet.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Saved proofreading suggestions.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Proofreading"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createProofreading","tags":["AI tools"],"summary":"Make proofreading suggestions from a finished translation","description":"Synchronous; can take several minutes (up to 3 attempts of up to 10 minutes each). Fara is held first (402 `INSUFFICIENT_CREDITS` if too low), then the actual cost is charged (`faraCost`). If it fails, only work already done is charged. Each call makes a new result, replaces the saved one, and charges again: always send an `Idempotency-Key`. The result is saved and can be read again for free. Switched off by default: while off it answers 503 `FEATURE_DISABLED` and nothing is held.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"New proofreading suggestions.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Proofreading"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteProofreading","tags":["AI tools"],"summary":"Delete saved proofreading suggestions","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/slides/design-styles":{"get":{"operationId":"listSlideStyles","tags":["AI tools"],"summary":"List slide design styles","x-required-scope":"read","responses":{"200":{"description":"Styles.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"pptx":{"type":"object","additionalProperties":true},"pdf":{"type":"object","additionalProperties":true},"pricing":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/slides":{"get":{"operationId":"getSlides","tags":["AI tools"],"summary":"Get saved slides","description":"Returns the saved result, or `saved: false` when there is none yet.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Saved slides.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Slides"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createSlides","tags":["AI tools"],"summary":"Make slides from a finished translation","description":"Synchronous; can take several minutes (up to 3 attempts of up to 10 minutes each). Fara is held first (402 `INSUFFICIENT_CREDITS` if too low), then the actual cost is charged (`faraCost`). If it fails, only work already done is charged. Each call makes a new result, replaces the saved one, and charges again: always send an `Idempotency-Key`. The result is saved and can be read again for free. Price first (only while the price-first switch is on): read the price with GET /api/v1/translate/{jobId}/tools/price. Send `maxFara` in the body to refuse a higher price: the answer is 409 `PRICE_CHANGED` with `faraCharged`, and nothing is held. The charge never goes above the hold; the answer has `heldFara` and `refundedFara`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"maxFara":{"type":"number","description":"The most Fara you agree to pay (0 or more). Only read while the price-first switch is on. If the price is above it, the answer is 409 `PRICE_CHANGED` and nothing is held."}},"additionalProperties":true}}}},"responses":{"200":{"description":"New slides.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Slides"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteSlides","tags":["AI tools"],"summary":"Delete saved slides","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/slides/generate-files":{"post":{"operationId":"generateSlideFiles","tags":["AI tools"],"summary":"Make PPTX and PDF files from saved slides","description":"Free. Download them with GET /api/v1/translate/download/{jobId}/slides-pptx and slides-pdf.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlidesFilesRequest"}}}},"responses":{"200":{"description":"Files made.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlidesFiles"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/mindmap/spec":{"get":{"operationId":"getMindmapSpec","tags":["AI tools"],"summary":"List mind map color sets","x-required-scope":"read","responses":{"200":{"description":"Color sets.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"colorHarmonies":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/mindmap":{"get":{"operationId":"getMindmap","tags":["AI tools"],"summary":"Get saved a mind map","description":"Returns the saved result, or `saved: false` when there is none yet.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Saved a mind map.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mindmap"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createMindmap","tags":["AI tools"],"summary":"Make a mind map from a finished translation","description":"Synchronous; can take several minutes (up to 3 attempts of up to 10 minutes each). Fara is held first (402 `INSUFFICIENT_CREDITS` if too low), then the actual cost is charged (`faraCost`). If it fails, only work already done is charged. Each call makes a new result, replaces the saved one, and charges again: always send an `Idempotency-Key`. The result is saved and can be read again for free. Price first (only while the price-first switch is on): read the price with GET /api/v1/translate/{jobId}/tools/price. Send `maxFara` in the body to refuse a higher price: the answer is 409 `PRICE_CHANGED` with `faraCharged`, and nothing is held. The charge never goes above the hold; the answer has `heldFara` and `refundedFara`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"maxFara":{"type":"number","description":"The most Fara you agree to pay (0 or more). Only read while the price-first switch is on. If the price is above it, the answer is 409 `PRICE_CHANGED` and nothing is held."}},"additionalProperties":true}}}},"responses":{"200":{"description":"New a mind map.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mindmap"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteMindmap","tags":["AI tools"],"summary":"Delete saved a mind map","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/mindmap/pdf":{"post":{"operationId":"renderMindmapPdf","tags":["AI tools"],"summary":"Get the saved mind map as a PDF","description":"Free. Returns the PDF directly.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MindmapPdfRequest"}}}},"responses":{"200":{"description":"The PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/summary":{"get":{"operationId":"getSummary","tags":["AI tools"],"summary":"Get the document summary","description":"The Persian summary made during translation. Included in the translation price.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Summary.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Digest"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"loadSummary","tags":["AI tools"],"summary":"Load the document summary","description":"Same as GET, kept for older clients. Free; 404 when no summary exists.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Summary.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Digest"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteSummary","tags":["AI tools"],"summary":"Delete the saved summary","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/digest":{"get":{"operationId":"getDigest","tags":["AI tools"],"summary":"Get the document digest","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Digest.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Digest"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/summary-card":{"get":{"operationId":"getSummaryCard","tags":["AI tools"],"summary":"Get the summary card (PNG or PDF)","description":"Free. A one-page card of the brief summary (`brief` in the digest answer). When the brief is not ready, answers 409 `SUMMARY_NOT_READY` and starts making it in the background: ask again in a few seconds.","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"Image format of the card.","schema":{"type":"string","enum":["png","pdf"],"default":"png"}}],"responses":{"200":{"description":"The summary card.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"image/png":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/summary/pdf":{"post":{"operationId":"renderSummaryPdf","tags":["AI tools"],"summary":"Get the summary as a PDF","description":"Free. Returns the PDF directly.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryPdfRequest"}}}},"responses":{"200":{"description":"The PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/podcast":{"get":{"operationId":"getPodcast","tags":["AI tools"],"summary":"Get the saved podcast","description":"Make one with POST /api/v1/audio/jobs (`feature: podcast`).","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Podcast.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioFeature"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deletePodcast","tags":["AI tools"],"summary":"Delete the saved podcast","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/{jobId}/audiobook":{"get":{"operationId":"getAudiobook","tags":["AI tools"],"summary":"Get the saved audiobook","description":"Make one with POST /api/v1/audio/jobs (`feature: audiobook`).","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"Audiobook.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioFeature"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteAudiobook","tags":["AI tools"],"summary":"Delete the saved audiobook","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/translate/history":{"get":{"operationId":"listTranslationHistory","tags":["Translation"],"summary":"List translated documents","description":"Page-based. Lists every translation of the account in every state (queued, running, waiting in an older economy state, priced but not started, failed, cancelled, completed). Deleted translations are not listed. Includes which extra tools (slides, mind map, and so on) exist for each finished document. Analyzed uploads that were never started are listed for 7 days after they were created.","x-required-scope":"read","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Items per page (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"status","in":"query","required":false,"description":"Filter by status.","schema":{"type":"string","enum":["all","pending","processing","completed","failed","completed_partial"],"default":"all"}},{"name":"sortBy","in":"query","required":false,"description":"Sort field.","schema":{"type":"string","enum":["createdAt","filename"],"default":"createdAt"}},{"name":"sortOrder","in":"query","required":false,"description":"Sort order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"name":"q","in":"query","required":false,"description":"Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search.","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"One page.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationHistory"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/jobs":{"get":{"operationId":"listTranslationJobs","tags":["Jobs"],"summary":"List translation jobs","description":"Newest first. Page-based pagination.","x-required-scope":"read","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Items per page (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"One page.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationJobList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/jobs/{jobId}":{"get":{"operationId":"getTranslationJob","tags":["Jobs"],"summary":"Get a translation job","description":"**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`.\n\nThe 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`.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"GET /api/v1/translate/status/{jobId}","x-required-scope":"read","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationJob"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"cancelOrDeleteTranslationJob","tags":["Jobs"],"summary":"Cancel or delete a translation job","description":"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.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"name":"onlyFinished","in":"query","required":false,"description":"`1`: delete only a finished job; a running or waiting one answers 409 `JOB_NOT_FINISHED` and is left alone.","schema":{"type":"string","enum":["1"]}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Done.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/jobs/{jobId}/retry":{"post":{"operationId":"retryTranslationJob","tags":["Jobs"],"summary":"Retry a failed or cancelled translation","description":"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.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"423":{"$ref":"#/components/responses/Locked"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/jobs/{jobId}/cancel":{"post":{"operationId":"cancelTranslationJob","tags":["Jobs"],"summary":"Cancel a translation job","description":"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.","x-required-scope":"write","parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/jobs/{jobId}/images":{"post":{"operationId":"chooseTranslationJobImages","tags":["Jobs"],"summary":"Choose what happens to the pictures of a waiting job","description":"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`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["choice"],"properties":{"choice":{"type":"string","enum":["all","part","none"],"description":"`all`, `part` or `none`."}},"additionalProperties":true}}}},"responses":{"200":{"description":"Queued again.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["jobId","choice","status"],"properties":{"jobId":{"type":"string"},"choice":{"type":"string","description":"`all`, `part` or `none`."},"status":{"type":"string","description":"`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`)."}},"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/jobs/{jobId}/recover":{"post":{"operationId":"recoverTranslationJob","tags":["Jobs"],"summary":"Recover a stuck or failed translation","description":"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`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"jobId","in":"path","required":true,"description":"Translation job id (returned by analysis or upload).","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverRequest"}}}},"responses":{"200":{"description":"What recovery did.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"423":{"$ref":"#/components/responses/Locked"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/voices":{"get":{"operationId":"listVideoVoices","tags":["Video"],"summary":"List voices for dubbed video","x-required-scope":"read","responses":{"200":{"description":"Voices.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoVoices"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/preferences":{"get":{"operationId":"getVideoPreferences","tags":["Video"],"summary":"Get video preferences","x-required-scope":"read","responses":{"200":{"description":"Preferences.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoPreferences"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"put":{"operationId":"updateVideoPreferences","tags":["Video"],"summary":"Save video preferences","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reviewBeforeRender"],"properties":{"reviewBeforeRender":{"type":"boolean"}},"additionalProperties":true}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoPreferences"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/estimate":{"post":{"operationId":"estimateVideoJob","tags":["Video"],"summary":"Get prices for a video","description":"Free. Reads the length of a YouTube video or of an uploaded video file, and returns the price of each output type. An uploaded file answers 400 `UNSUPPORTED_VIDEO_FILE` when it is not a video we can read.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoEstimateRequest"}}}},"responses":{"200":{"description":"Prices.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoEstimate"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs":{"post":{"operationId":"createVideoJob","tags":["Video"],"summary":"Translate a video","description":"The video is a YouTube link (`url`) or a video file sent as a chunked upload (POST /api/v1/uploads with `purpose: video`, then `uploadId` here). The upload errors (`UPLOAD_NOT_FOUND`, `UPLOAD_EXPIRED`, `UPLOAD_INCOMPLETE`, `UPLOAD_ALREADY_USED`, `UPLOAD_CHECKSUM_MISMATCH`) and `UNSUPPORTED_VIDEO_FILE` come from this call. Fara is held when the job is created and charged at the actual cost when it finishes; released on failure or cancel. If review is on, the job stops at `awaiting_review`: edit segments, then approve.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreateRequest"}}}},"responses":{"201":{"description":"Created.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreateResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listVideoJobs","tags":["Video"],"summary":"List video jobs","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items to return (at most 50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"q","in":"query","required":false,"description":"Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search.","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Video job summaries. Fetch an individual job for transcript and translation segments.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJobList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}":{"get":{"operationId":"getVideoJob","tags":["Video"],"summary":"Get a video job","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJobEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteVideoJob","tags":["Video"],"summary":"Delete a video translation permanently","description":"Removes the video, its subtitles and output files from our servers. Ledger rows stay. Only finished jobs (completed, failed, cancelled): a running or queued job answers 409 `JOB_NOT_FINISHED`; cancel it first. Afterwards the job answers 404.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/segments/{segmentId}":{"patch":{"operationId":"editVideoSegment","tags":["Video"],"summary":"Edit the Persian text of one segment","description":"Only while `awaiting_review`. Send the current `reviewVersion` in `If-Match`; the answer gives the new one.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"segmentId","in":"path","required":true,"description":"Segment id from the job's review data.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentEditRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/approve":{"post":{"operationId":"approveVideoReview","tags":["Video"],"summary":"Approve the review and make the video","description":"Uses the Fara already held; nothing new is held.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Approved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/reprocess":{"post":{"operationId":"reprocessVideoJob","tags":["Video"],"summary":"Make the final video again","description":"Re-runs the last step (mixing the final video) for a `completed` or `failed` job that passed review. Holds the job's price again.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/resume":{"post":{"operationId":"resumeVideoJob","tags":["Video"],"summary":"Resume or retry a video job","description":"For a `failed` job this holds the price again and restarts it. For a stuck job it picks up where it stopped using the Fara already held.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/cancel":{"post":{"operationId":"cancelVideoJob","tags":["Video"],"summary":"Cancel a video job","description":"Releases the held Fara. Not possible once the final step has started.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/download":{"get":{"operationId":"downloadVideo","tags":["Video"],"summary":"Download the translated video","description":"Supports `Range` requests.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The MP4.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}},"Accept-Ranges":{"description":"Always `bytes`: send a `Range` header to fetch part of the file.","schema":{"type":"string"}}},"content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Part of the file, for a single `Range: bytes=start-end` request.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Range":{"description":"`bytes start-end/total`.","schema":{"type":"string"}}},"content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"416":{"description":"The requested range is outside the file. `Content-Range: bytes */total` gives the size."},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/preview":{"get":{"operationId":"previewVideo","tags":["Video"],"summary":"Stream the translated video inline","description":"Same file as download, sent `inline` for players. Supports `Range` requests.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The MP4.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}},"Accept-Ranges":{"description":"Always `bytes`: send a `Range` header to fetch part of the file.","schema":{"type":"string"}}},"content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Part of the file, for a single `Range: bytes=start-end` request.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Range":{"description":"`bytes start-end/total`.","schema":{"type":"string"}}},"content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"416":{"description":"The requested range is outside the file. `Content-Range: bytes */total` gives the size."},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/video/jobs/{id}/captions":{"get":{"operationId":"downloadVideoCaptions","tags":["Video"],"summary":"Download Persian captions (WebVTT)","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"WebVTT captions.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"text/vtt":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/branding":{"get":{"operationId":"getMeetingBranding","tags":["Meetings"],"summary":"Get the branding for minutes (logo, and with early access the company name, header, footer, notice and colours)","x-required-scope":"read","responses":{"200":{"description":"Branding.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBranding"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"put":{"operationId":"updateMeetingBranding","tags":["Meetings"],"summary":"Set the company name, header, footer, notice and colours","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Applied to every PDF and Word document made after the call, like the logo (documents made before keep their look until they are rebuilt). Send the whole set: a field left out or empty is cleared. Free.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBrandingTextRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBrandingTextResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/categories":{"get":{"operationId":"getMeetingCategories","tags":["Meetings"],"summary":"Get the account's meeting categories","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Free.","x-required-scope":"read","responses":{"200":{"description":"Categories.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingCategories"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"put":{"operationId":"setMeetingCategories","tags":["Meetings"],"summary":"Set the account's meeting categories","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Your own list (up to 50). While writing the minutes, one is picked for each meeting (`minutes.category`, or \"\" when none fits) and 1-3 `minutes.tags` are added, at no extra charge. Applies to minutes written after the call, and to rebuilds and revisions. Free.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingCategories"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingCategories"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/branding/logo":{"get":{"operationId":"getMeetingLogo","tags":["Meetings"],"summary":"Download the company logo","x-required-scope":"read","responses":{"200":{"description":"The logo.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"uploadMeetingLogo","tags":["Meetings"],"summary":"Upload or replace the company logo","description":"Used on minutes PDFs made from now on.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/MeetingLogoRequest"}}}},"responses":{"201":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingLogoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteMeetingLogo","tags":["Meetings"],"summary":"Remove the company logo","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Removed.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/pricing":{"get":{"operationId":"getMeetingPricing","tags":["Meetings"],"summary":"Get meeting minutes pricing","x-required-scope":"read","responses":{"200":{"description":"Pricing.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingPricing"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs":{"post":{"operationId":"createMeetingJob","tags":["Meetings"],"summary":"Make meeting minutes from a recording","description":"Fara is held from the audio length when the job is created, charged at the actual cost when it finishes, and released on failure or cancel. The job goes straight to the minutes PDF: it does not stop at `awaiting_review` (the minutes-edit and approve endpoints answer 409 for new jobs). A file over 200 MB answers 400 `BAD_REQUEST` (its message may say 100MB). For a larger file, or a connection that may break, send it as a chunked upload (POST /api/v1/uploads with `purpose: meeting`) and create the job with a JSON body holding `uploadId`: the upload errors (`UPLOAD_NOT_FOUND`, `UPLOAD_EXPIRED`, `UPLOAD_INCOMPLETE`, `UPLOAD_ALREADY_USED`, `UPLOAD_CHECKSUM_MISMATCH`) come from this call. A refused create leaves the upload open, so it can be used again (for example after a top-up). **Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Every account may choose the minutes language (`outputLanguage`), the document (`output`: full minutes, summary, key points, or the transcript alone) and a free mind map (`mindmap`). Early-access accounts get timed minutes, and may send `attendees`, `template`, `externalId`, `metadata`, or a JSON body with `audioUrl` instead of a file.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/MeetingCreateRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/MeetingCreateUrlRequest"}}}},"responses":{"201":{"description":"Created.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaCreateResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listMeetingJobs","tags":["Meetings"],"summary":"List meeting jobs","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items to return (at most 50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"externalId","in":"query","required":false,"description":"Early access: only jobs created with this `externalId`.","schema":{"type":"string"}},{"name":"idempotencyKey","in":"query","required":false,"description":"Early access: the job a create request with this `Idempotency-Key` made (kept 24 hours). Empty list when that request created nothing; 409 `IDEMPOTENCY_KEY_IN_USE` while it is still running.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search.","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Jobs.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingJobList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}":{"get":{"operationId":"getMeetingJob","tags":["Meetings"],"summary":"Get a meeting job","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"full","in":"query","required":false,"description":"Send `1` to include word timings in the transcript.","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingJobEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteMeetingJob","tags":["Meetings"],"summary":"Delete a meeting permanently","description":"Removes the audio, transcript, minutes, PDF and tool results from our servers. Ledger rows stay. Only finished jobs (completed, failed, cancelled): a running job answers 409 `JOB_NOT_FINISHED`; cancel it first. Afterwards the job answers 404. Open to every account.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/speakers":{"get":{"operationId":"listMeetingSpeakers","tags":["Meetings"],"summary":"List speakers with short samples","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Speakers.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSpeakers"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"nameMeetingSpeakers","tags":["Meetings"],"summary":"Give names to speakers","description":"Replaces speaker ids with names everywhere in the minutes. While `awaiting_review` (older jobs only) `If-Match` is required. On completed meetings (every account since 2026-11-03), with `{ speakers: [{ speakerId, name }] }` or `{ names: { speaker_0: { name } } }`: renames (or corrects) a speaker everywhere in the minutes, transcript and files, and renders the PDF again; `If-Match` is optional there. Instead of `speakerId`, an entry can send `quote` (a line the person said): the speaker who said it is renamed. Send `dryRun: true` to see the matches first. While the meeting is still being made (once the transcript exists), the same body answers 202 `{ ok, pending: true, renames }`: the names go into the PDF when it is made, or right after it when it was already rendering. Before the transcript exists: 409 `TRANSCRIPT_NOT_READY`.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSpeakerNamesRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSpeakerNamesResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/minutes":{"patch":{"operationId":"editMeetingMinutes","tags":["Meetings"],"summary":"Replace the minutes with your edited version","description":"**Deprecated** for API keys: use POST /api/v1/meetings/jobs/{id}/minutes/revise. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.\n\nOnly while `awaiting_review`, which only older jobs reach; new jobs answer 409.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"POST /api/v1/meetings/jobs/{id}/minutes/revise","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/approve":{"post":{"operationId":"approveMeetingReview","tags":["Meetings"],"summary":"Approve the minutes and make the PDF","description":"**Deprecated** for API keys: use nothing: meetings are approved automatically. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.\n\nOnly for older jobs that stopped at `awaiting_review`; new jobs answer 409. Uses the Fara already held; nothing new is held.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"nothing: meetings are approved automatically","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Approved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/cancel":{"post":{"operationId":"cancelMeetingJob","tags":["Meetings"],"summary":"Cancel a meeting job","description":"Releases the held Fara.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/retry":{"post":{"operationId":"retryMeetingJob","tags":["Meetings"],"summary":"Retry a failed meeting job","description":"Holds the job's price again and restarts it.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/json":{"get":{"operationId":"getMeetingMinutes","tags":["Meetings"],"summary":"Get the minutes as JSON","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Minutes.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesJson"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/pdf":{"get":{"operationId":"downloadMeetingPdf","tags":["Meetings"],"summary":"Download the minutes PDF","description":"The document chosen with `output` at upload: full minutes, summary, key points, or the transcript.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/mindmap":{"get":{"operationId":"getMeetingMindmap","tags":["Meetings"],"summary":"Get the meeting's mind map","description":"Only for jobs created with `mindmap: true`: a tree of `{ id, label, summary, children }` drawn from the minutes (title, topics and their key points, decisions, action items, open questions). Free. 404 when the job has no mind map.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The mind map.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"mindmap":{"type":"object","description":"`{ title, root }`.","additionalProperties":true}},"additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createMeetingMindmap","tags":["Meetings"],"summary":"Draw a mind map for a finished meeting","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). For meetings created without `mindmap: true`, or to draw it again. 1 Fara (`tools.mindmap` in the estimate), charged when it is drawn. Drawn from the minutes (and the chat and notes, as extra branches). Answers 202; GET …/mindmap returns it at once, …/mindmap/pdf when the PDF is ready, and a `meeting.mindmap_ready` webhook goes out then. From now on it follows the minutes on every change. 409 `MINUTES_NOT_READY` for a transcript-only meeting.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"description":"Drawn; the PDF is rendering.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMindmapCreated"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/mindmap/pdf":{"get":{"operationId":"downloadMeetingMindmapPdf","tags":["Meetings"],"summary":"Download the mind map as a PDF","description":"One page. Only for completed jobs created with `mindmap: true`. Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/one-page/pdf":{"get":{"operationId":"downloadMeetingOnePagePdf","tags":["Meetings"],"summary":"Download a one-page A4 summary of the minutes","description":"Free, for every account. The summary, decisions and action items on one A4 page, with the meeting's branding. A long meeting shows fewer items and says how many more are in the full minutes. Made on the first request (a few seconds) and kept in step with the minutes after that. 409 `MEETING_NOT_FINISHED` until the job is done; 409 `MEETING_HAS_NO_MINUTES` for a meeting made with `output: transcript`.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The PDF.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/templates":{"get":{"operationId":"listMeetingTemplates","tags":["Meetings"],"summary":"List meeting templates","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Ids for the `template` field of POST /api/v1/meetings/jobs.","x-required-scope":"read","responses":{"200":{"description":"Templates.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTemplates"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/estimate":{"post":{"operationId":"estimateMeeting","tags":["Meetings"],"summary":"Price a meeting before uploading it","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Holds for the minutes and for each paid tool, for a recording of this length. Free.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingEstimateRequest"}}}},"responses":{"200":{"description":"Prices.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingEstimate"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/chapters":{"get":{"operationId":"getMeetingChapters","tags":["Meetings"],"summary":"Get the meeting's chapters","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). The timed topics of the minutes, in time order. Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Chapters.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingChapters"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/transcript":{"get":{"operationId":"getMeetingTranscript","tags":["Meetings"],"summary":"Get the meeting transcript","description":"Any account. Timed segments with speaker ids and names. `format=txt` downloads plain text (one paragraph per speaker turn, with speaker names); `format=srt` or `vtt` downloads subtitles (WebVTT works in a browser `<track>`). Free: no separate transcription job needed. After PUT /jobs/{id}/transcript this returns the corrected text (`edited: true`, no word timings).","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"Answer format.","schema":{"type":"string","enum":["json","txt","srt","vtt"],"default":"json"}},{"name":"words","in":"query","required":false,"description":"JSON only: include word timings.","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"The transcript.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTranscript"}},"text/plain":{"schema":{"type":"string"}},"application/x-subrip":{"schema":{"type":"string"}},"text/vtt":{"schema":{"type":"string"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"put":{"operationId":"saveMeetingTranscriptCorrection","tags":["Meetings"],"summary":"Save a corrected transcript","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Stores your corrected segments (the original stays). Free. POST /jobs/{id}/minutes/regenerate rebuilds the minutes from it.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingEditedTranscriptRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingEditedTranscriptResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteMeetingTranscriptCorrection","tags":["Meetings"],"summary":"Drop the corrected transcript","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Goes back to the original transcript. Free.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Removed.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingEditedTranscriptResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/minutes/regenerate":{"post":{"operationId":"regenerateMeetingMinutes","tags":["Meetings"],"summary":"Rebuild the minutes","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Writes the minutes again from the corrected transcript (or the original), keeps the speaker names you set, and renders the PDF again. Runs in the background: answers 202, then `minutesRegeneration.state` on the job goes `running` → `done` or `failed`. Charges the model's actual cost for the minutes only (no new transcription), never more than the hold. One rebuild at a time: 409 `JOB_BUSY`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRegenerateRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRegenerateResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/minutes/revise":{"post":{"operationId":"reviseMeetingMinutes","tags":["Meetings"],"summary":"Revise the minutes by instruction","description":"Every account. Changes the minutes as the instruction says (for example «تصمیم دوم را حذف کن و مسئول اقدام سوم را علی بگذار»), using the current minutes, the transcript with your corrections, and the meeting context. Everything the instruction does not touch stays as it was. Runs in the background: answers 202, then `minutesRevision.state` on the job goes `running` → `done` (with `changes`) or `failed`. When done, `/json`, `/pdf`, `/docx` and the mind map show the revised minutes and a `meeting.minutes_revised` webhook goes out. An instruction that cannot be applied ends `failed` with `error.code` `INSTRUCTION_NOT_APPLICABLE` and a `message` you can show; nothing is charged then. Otherwise charges the model's actual cost, never more than the hold. The replaced minutes are kept (GET …/minutes/versions). One change to the minutes at a time: 409 `JOB_BUSY`. A transcript-only meeting has no minutes yet: 409 `MINUTES_NOT_READY`.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingReviseRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingReviseResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/minutes/versions":{"get":{"operationId":"listMeetingMinutesVersions","tags":["Meetings"],"summary":"List older versions of the minutes","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Minutes replaced by a rebuild, a revision or a restore, newest first (the last 20). Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Versions.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesVersions"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/minutes/versions/{version}":{"get":{"operationId":"getMeetingMinutesVersion","tags":["Meetings"],"summary":"Get one older version of the minutes","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"A minutes version number from GET /api/v1/meetings/jobs/{id}/minutes/versions.","schema":{"type":"string"}}],"responses":{"200":{"description":"The version.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesVersion"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/minutes/versions/{version}/restore":{"post":{"operationId":"restoreMeetingMinutesVersion","tags":["Meetings"],"summary":"Restore an older version of the minutes","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Makes that version the current minutes again (undo). Free. The minutes it replaces are kept too. The PDF, Word file and mind map are rebuilt in the background. 409 `JOB_BUSY` while another change to the minutes runs.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"A minutes version number from GET /api/v1/meetings/jobs/{id}/minutes/versions.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Restored.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesRestored"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/context":{"put":{"operationId":"putMeetingContext","tags":["Meetings"],"summary":"Send the meeting's chat, notes and events","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). What was typed in the meeting, so the minutes, `ask`, rebuilds, revisions and the mind map use it as well as what was said. Replaces what was sent before. Free. Send it any time after creating the job; sent before the minutes are written (while the audio is transcribed), it is used by the first minutes too. `startSeconds` counts from the start of the recording. The transcript itself is never changed.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingContext"}}}},"responses":{"200":{"description":"Stored.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingContextResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"getMeetingContext","tags":["Meetings"],"summary":"Get the meeting's chat, notes and events","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). What is stored. Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The context, or null.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingContextResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteMeetingContext","tags":["Meetings"],"summary":"Remove the meeting's chat, notes and events","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Free. Minutes already written keep what they said; the next rebuild or revision does without it.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Removed.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingContextDeleted"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/docx":{"get":{"operationId":"downloadMeetingDocx","tags":["Meetings"],"summary":"Download the minutes as a Word file","description":"Free, for every account. The same content and branding as `/pdf`, right-to-left with Persian fonts for Persian minutes. Made on the first request (a few seconds) and kept in step with the PDF after that (rebuild, revision, restore, speaker rename). 409 `MEETING_NOT_FINISHED` until the job is done.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The Word file.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/documents":{"post":{"operationId":"createMeetingDocument","tags":["Meetings"],"summary":"Make another document from a finished meeting","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). A `full`, `summary`, `key_points` or `transcript` document as PDF or Word, without transcribing again. 1 Fara per document (`tools.document` in the estimate), charged when it is ready and given back if it fails. A meeting created with `output: transcript` has no minutes: they are written first, charged at the model's actual cost (`tools.write_minutes`; `heldFara` covers both), and the meeting keeps them. Runs in the background: 202, then the document's `state` goes `running` → `done` or `failed` (GET …/documents), and a `meeting.document_ready` webhook goes out. Up to 50 documents per meeting (409 `DOCUMENT_LIMIT_REACHED`).","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingDocumentRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingDocumentResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listMeetingDocuments","tags":["Meetings"],"summary":"List a meeting's documents","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). The job's own PDF (`original`) and every document made with POST …/documents. The Word file of the minutes is GET …/docx. Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Documents.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingDocumentList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/documents/{docId}":{"get":{"operationId":"downloadMeetingDocument","tags":["Meetings"],"summary":"Download one document","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). The file, with the Content-Type of its format. 409 `DOCUMENT_NOT_READY` until its `state` is `done`.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"docId","in":"path","required":true,"description":"Document id from POST or GET /api/v1/meetings/jobs/{id}/documents (`original` is the job's own PDF).","schema":{"type":"string"}}],"responses":{"200":{"description":"The file.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/operations":{"get":{"operationId":"listMeetingOperations","tags":["Meetings"],"summary":"List all background work on a meeting","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Every rebuild, revision, minutes writing, extra document and mind map of the meeting, each as `{ id, kind, state, heldFara, faraCost, error }`. The same data as `minutesRegeneration`, `minutesRevision`, `minutesWriting`, `documents` and `mindmap` on the job, in one list with one shape: poll this one call instead of several fields. Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Operations.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingOperations"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/speakers/list":{"get":{"operationId":"listMeetingSpeakerNames","tags":["Meetings"],"summary":"List speakers with names","description":"**Deprecated** for API keys: use GET /api/v1/meetings/jobs/{id}/speakers. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.\n\n**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Every speaker id with its name, how the name was found (`attendeeHint`, `transcript`, `manual`, `diarizationOnly`) and talk time. Free.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"GET /api/v1/meetings/jobs/{id}/speakers","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Speakers.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSpeakerList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/highlights":{"get":{"operationId":"getMeetingHighlights","tags":["Meetings"],"summary":"Get saved highlights","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Free. `hasHighlights: false` when none were made.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Highlights.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingHighlights"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"makeMeetingHighlights","tags":["Meetings"],"summary":"Make highlights","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Picks the moments worth watching again, each with a 5-60 second window and the words as spoken. Every quote is checked against the transcript; one that is not found is left out. Saved: GET returns it free. Needs a completed meeting (409 `MEETING_NOT_FINISHED`).","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRecapEmailRequest"}}}},"responses":{"200":{"description":"Highlights.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingHighlights"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteMeetingHighlights","tags":["Meetings"],"summary":"Delete saved highlights","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). ","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedToolDeleted"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/recap-email":{"get":{"operationId":"getMeetingRecapEmail","tags":["Meetings"],"summary":"Get the saved recap email","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Recap email.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRecapEmail"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"makeMeetingRecapEmail","tags":["Meetings"],"summary":"Write the recap email","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). A subject and body (Markdown and HTML) to send attendees, from the minutes. Saved: GET returns it free. Making it again replaces it.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRecapEmailRequest"}}}},"responses":{"200":{"description":"Recap email.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRecapEmail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteMeetingRecapEmail","tags":["Meetings"],"summary":"Delete the saved recap email","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). ","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedToolDeleted"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/analytics":{"get":{"operationId":"getMeetingAnalytics","tags":["Meetings"],"summary":"Get saved analytics","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Free.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Analytics.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAnalytics"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"makeMeetingAnalytics","tags":["Meetings"],"summary":"Analyse the meeting","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Measured numbers from the speech timing (talk time, turns, pace, interruptions, silence, overlap, questions) and sentiment/engagement scores judged from the transcript text by a third-party decision model (`method: transcript_text_and_timing`; not from tone of voice). The transcript text is sent to that provider. `includeSpeakerSentiment: false` leaves out per-person scores. Priced at the provider's cost plus 100%, at least 1 Fara. Saved: GET returns it free.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAnalyticsRequest"}}}},"responses":{"200":{"description":"Analytics.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAnalytics"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}},"delete":{"operationId":"deleteMeetingAnalytics","tags":["Meetings"],"summary":"Delete saved analytics","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). ","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedToolDeleted"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/meetings/jobs/{id}/ask":{"post":{"operationId":"askMeeting","tags":["Meetings"],"summary":"Ask a question about a meeting","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Answers from the transcript only, with citations (time, speaker, the words as spoken) you can jump to. `answerable: false` when the meeting does not contain the answer. Charged per question; not saved.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAskRequest"}}}},"responses":{"200":{"description":"The answer.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}}},"/api/v1/meetings/ask":{"post":{"operationId":"askMeetings","tags":["Meetings"],"summary":"Ask a question across meetings","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Answers from the minutes of up to 20 finished meetings (`jobIds`, or the newest 20 between `from` and `to`); each citation names its meeting and time. Charged per question; not saved.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingsAskRequest"}}}},"responses":{"200":{"description":"The answer.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingsAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}}},"/api/v1/meetings/digest":{"post":{"operationId":"digestMeetings","tags":["Meetings"],"summary":"Digest several meetings","description":"**Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). One summary of up to 20 finished meetings: what happened, merged decisions, action items and open questions, each with its meeting and time. Not saved.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingsDigestRequest"}}}},"responses":{"200":{"description":"The digest.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingsDigest"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/ServiceUnavailable"},"504":{"$ref":"#/components/responses/GatewayTimeout"}}}},"/api/v1/audio/voices":{"get":{"operationId":"listAudioVoices","tags":["Audio"],"summary":"List voices and moods for podcasts and audiobooks","x-required-scope":"read","responses":{"200":{"description":"Voices and moods.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCatalog"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/pricing":{"get":{"operationId":"getAudioPricing","tags":["Audio"],"summary":"Get podcast and audiobook pricing","x-required-scope":"read","responses":{"200":{"description":"Pricing.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioPricing"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/jobs":{"post":{"operationId":"createAudioJob","tags":["Audio"],"summary":"Make a podcast or audiobook from a translation","description":"Holds `holdFara` (the price of the longest length plus 20%), charges the actual cost when it finishes, and releases the rest. In rare cases the actual cost is higher than the hold. The job stops at `awaiting_review` with a script you can edit, then approve.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioCreateRequest"}}}},"responses":{"201":{"description":"Created.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioJobEnvelope"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listAudioJobs","tags":["Audio"],"summary":"List audio jobs","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items to return (at most 50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"q","in":"query","required":false,"description":"Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search.","schema":{"type":"string","maxLength":100}},{"name":"translationJobId","in":"query","required":false,"description":"Only jobs made from this translation.","schema":{"type":"string"}},{"name":"feature","in":"query","required":false,"description":"Only this kind.","schema":{"type":"string","enum":["podcast","audiobook"]}}],"responses":{"200":{"description":"Jobs.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioJobList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/jobs/{id}":{"get":{"operationId":"getAudioJob","tags":["Audio"],"summary":"Get an audio job with its script","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioJobEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteAudioJob","tags":["Audio"],"summary":"Delete a podcast or audiobook job permanently","description":"Removes the script and the audio. A podcast or audiobook saved on the translation from this job is removed too from our servers. Ledger rows stay. Only finished jobs (completed, failed, cancelled): a running or queued job answers 409 `JOB_NOT_FINISHED`; cancel it first. Afterwards the job answers 404.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/jobs/{id}/segments/{segmentId}":{"patch":{"operationId":"editAudioScriptSegment","tags":["Audio"],"summary":"Edit one script segment","description":"Only while `awaiting_review`. The whole script must stay within the held length.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"segmentId","in":"path","required":true,"description":"Segment id from the job's review data.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptSegmentEditRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptSegmentEditResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/jobs/{id}/approve":{"post":{"operationId":"approveAudioScript","tags":["Audio"],"summary":"Approve the script and make the audio","description":"Uses the Fara already held; nothing new is held.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IfMatch"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Approved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"428":{"$ref":"#/components/responses/PreconditionRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/jobs/{id}/cancel":{"post":{"operationId":"cancelAudioJob","tags":["Audio"],"summary":"Cancel an audio job","description":"Releases the held Fara.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/audio/jobs/{id}/download":{"get":{"operationId":"downloadAudio","tags":["Audio"],"summary":"Download the MP3","description":"Supports `Range` requests.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The MP3.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}},"Accept-Ranges":{"description":"Always `bytes`: send a `Range` header to fetch part of the file.","schema":{"type":"string"}}},"content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Part of the file, for a single `Range: bytes=start-end` request.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Range":{"description":"`bytes start-end/total`.","schema":{"type":"string"}}},"content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"416":{"description":"The requested range is outside the file. `Content-Range: bytes */total` gives the size."},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/voices":{"get":{"operationId":"listFarsiTtsVoices","tags":["Farsi TTS"],"summary":"List voices and moods for text to speech","x-required-scope":"read","responses":{"200":{"description":"Voices and moods.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCatalog"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/pricing":{"get":{"operationId":"getFarsiTtsPricing","tags":["Farsi TTS"],"summary":"Get text-to-speech pricing","x-required-scope":"read","responses":{"200":{"description":"Pricing.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsPricing"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/jobs":{"post":{"operationId":"createFarsiTtsJob","tags":["Farsi TTS"],"summary":"Turn text into Persian speech","description":"English text is translated to Persian first. Fara is held from the text length (with room for edits), charged at the actual cost when done, and released on failure or cancel. The job stops at `awaiting_review` so you can edit the Persian text, then approve.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsCreateRequest"}}}},"responses":{"201":{"description":"Created.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsJobEnvelope"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listFarsiTtsJobs","tags":["Farsi TTS"],"summary":"List text-to-speech jobs","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items to return (at most 50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"q","in":"query","required":false,"description":"Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search.","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Jobs.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsJobList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/jobs/{id}":{"get":{"operationId":"getFarsiTtsJob","tags":["Farsi TTS"],"summary":"Get a text-to-speech job with its text","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsJobEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteFarsiTtsJob","tags":["Farsi TTS"],"summary":"Delete a text-to-speech job permanently","description":"Removes the text and the audio from our servers. Ledger rows stay. Only finished jobs (completed, failed, cancelled): a running or queued job answers 409 `JOB_NOT_FINISHED`; cancel it first. Afterwards the job answers 404.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/jobs/{id}/text":{"patch":{"operationId":"editFarsiTtsText","tags":["Farsi TTS"],"summary":"Edit the Persian text","description":"Only while `awaiting_review`, and only up to `reservedChars`. No `If-Match` is needed here.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsTextRequest"}}}},"responses":{"200":{"description":"Saved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarsiTtsTextResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/jobs/{id}/approve":{"post":{"operationId":"approveFarsiTtsText","tags":["Farsi TTS"],"summary":"Approve the text and make the audio","description":"Uses the Fara already held; nothing new is held. If the work cannot be queued, answers 503 `SERVICE_BUSY` with `Retry-After`: the job is marked failed and the hold is released.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Approved.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/jobs/{id}/cancel":{"post":{"operationId":"cancelFarsiTtsJob","tags":["Farsi TTS"],"summary":"Cancel a text-to-speech job","description":"Releases the held Fara.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/farsi-tts/jobs/{id}/download":{"get":{"operationId":"downloadFarsiTtsAudio","tags":["Farsi TTS"],"summary":"Download the MP3","description":"Supports `Range` requests.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The MP3.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}},"Accept-Ranges":{"description":"Always `bytes`: send a `Range` header to fetch part of the file.","schema":{"type":"string"}}},"content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Part of the file, for a single `Range: bytes=start-end` request.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Range":{"description":"`bytes start-end/total`.","schema":{"type":"string"}}},"content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"416":{"description":"The requested range is outside the file. `Content-Range: bytes */total` gives the size."},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/transcription/pricing":{"get":{"operationId":"getTranscriptionPricing","tags":["Transcription"],"summary":"Get transcription pricing","x-required-scope":"read","responses":{"200":{"description":"Pricing.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionPricing"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/transcription/jobs":{"post":{"operationId":"createTranscriptionJob","tags":["Transcription"],"summary":"Turn a recording into text","description":"Optionally translates the text too. Fara is held from the audio length when the job is created, charged at the actual cost when done, and released on failure or cancel. A file over 200 MB answers 400 `BAD_REQUEST` (its message may say 100MB). For a larger file, or a connection that may break, send it as a chunked upload (POST /api/v1/uploads with `purpose: transcription`) and create the job with a JSON body holding `uploadId`: the upload errors (`UPLOAD_NOT_FOUND`, `UPLOAD_EXPIRED`, `UPLOAD_INCOMPLETE`, `UPLOAD_ALREADY_USED`, `UPLOAD_CHECKSUM_MISMATCH`) come from this call. A refused create leaves the upload open, so it can be used again. **Early access** (accounts with `meetings_api_v2`; others get 403 `FEATURE_NOT_ENABLED`). Early-access accounts may send `externalId`, `metadata`, or a JSON body with `audioUrl` instead of a file.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TranscriptionCreateRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionCreateJsonRequest"}}}},"responses":{"201":{"description":"Created.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaCreateResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listTranscriptionJobs","tags":["Transcription"],"summary":"List transcription jobs","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items to return (at most 50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"externalId","in":"query","required":false,"description":"Early access: only jobs created with this `externalId`.","schema":{"type":"string"}},{"name":"idempotencyKey","in":"query","required":false,"description":"Early access: the job a create request with this `Idempotency-Key` made (kept 24 hours). Empty list when that request created nothing; 409 `IDEMPOTENCY_KEY_IN_USE` while it is still running.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search.","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Jobs.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionJobList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/transcription/jobs/{id}":{"get":{"operationId":"getTranscriptionJob","tags":["Transcription"],"summary":"Get a transcription job","description":"Note: this answer is the job itself, not wrapped in `{ job }`.","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptionJob"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteTranscriptionJob","tags":["Transcription"],"summary":"Delete a transcription job permanently","description":"Removes the audio, transcript and files from our servers. Ledger rows stay. Only finished jobs: a running job answers 409 `JOB_NOT_FINISHED`. Open to every account. Afterwards the job answers 404.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/transcription/jobs/{id}/cancel":{"post":{"operationId":"cancelTranscriptionJob","tags":["Transcription"],"summary":"Cancel a transcription job","description":"Releases the held Fara.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/transcription/jobs/{id}/download":{"get":{"operationId":"downloadTranscript","tags":["Transcription"],"summary":"Download the transcript or its translation","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"name":"file","in":"query","required":false,"description":"The transcript or the translation.","schema":{"type":"string","enum":["source","translation"],"default":"source"}},{"name":"format","in":"query","required":false,"description":"Plain text, SubRip subtitles, or a PDF or Word document (one block per speaker turn, with times).","schema":{"type":"string","enum":["txt","srt","pdf","docx"],"default":"txt"}}],"responses":{"200":{"description":"The file.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Content-Disposition":{"description":"`attachment` (or `inline`) with a suggested file name.","schema":{"type":"string"}}},"content":{"text/plain":{"schema":{"type":"string","format":"binary"}},"application/x-subrip":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/content/translate":{"post":{"operationId":"translateContent","tags":["Content"],"summary":"Translate website or app copy into Persian","description":"Send English copy as JSON (an i18n file), Markdown, HTML or strings; get the same structure back with natural Persian: same keys, same placeholders (`{name}`, `{{count}}`, `%s`, ICU plural), same tags, links and code. Every string is checked before it is returned (placeholders kept, no English left, length limits); a string that fails is listed in `failed` and keeps its English text.\n\nPrice: the model's token cost at our rate, never more than `quote.maxFara`, which is held when the work starts. Strings in your translation memory are free. Price first with `dryRun: true` (or POST /api/v1/estimate with `content_translation`).\n\nUp to about 1,000 words of new text is answered in the same call (200, with `content`). More, or `async: true`, answers 202 with the job: poll GET /api/v1/content/jobs/{id} or listen for `content.completed` webhooks. A request whose strings all come from memory answers 200 at once with `id: null` and nothing charged.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTranslateRequest"}}}},"responses":{"200":{"description":"Translated (or, with `dryRun`, the quote: `ContentTranslationQuoteResponse`).","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ContentTranslationJob"},{"$ref":"#/components/schemas/ContentTranslationQuoteResponse"}]}}}},"202":{"description":"Started in the background. Poll the job in `links.self`.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Location":{"description":"The job URL.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTranslationJob"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/content/edit":{"post":{"operationId":"editContent","tags":["Content"],"summary":"Edit Persian text into natural, native Persian","description":"Not a translation: send Persian text (AI copy, a literal translation, stiff prose, or ordinary copy) as JSON, Markdown, HTML or strings, and get every sentence back written again, in full, the way an Iranian writer would write it today (headings are written again as headings; buttons, labels and fixed section names keep their usual wording), with the same meaning and the same structure: same keys, placeholders, tags, links and code. Strings without Persian letters, text in Arabic, Urdu, Kurdish or Pashto, and single slugs, paths and file names are left as they are; digits stay as written by default.\n\nEvery edit is checked before it is returned: placeholders kept, every number of the original still there with the same value, the English words of the original and `keep` words kept, no English added, no summary (the length stays near the original), length limits. An edit that does not pass is not used: the string keeps its original text and is listed in `failed`. `changes` says, per string, whether it changed and why, in one short Persian note.\n\nPrice: the model's token cost at our rate, never more than `quote.maxFara`, which is held when the work starts. Price first with `dryRun: true`. Small work answers in the same call (200); more, or `async: true`, answers 202 with the job to poll at GET /api/v1/content/jobs/{id}.","x-required-scope":"write","x-spends-fara":true,"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEditRequest"}}}},"responses":{"200":{"description":"Edited (or, with `dryRun`, the quote: `ContentEditQuoteResponse`).","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ContentEditJob"},{"$ref":"#/components/schemas/ContentEditQuoteResponse"}]}}}},"202":{"description":"Started in the background. Poll the job in `links.self`.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Location":{"description":"The job URL.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEditJob"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/content/jobs":{"get":{"operationId":"listContentJobs","tags":["Content"],"summary":"List content translation jobs","description":"Newest first, without `content`. Jobs and results are kept for 7 days.","x-required-scope":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items to return (at most 50).","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Jobs.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTranslationJobList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/content/jobs/{id}":{"get":{"operationId":"getContentJob","tags":["Content"],"summary":"Get a content job (translation or editing), with the result when finished","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The job.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ContentTranslationJob"},{"$ref":"#/components/schemas/ContentEditJob"}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteContentJob","tags":["Content"],"summary":"Delete a finished content translation job","description":"Removes the job and its result. Ledger rows and translation memory stay. A running job answers 409 `JOB_NOT_FINISHED`.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Job id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/content/memory":{"delete":{"operationId":"clearContentMemory","tags":["Content"],"summary":"Clear your translation memory","description":"Removes the stored translations of the account, or of one `project`. Later requests translate (and charge for) every string again. Memory not used for a year is removed on its own.","x-required-scope":"write","parameters":[{"name":"project","in":"query","required":false,"description":"Only this project's memory. Leave out to clear all.","schema":{"type":"string","maxLength":100}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Cleared.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentMemoryCleared"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/uploads":{"post":{"operationId":"startUpload","tags":["Uploads"],"summary":"Start a chunked upload","description":"Starts an upload for a meeting or transcription recording, or for a video to translate, up to 1 GB. Free: nothing is held or charged until the job is created. Counts as one upload toward the per-account upload limit; the chunks and the job create made from it do not. The answer gives `chunkSize` and `totalChunks`. An upload not used within 24 hours is deleted. At most 10 uploads can be open at once (`UPLOAD_LIMIT_REACHED`). When we are short of room for a very large file the answer is 503 `SERVICE_UNAVAILABLE` with `Retry-After`.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStartRequest"}}}},"responses":{"201":{"description":"Started.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Location":{"description":"The upload's URL.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/uploads/{uploadId}":{"get":{"operationId":"getUpload","tags":["Uploads"],"summary":"Read an upload","description":"`received` lists the chunks that arrived. After a lost connection, send only the missing ones. A used upload shows `status: used` and its `jobId`.","x-required-scope":"read","parameters":[{"name":"uploadId","in":"path","required":true,"description":"Upload id (`upl_...`) returned when the upload started.","schema":{"type":"string"}}],"responses":{"200":{"description":"The upload.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSession"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"cancelUpload","tags":["Uploads"],"summary":"Cancel an upload","description":"Deletes the chunks. Cancelling again answers 204 too. An upload that already made a job answers 409 `UPLOAD_ALREADY_USED`.","x-required-scope":"write","parameters":[{"name":"uploadId","in":"path","required":true,"description":"Upload id (`upl_...`) returned when the upload started.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Cancelled.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/uploads/{uploadId}/chunks/{index}":{"put":{"operationId":"putUploadChunk","tags":["Uploads"],"summary":"Send one chunk","description":"The body is the chunk's raw bytes (`Content-Type: application/octet-stream`). Index 0 is the start of the file. Every chunk is exactly `chunkSize` bytes except the last, which is the rest (`BAD_CHUNK` otherwise). Chunks can come in any order and in parallel. Sending the same index again replaces it, so a retry after a timeout is always safe and needs no `Idempotency-Key`. With a `Content-Digest` header (RFC 9530, `sha-256=:<base64>:`) a chunk that does not match is refused with `CHUNK_DIGEST_MISMATCH`. Counts toward the per-key request limit, not toward the upload limit.","x-required-scope":"write","parameters":[{"name":"uploadId","in":"path","required":true,"description":"Upload id (`upl_...`) returned when the upload started.","schema":{"type":"string"}},{"name":"index","in":"path","required":true,"description":"Chunk index, from 0 to `totalChunks - 1`.","schema":{"type":"integer","minimum":0}},{"name":"Content-Digest","in":"header","required":false,"description":"Optional RFC 9530 digest of this chunk, for example `sha-256=:X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=:`.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"The upload, with this index in `received`.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSession"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints/event-types":{"get":{"operationId":"listWebhookEventTypes","tags":["Webhooks"],"summary":"List webhook event types","x-required-scope":"read","responses":{"200":{"description":"Event types.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEventTypes"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints":{"get":{"operationId":"listWebhookEndpoints","tags":["Webhooks"],"summary":"List webhook endpoints","description":"All endpoints of the account (there are only a few, so no pagination).","x-required-scope":"read","responses":{"200":{"description":"Endpoints.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"createWebhookEndpoint","tags":["Webhooks"],"summary":"Add a webhook endpoint","description":"The answer contains the signing `secret`. It is shown only once.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreateRequest"}}}},"responses":{"201":{"description":"Created.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"Location":{"$ref":"#/components/headers/Location"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints/{id}":{"get":{"operationId":"getWebhookEndpoint","tags":["Webhooks"],"summary":"Get a webhook endpoint","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The endpoint.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateWebhookEndpoint","tags":["Webhooks"],"summary":"Change a webhook endpoint","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdateRequest"}}}},"responses":{"200":{"description":"Updated.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteWebhookEndpoint","tags":["Webhooks"],"summary":"Delete a webhook endpoint","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"Deleted.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints/{id}/rotate-secret":{"post":{"operationId":"rotateWebhookSecret","tags":["Webhooks"],"summary":"Replace the signing secret","description":"The old secret stops working at once. The new one is shown only in this answer.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"New secret.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints/{id}/test":{"post":{"operationId":"sendWebhookTestEvent","tags":["Webhooks"],"summary":"Send a test event","description":"Sends one `webhook.test` event now and reports what your endpoint answered. Not retried.","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Result.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","tags":["Webhooks"],"summary":"List deliveries to an endpoint","x-required-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items per page (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"startingAfter","in":"query","required":false,"description":"Cursor: the `nextCursor` (or last `id`) of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"One page.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/webhook-endpoints/{id}/deliveries/{deliveryId}/retry":{"post":{"operationId":"retryWebhookDelivery","tags":["Webhooks"],"summary":"Send a failed delivery again","x-required-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"Webhook endpoint id.","schema":{"type":"string"}},{"name":"deliveryId","in":"path","required":true,"description":"Webhook delivery id.","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"description":"Queued again.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/payment/packages":{"get":{"operationId":"listFaraPackages","tags":["Payments"],"summary":"List Fara packages","description":"Buying happens on the website; it is not available over the API.","x-required-scope":"read","responses":{"200":{"description":"Packages.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPackages"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/payment/packages/public":{"get":{"operationId":"listPublicFaraPackages","tags":["Payments"],"summary":"List Fara packages (public copy)","x-required-scope":"read","responses":{"200":{"description":"Packages.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPackages"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/payment/status/{authority}":{"get":{"operationId":"getPaymentStatus","tags":["Payments"],"summary":"Get the status of a payment","x-required-scope":"read","parameters":[{"name":"authority","in":"path","required":true,"description":"Payment authority code from the payment gateway.","schema":{"type":"string"}}],"responses":{"200":{"description":"Status.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/payment/history":{"get":{"operationId":"listPayments","tags":["Payments"],"summary":"List payments","x-required-scope":"read","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Items per page (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"One page.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentHistory"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/profile":{"get":{"operationId":"getProfile","tags":["Profile"],"summary":"Get your profile","description":"**Deprecated** for API keys: use GET /api/v1/account. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"GET /api/v1/account","x-required-scope":"read","responses":{"200":{"description":"Profile.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/profile/usage":{"get":{"operationId":"getUsageStats","tags":["Profile"],"summary":"Get translation usage totals","description":"**Deprecated** for API keys: use GET /api/v1/account/transactions. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"GET /api/v1/account/transactions","x-required-scope":"read","responses":{"200":{"description":"Usage.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageStats"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/profile/credits":{"get":{"operationId":"getCreditHistory","tags":["Profile"],"summary":"Get the balance and ledger (page-based)","description":"**Deprecated** for API keys: use GET /api/v1/account/transactions. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.\n\nOlder, page-based view of the ledger. New code should use GET /api/v1/account/transactions.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"GET /api/v1/account/transactions","x-required-scope":"read","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","required":false,"description":"Items per page (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Balance and one page.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsHistory"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/dashboard/stats":{"get":{"operationId":"getDashboardStats","tags":["Profile"],"summary":"Get dashboard numbers","description":"**Deprecated** for API keys: use GET /api/v1/account. Answers carry `Deprecation` and `Sunset` headers; from 2026-09-29 API keys get 410 `GONE`.","deprecated":true,"x-sunset":"2026-09-29T00:00:00Z","x-replacement":"GET /api/v1/account","x-required-scope":"read","responses":{"200":{"description":"Numbers.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardStats"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/openapi.json":{"get":{"operationId":"getOpenApiDocument","tags":["Account"],"summary":"Get this OpenAPI document","description":"Public: works without a key. Also shown as a web page at /api/v1/docs.","x-required-scope":"read","security":[{},{"apiKey":[]}],"responses":{"200":{"description":"The OpenAPI document.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/docs":{"get":{"operationId":"getApiReferencePage","tags":["Account"],"summary":"Get this reference as a web page","description":"Public: works without a key.","x-required-scope":"read","security":[{},{"apiKey":[]}],"responses":{"200":{"description":"HTML page.","content":{"text/html":{"schema":{"type":"string"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/mcp":{"post":{"operationId":"callMcpEndpoint","tags":["AI assistants"],"summary":"Model Context Protocol endpoint for AI assistants","description":"One JSON-RPC 2.0 request per POST (stateless, JSON answers only). Methods: `initialize`, `ping`, `tools/list`, `tools/call`. A notification (no `id`) gets `202` with no body. The tools are thin wrappers over this API and use the same key, so the same scopes, limits and prices apply. Tool failures come back inside the result with `isError: true`. Jobs that cost Fara need the user's yes first. Guide: /api/v1/docs/guides/mcp. Answers `404` while the endpoint is switched off.","x-required-scope":"write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"One JSON-RPC request object.","additionalProperties":true}}}},"responses":{"200":{"description":"The JSON-RPC answer (`result` or `error`).","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"202":{"description":"A notification was received. The body is empty.","headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableContent"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}},"webhooks":{"translation.analyzed":{"post":{"operationId":"onTranslationAnalyzed","tags":["Webhooks"],"summary":"A translation job is now `analyzed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"translation.analyzed"},"data":{"type":"object","properties":{"object":{"const":"translation"},"status":{"const":"analyzed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"translation.images_waiting":{"post":{"operationId":"onTranslationImagesWaiting","tags":["Webhooks"],"summary":"A translation job is now `images_waiting`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"translation.images_waiting"},"data":{"type":"object","properties":{"object":{"const":"translation"},"status":{"const":"images_waiting"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"translation.completed":{"post":{"operationId":"onTranslationCompleted","tags":["Webhooks"],"summary":"A translation job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"translation.completed"},"data":{"type":"object","properties":{"object":{"const":"translation"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"translation.completed_partial":{"post":{"operationId":"onTranslationCompletedPartial","tags":["Webhooks"],"summary":"A translation job is now `completed_partial`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"translation.completed_partial"},"data":{"type":"object","properties":{"object":{"const":"translation"},"status":{"const":"completed_partial"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"translation.failed":{"post":{"operationId":"onTranslationFailed","tags":["Webhooks"],"summary":"A translation job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"translation.failed"},"data":{"type":"object","properties":{"object":{"const":"translation"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"translation.cancelled":{"post":{"operationId":"onTranslationCancelled","tags":["Webhooks"],"summary":"A translation job is now `cancelled`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"translation.cancelled"},"data":{"type":"object","properties":{"object":{"const":"translation"},"status":{"const":"cancelled"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"video.awaiting_review":{"post":{"operationId":"onVideoAwaitingReview","tags":["Webhooks"],"summary":"A video job is now `awaiting_review`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"video.awaiting_review"},"data":{"type":"object","properties":{"object":{"const":"video"},"status":{"const":"awaiting_review"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"video.completed":{"post":{"operationId":"onVideoCompleted","tags":["Webhooks"],"summary":"A video job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"video.completed"},"data":{"type":"object","properties":{"object":{"const":"video"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"video.failed":{"post":{"operationId":"onVideoFailed","tags":["Webhooks"],"summary":"A video job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"video.failed"},"data":{"type":"object","properties":{"object":{"const":"video"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"video.cancelled":{"post":{"operationId":"onVideoCancelled","tags":["Webhooks"],"summary":"A video job is now `cancelled`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"video.cancelled"},"data":{"type":"object","properties":{"object":{"const":"video"},"status":{"const":"cancelled"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.awaiting_review":{"post":{"operationId":"onMeetingAwaitingReview","tags":["Webhooks"],"summary":"A meeting job is now `awaiting_review`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.awaiting_review"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"awaiting_review"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.completed":{"post":{"operationId":"onMeetingCompleted","tags":["Webhooks"],"summary":"A meeting job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.completed"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.failed":{"post":{"operationId":"onMeetingFailed","tags":["Webhooks"],"summary":"A meeting job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.failed"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.cancelled":{"post":{"operationId":"onMeetingCancelled","tags":["Webhooks"],"summary":"A meeting job is now `cancelled`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.cancelled"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"cancelled"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"audio.awaiting_review":{"post":{"operationId":"onAudioAwaitingReview","tags":["Webhooks"],"summary":"A audio job is now `awaiting_review`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"audio.awaiting_review"},"data":{"type":"object","properties":{"object":{"const":"audio"},"status":{"const":"awaiting_review"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"audio.completed":{"post":{"operationId":"onAudioCompleted","tags":["Webhooks"],"summary":"A audio job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"audio.completed"},"data":{"type":"object","properties":{"object":{"const":"audio"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"audio.failed":{"post":{"operationId":"onAudioFailed","tags":["Webhooks"],"summary":"A audio job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"audio.failed"},"data":{"type":"object","properties":{"object":{"const":"audio"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"audio.cancelled":{"post":{"operationId":"onAudioCancelled","tags":["Webhooks"],"summary":"A audio job is now `cancelled`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"audio.cancelled"},"data":{"type":"object","properties":{"object":{"const":"audio"},"status":{"const":"cancelled"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"farsi_tts.awaiting_review":{"post":{"operationId":"onFarsiTtsAwaitingReview","tags":["Webhooks"],"summary":"A farsi tts job is now `awaiting_review`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"farsi_tts.awaiting_review"},"data":{"type":"object","properties":{"object":{"const":"farsi_tts"},"status":{"const":"awaiting_review"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"farsi_tts.completed":{"post":{"operationId":"onFarsiTtsCompleted","tags":["Webhooks"],"summary":"A farsi tts job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"farsi_tts.completed"},"data":{"type":"object","properties":{"object":{"const":"farsi_tts"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"farsi_tts.failed":{"post":{"operationId":"onFarsiTtsFailed","tags":["Webhooks"],"summary":"A farsi tts job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"farsi_tts.failed"},"data":{"type":"object","properties":{"object":{"const":"farsi_tts"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"farsi_tts.cancelled":{"post":{"operationId":"onFarsiTtsCancelled","tags":["Webhooks"],"summary":"A farsi tts job is now `cancelled`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"farsi_tts.cancelled"},"data":{"type":"object","properties":{"object":{"const":"farsi_tts"},"status":{"const":"cancelled"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"transcription.completed":{"post":{"operationId":"onTranscriptionCompleted","tags":["Webhooks"],"summary":"A transcription job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"transcription.completed"},"data":{"type":"object","properties":{"object":{"const":"transcription"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"transcription.failed":{"post":{"operationId":"onTranscriptionFailed","tags":["Webhooks"],"summary":"A transcription job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"transcription.failed"},"data":{"type":"object","properties":{"object":{"const":"transcription"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"transcription.cancelled":{"post":{"operationId":"onTranscriptionCancelled","tags":["Webhooks"],"summary":"A transcription job is now `cancelled`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"transcription.cancelled"},"data":{"type":"object","properties":{"object":{"const":"transcription"},"status":{"const":"cancelled"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"content.completed":{"post":{"operationId":"onContentCompleted","tags":["Webhooks"],"summary":"A content job is now `completed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"content.completed"},"data":{"type":"object","properties":{"object":{"const":"content"},"status":{"const":"completed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"content.completed_partial":{"post":{"operationId":"onContentCompletedPartial","tags":["Webhooks"],"summary":"A content job is now `completed_partial`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"content.completed_partial"},"data":{"type":"object","properties":{"object":{"const":"content"},"status":{"const":"completed_partial"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"content.failed":{"post":{"operationId":"onContentFailed","tags":["Webhooks"],"summary":"A content job is now `failed`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"content.failed"},"data":{"type":"object","properties":{"object":{"const":"content"},"status":{"const":"failed"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"account.balance_low":{"post":{"operationId":"onAccountBalanceLow","tags":["Webhooks"],"summary":"A account job is now `balance_low`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"account.balance_low"},"data":{"type":"object","properties":{"object":{"const":"account"},"status":{"const":"balance_low"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.minutes_revised":{"post":{"operationId":"onMeetingMinutesRevised","tags":["Webhooks"],"summary":"A meeting job is now `minutes_revised`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.minutes_revised"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"minutes_revised"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.minutes_regenerated":{"post":{"operationId":"onMeetingMinutesRegenerated","tags":["Webhooks"],"summary":"A meeting job is now `minutes_regenerated`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.minutes_regenerated"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"minutes_regenerated"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.document_ready":{"post":{"operationId":"onMeetingDocumentReady","tags":["Webhooks"],"summary":"A meeting job is now `document_ready`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.document_ready"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"document_ready"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"meeting.mindmap_ready":{"post":{"operationId":"onMeetingMindmapReady","tags":["Webhooks"],"summary":"A meeting job is now `mindmap_ready`","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"meeting.mindmap_ready"},"data":{"type":"object","properties":{"object":{"const":"meeting"},"status":{"const":"mindmap_ready"}}}}}]}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}},"webhook.test":{"post":{"operationId":"onWebhookTest","tags":["Webhooks"],"summary":"Test event from POST /api/v1/webhook-endpoints/{id}/test","description":"Sent as a POST with a JSON body to your endpoint. Verify the signature, answer 2xx within 10 seconds, then do the work. Fetch `data.links.self` for the full, current job.","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"Event id. The same on every retry of one event: use it to drop duplicates.","schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"Unix seconds when this attempt was sent. Reject values more than 5 minutes from now.","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"`v1,<base64 HMAC-SHA256>` of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of your `whsec_` secret. May hold several space-separated signatures; accept if any matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestEvent"}}}},"responses":{"410":{"description":"Gone: the endpoint is switched off at once and gets no more events."},"2XX":{"description":"Received. Any 2xx counts as delivered."},"default":{"description":"Any other answer, or no answer in 10 seconds, is retried with backoff for about 3 days."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"fara_sk_…","description":"Secret API key from your profile page on the website. Server-to-server only."}},"schemas":{"Problem":{"type":"object","description":"RFC 9457 problem details. Some errors add fields, for example `balance`, `estimatedCost`, `cost`, `required` (402), `requiredScope` (403), `currentVersion` (409 review conflict), `maxChars` (413), `originalStatus` (idempotency), `details` (validation), `retryLocked`.","required":["type","title","status","detail","code"],"properties":{"type":{"type":"string","format":"uri-reference","description":"Link to this error's entry in the API reference (`/api/v1/docs/errors#error-<code>`)."},"title":{"type":"string","description":"Short HTTP status text."},"status":{"type":"integer","description":"HTTP status code."},"detail":{"type":"string","description":"What went wrong, in English. Do not parse it; branch on `code`."},"instance":{"type":"string","description":"The request path."},"code":{"type":"string","description":"Stable machine-readable error code. See the error code table."},"request_id":{"type":"string","description":"Request id. Include it when you contact support."}},"additionalProperties":true},"PublicJobCost":{"type":["object","null"],"description":"Price of a media job, in Fara.","properties":{"faraCharged":{"type":"number","description":"Fara for this job: the held amount while running, the actual charge once finished."},"minutesBilled":{"type":"number","description":"Billed minutes, for media jobs."},"heldFara":{"type":"number","description":"Fara held when the job started."},"refundedFara":{"type":"number","description":"Part of the hold returned after the actual charge."}},"additionalProperties":true},"OkResponse":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"}},"additionalProperties":true},"MessageResponse":{"type":"object","properties":{"message":{"type":"string"},"jobId":{"type":"string"},"analysisId":{"type":"string"}},"additionalProperties":true},"Account":{"type":"object","required":["id","credits"],"properties":{"id":{"type":"string","description":"Account id."},"email":{"type":["string","null"]},"emailVerified":{"type":"boolean"},"credits":{"type":"object","required":["balance","reserved"],"properties":{"currency":{"type":"string","const":"FARA","description":"Always `FARA`."},"faraPerUsd":{"type":"number","description":"How many Fara make one US dollar."},"balance":{"type":"number","description":"Fara you can spend now. Fara held for running jobs is already taken out."},"reserved":{"type":"number","description":"Fara held for running jobs."},"chargebackLiability":{"type":"number","description":"Reversed payments not yet settled. While above zero, new holds are refused."},"lifetimeUsage":{"type":"number","description":"Fara spent over the life of the account."},"lastTransactionAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"auth":{"type":"object","properties":{"type":{"type":"string","description":"`api_key` or `session`."},"keyId":{"type":"string","description":"Id of the API key used for this request."},"scopes":{"type":"array","items":{"type":"string","enum":["read","write"]}}},"additionalProperties":true},"earlyAccess":{"type":"array","items":{"type":"string"},"description":"Early-access features turned on for this account, e.g. `meetings_api_v2`."}},"additionalProperties":true},"AccountSettings":{"type":"object","properties":{"meetingRetentionDays":{"type":["integer","null"],"description":"Finished meeting and audio-to-text jobs are deleted this many days after they last changed. `null`: kept until you delete them."},"lowBalanceThreshold":{"type":["number","null"],"description":"When the balance falls below this many Fara, an `account.balance_low` webhook event is sent (once, until the balance is back above it). `null`: off."}},"additionalProperties":true},"AccountSettingsPatch":{"type":"object","properties":{"meetingRetentionDays":{"type":["integer","null"],"minimum":1,"maximum":3650,"description":"1-3650, or `null` to turn off."},"lowBalanceThreshold":{"type":["number","null"],"description":"Fara, or `null` to turn off."}},"additionalProperties":true},"EstimateRequest":{"type":"object","required":["feature"],"properties":{"feature":{"type":"string","enum":["translation","meeting","transcription","video","farsi_tts","podcast","audiobook","meeting_tool","content_translation"],"description":"What to price."},"words":{"type":"integer","description":"`translation`: words in the document (a rough price; the real quote comes from analysis). `content_translation`: words of website or app text (or send `characters`)."},"delivery":{"type":"string","enum":["fast","economy"],"deprecated":true,"description":"Deprecated. Every translation runs fast; leave this out. Kept for old clients."},"durationSeconds":{"type":"number","description":"`meeting`, `transcription`, `video`, `meeting_tool`: recording length."},"output":{"type":"string","description":"`meeting`: `full` (default), `summary`, `key_points`, `transcript`. `video`: `subtitles`, `standard` (default), `premium`, `cloned` (the speaker's own voice)."},"glossary":{"type":"boolean","description":"`meeting`: a word list will be sent (transcription costs 20% more)."},"translate":{"type":"boolean","description":"`transcription`: also translate the transcript."},"songDubbing":{"type":"boolean","description":"`video` with a voice: songs will be sung in Persian (`songDubbing: true` on create). Adds the song allowance to the hold."},"songMode":{"type":"string","enum":["off","mixed","song_only"],"description":"`video` with a voice: `mixed` or `song_only` price the same as `songDubbing: true`."},"characters":{"type":"integer","description":"`farsi_tts`: length of the text. Or send `minutes`. `content_translation`: characters of text to translate."},"minutes":{"type":"number","description":"`farsi_tts`, `podcast`, `audiobook`: length of the audio. Podcast and audiobook default to the longest."},"tool":{"type":"string","description":"`meeting_tool`: `highlights`, `recap_email`, `ask`, `regenerate_minutes`, `revise_minutes`, `write_minutes`, `mindmap`, `document`, `analytics`."}},"additionalProperties":true},"EstimateResponse":{"type":"object","required":["feature","faraCharged","hold"],"properties":{"feature":{"type":"string"},"tool":{"type":"string"},"faraCharged":{"type":"number","description":"The expected charge in Fara."},"minutesBilled":{"type":"integer"},"hold":{"type":"number","description":"Fara held when the job is created."},"note":{"type":"string"}},"additionalProperties":true},"Transaction":{"type":"object","required":["id","type","amount","createdAt"],"properties":{"id":{"type":"string","description":"Transaction id. Also the pagination cursor."},"type":{"type":"string","description":"For example `credit_hold`, `credit_refund`, `translation_charge`, `video_charge`, `meeting_charge`, `audio_charge`, `farsi_tts_charge`, `transcription_charge`, `knowledge_charge`, `slides_charge`, `service_failure_refund`, `payment_chargeback`, or a top-up."},"amount":{"type":"number","description":"Size of the transaction in Fara. A settlement (`*_charge`) row is 0: the hold already took the Fara, and any overestimate comes back as its own `credit_refund` row. Read `chargedAmount` for what the work cost."},"balanceChange":{"type":["number","null"],"description":"Signed change to the spendable balance."},"balanceAfter":{"type":["number","null"],"description":"Spendable balance after this transaction."},"jobId":{"type":["string","null"],"description":"Ledger id of the job. Tools and resends use derived ids such as `slides-<jobId>-<time>`, `chunk-resend:<jobId>:<id>`, or `video-reprocess-<id>-<time>`."},"relatedJobId":{"type":["string","null"],"description":"The parent job this row belongs to (the plain job id, also for derived ledger ids)."},"description":{"type":["string","null"]},"externalId":{"type":"string","description":"Early access: the `externalId` of the job this row belongs to, when it has one."},"settlementStatus":{"type":"string","description":"Only on `credit_hold`: `reserved`, `pending_finalization`, `charged`, `released`, or `failed_reconciliation`."},"chargedAmount":{"type":"number","description":"On settlement rows: the Fara the work actually cost (can be above `heldAmount` when the difference was charged)."},"heldAmount":{"type":"number","description":"On settlement rows: the Fara that was held for it."},"createdAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"TransactionPage":{"type":"object","description":"One page of the Fara ledger, newest first.","required":["data","hasMore","nextCursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}},"hasMore":{"type":"boolean","description":"True when there are more items after this page."},"nextCursor":{"type":["string","null"],"description":"Pass as `startingAfter` to get the next page. Null on the last page."}},"additionalProperties":true},"Analysis":{"type":"object","description":"Result of document analysis. Nothing is charged for analysis.","required":["jobId","status"],"properties":{"jobId":{"type":"string","description":"Id of the analyzed job. Use it to start the translation."},"filename":{"type":"string"},"fileSize":{"type":["integer","null"],"description":"Bytes."},"pageCount":{"type":["integer","null"]},"wordCount":{"type":["integer","null"]},"charCount":{"type":["integer","null"]},"totalChunks":{"type":"integer","description":"Number of translation sections."},"paragraphCount":{"type":["integer","null"]},"quality":{"type":["string","null"]},"workflow":{"type":"string","description":"Default translation workflow."},"availableWorkflows":{"type":"array","items":{"type":"string"},"description":"Workflows you may pass to start."},"imageCount":{"type":"integer"},"scannedSource":{"type":"boolean","description":"True when the PDF has no text layer. The text is read from the page images when translation starts; wordCount and the price are estimated from the page count, and qualityPreviews is null."},"sourceLanguageNotice":{"type":"string","enum":["persian"],"description":"Present only as `persian` when the PDF text is already mostly Persian. Such a document can be translated into another language: send `targetLanguage` at start. qualityPreviews is null (no sample translation is made)."},"estimatedMinutes":{"type":["integer","null"],"description":"Minutes for fast delivery, from recent real chunk times (see `timeEstimate`)."},"estimatedPrice":{"type":["number","null"],"description":"Estimated price in Fara. Every translation runs fast; `qualityEstimates[].estimatedCostEconomy` is the same number."},"timeEstimate":{"type":"object","description":"How `estimatedMinutes` was computed: `totalMinutes`, `chunksPerBatch` (chunks that run at once), `estimatedBatches` (waves), `minutesPerChunk`, `sampleCount`, `isDefault`, `source` (`measured_median` or `fallback`). Display only.","additionalProperties":true},"qualityPreviews":{"type":["object","null"],"description":"Short sample translations of one passage, one entry per quality level. The entries have the same text now. Null when previews are off or all failed.","properties":{"sourceExcerpt":{"type":"object","description":"The English passage used: `text`, `sourceChunkNumber`, `totalChunks`, `charCount`, `wordCount`.","additionalProperties":true},"variants":{"type":"array","items":{"type":"object","properties":{"quality":{"type":"string","enum":["simple","medium","highest"]},"status":{"type":"string","description":"`ok` or `error`."},"text":{"type":"string","description":"Sample Persian translation. Empty on `error`."},"error":{"type":"string"},"processingTimeMs":{"type":["integer","null"]},"isEmpty":{"type":"boolean"}},"additionalProperties":true}},"generatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"qualityEstimates":{"type":"array","items":{"type":"object","required":["quality","estimatedCost","estimatedCostEconomy","estimatedMinutes"],"properties":{"quality":{"type":"string","enum":["simple","medium","highest"]},"estimatedCost":{"type":"number","description":"Fara for fast (`realtime`) delivery."},"estimatedCostEconomy":{"type":"number","description":"Kept for old clients. Equal to `estimatedCost`, because every translation runs fast."},"estimatedMinutes":{"type":"integer","description":"Minutes for fast delivery."}},"additionalProperties":true},"description":"Price and time per quality level; all three cost the same. Use this as the quote; the balance check at start is computed the same way."},"status":{"type":"string","description":"`analyzed`."},"freePreviewOffer":{"type":["object","null"],"description":"The free first pages: each verified account may translate the first pages of one PDF free, once. Start with `freePreview: true`. Null when switched off.","properties":{"available":{"type":"boolean","description":"True when this account can translate the first pages of this document free now."},"pages":{"type":"integer","description":"How many leading pages are free."},"freePages":{"type":"integer","description":"Free pages of this document (fewer when the document is shorter)."},"wholeDocument":{"type":"boolean","description":"The whole document fits in the free pages."},"reason":{"type":["string","null"],"description":"Why it is not available: `disabled`, `not_verified`, `used`, `rest_of_preview`, or null."}},"additionalProperties":true},"imageTranslation":{"type":"object","description":"Translating the text inside images (charts, diagrams, infographics). The number of images with text is known only after the document is read, so the price is per image and is added to the charge. Switch it off with `translateImages: false` at start.","properties":{"available":{"type":"boolean","description":"True when image translation can be chosen for this document."},"default":{"type":"boolean","description":"True: it is on unless the start request sends `translateImages: false`."},"pricePerImage":{"type":"number","description":"Expected price in Fara of one image that has text to translate. Images without text cost nothing."}},"additionalProperties":true},"previewOf":{"type":"string","description":"On the rest of a previewed book: the free preview job it follows. Its prices already take off the free pages' share."},"pageRangeOffer":{"type":["object","null"],"description":"On a whole-file analysis while the page-range feature is on: the chapters offered for POST /api/v1/translate/{jobId}/page-range. Absent on a part and while the feature is off.","properties":{"pageCount":{"type":"integer","description":"Pages in the file."},"chapters":{"type":["array","null"],"items":{"type":"object","properties":{"title":{"type":"string"},"from":{"type":"integer"},"to":{"type":"integer"}},"additionalProperties":true},"description":"Chapters from the PDF outline, in order. Null when the PDF has no usable outline."}},"additionalProperties":true},"pageRange":{"type":["object","null"],"description":"On a part of a file: the pages it covers. Absent on a whole file.","properties":{"from":{"type":"integer","description":"First page of the part (1-based)."},"to":{"type":"integer","description":"Last page of the part (1-based, inclusive)."},"totalPages":{"type":["integer","null"],"description":"Pages in the whole file."},"sourceJobId":{"type":["string","null"],"description":"The job the part was cut from, or null for an upload."}},"additionalProperties":true}},"additionalProperties":true},"AnalysisSession":{"type":"object","required":["analysisId","sseUrl"],"properties":{"analysisId":{"type":"string","description":"Id of this analysis. It becomes the job id when analysis finishes."},"filename":{"type":"string"},"fileSize":{"type":"integer"},"sseUrl":{"type":"string","description":"Path of the progress stream."}},"additionalProperties":true},"AnalysisProgressEvent":{"type":"object","description":"One Server-Sent Event `data:` payload. The stream ends after `complete` (which carries `analysis`) or `error`.","required":["type"],"properties":{"type":{"type":"string","description":"`phase`, `micro`, `preview`, `complete`, or `error`."},"phase":{"type":"string","description":"On `phase` events: `queued`, `upload`, `initialize`, `extract`, `analyze`, `chunk`, `finalize`, `ready`."},"progress":{"type":"number","description":"0-100 when known."},"position":{"type":"integer","description":"On `queued`: place in the line (1 = next)."},"message":{"type":"object","description":"Text to show, in English and Persian.","properties":{"en":{"type":"string"},"fa":{"type":"string"}},"additionalProperties":true},"analysis":{"$ref":"#/components/schemas/Analysis"},"code":{"type":"string","description":"On `error` events, for example `INVALID_PDF`, `EXTRACTION_EMPTY_OR_SCANNED`, `CONNECTION_TIMEOUT`."},"retryable":{"type":"boolean","description":"On `error` events: whether uploading again may work."},"timestamp":{"type":"integer","description":"Unix milliseconds."}},"additionalProperties":true},"ResumableUploads":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","description":"`analyzed` (ready to start) or `extracting` (analysis still running)."},"jobId":{"type":"string"},"analysisId":{"type":"string"},"filename":{"type":["string","null"]},"fileSize":{"type":["integer","null"]},"progress":{"type":"number"},"phase":{"type":"string"},"createdAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"description":"Newest first."}},"additionalProperties":true},"StartTranslationRequest":{"type":"object","properties":{"executionMode":{"type":"string","enum":["economy_batch","realtime"],"deprecated":true,"description":"Deprecated. Every translation runs fast: send `realtime`, or leave it out. `economy_batch` is still accepted and runs as `realtime`. Any other value answers 400 `INVALID_EXECUTION_MODE`."},"quality":{"type":"string","enum":["simple","medium","highest"],"deprecated":true,"description":"Deprecated. It no longer changes the result: the translation keeps the tone of the source. Still accepted, so old clients keep working."},"workflow":{"type":"string","description":"One of `availableWorkflows` from the analysis. Leave out for the default."},"freePreview":{"type":"boolean","description":"Translate only the first pages free (see `freePreviewOffer` in the analysis). Once per account; always fast delivery; no balance needed. 403 `FREE_PREVIEW_ALREADY_USED`, `FREE_PREVIEW_UNAVAILABLE` or `EMAIL_NOT_VERIFIED` when it cannot be used. A document in Persian kept in Persian (`targetLanguage` left out or `fa`) gets no free preview: 403 `FREE_PREVIEW_UNAVAILABLE`."},"targetLanguage":{"type":"string","enum":["fa","en","ar","de","fr","es","ru","tr","zh"],"description":"The language to translate into. Leave out for Persian (`fa`). Another language (`en`, `ar`, `de`, `fr`, `es`, `ru`, `tr`, `zh`) is accepted only for a document in Persian (`sourceLanguageNotice: \"persian\"` in the analysis); such a job runs in the standard mode, keeps every image as it is and makes no book summary. The rest of a free preview goes into the preview's language when this is left out."},"translateImages":{"type":"boolean","description":"Translate the text inside images (charts, diagrams, infographics). On by default. Each image with text adds about `imageTranslation.pricePerImage` Fara to the charge, paid from the balance left after the translation's own hold; images the balance does not cover keep their original picture. Send `false` to keep every image as it is, at no extra cost."}},"additionalProperties":true},"StartTranslationResponse":{"type":"object","required":["jobId","status"],"properties":{"jobId":{"type":"string"},"quality":{"type":"string"},"workflow":{"type":"string"},"executionMode":{"type":"string","enum":["economy_batch","realtime"]},"availableWorkflows":{"type":"array","items":{"type":"string"}},"message":{"type":"string"},"totalChunks":{"type":"integer"},"status":{"type":"string","description":"`pending`."},"freePreview":{"type":"boolean","description":"True when only the free first pages are translated."},"freePreviewPages":{"type":"integer","description":"On a free preview: how many leading pages are free."},"translateImages":{"type":"boolean","description":"Whether the text inside images is translated for this job."},"targetLanguage":{"type":"string","enum":["fa","en","ar","de","fr","es","ru","tr","zh"],"description":"The language the job translates into."}},"additionalProperties":true},"UploadRequest":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The PDF (up to 100 MB). When Word and EPUB input is on, a `.docx` or EPUB file is accepted too."},"pageFrom":{"type":"string","description":"Applies when the page-range feature is on (otherwise ignored): first page to translate, 1-based. Give it with `pageTo`; the file is cut to these pages before analysis, and the job is a part of the file."},"pageTo":{"type":"string","description":"Applies when the page-range feature is on (otherwise ignored): last page to translate, 1-based, inclusive."},"quality":{"type":"string","enum":["simple","medium","highest"],"deprecated":true,"description":"Deprecated. It no longer changes the result; the translation keeps the tone of the source. Still accepted."},"workflow":{"type":"string","description":"Translation workflow. Leave out for the default."}},"additionalProperties":true},"DocumentUrlRequest":{"type":"object","description":"JSON alternative to the upload form: the document comes from `fileUrl`.","required":["fileUrl"],"properties":{"fileUrl":{"type":"string","format":"uri","description":"An https link to the document (PDF, or Word `.docx` / EPUB when that input is on; up to 100 MB). We download it instead of an upload: any account, up to 3 redirects, private addresses refused. The file's bytes decide its type."},"pageFrom":{"type":"string","description":"As in the upload form (page-range feature)."},"pageTo":{"type":"string","description":"As in the upload form (page-range feature)."}},"additionalProperties":true},"AnalyzeRequest":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The PDF (up to 100 MB). When Word and EPUB input is on, a `.docx` or EPUB file is accepted too."},"quality":{"type":"string","enum":["simple","medium","highest"],"deprecated":true,"description":"Deprecated. Still accepted; it no longer changes the result."}},"additionalProperties":true},"UploadResponse":{"type":"object","required":["jobId","status"],"properties":{"jobId":{"type":"string"},"workflow":{"type":"string"},"availableWorkflows":{"type":"array","items":{"type":"string"}},"message":{"type":"string"},"totalChunks":{"type":"integer"},"status":{"type":"string","description":"`pending`."}},"additionalProperties":true},"TranslationJobSummary":{"type":"object","required":["jobId","status"],"properties":{"jobId":{"type":"string"},"status":{"type":"string","description":"`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":{"type":["string","null"]},"pageCount":{"type":["integer","null"]},"outputPageCount":{"type":["integer","null"],"description":"Pages in the Persian PDF, once made."},"wordCount":{"type":["integer","null"]},"charCount":{"type":["integer","null"]},"quality":{"type":["string","null"]},"workflow":{"type":["string","null"]},"availableWorkflows":{"type":"array","items":{"type":"string"}},"executionMode":{"type":"string","enum":["economy_batch","realtime"]},"economyBatchStage":{"type":["string","null"],"description":"Economy jobs: progress detail. Display only."},"economyBatchStatus":{"type":["string","null"],"description":"Economy jobs: progress detail. Display only."},"translationMode":{"type":"string","enum":["economy","standard"],"description":"Economy tier: `economy` or `standard`. Absent on jobs stored before the Economy tier."},"keepLayout":{"type":"boolean","description":"Economy tier: the page-design tick. Economy jobs have it off."},"summary":{"type":"boolean","description":"Economy tier: the book-summary tick."},"noSummary":{"type":"boolean","description":"Standard only: `true` when the translation was started without the book summary. Standard makes the summary unless this is set."},"expectedBy":{"type":["integer","null"],"description":"Economy jobs only: the promised time as ms since 1970-01-01 UTC. Null otherwise."},"canSwitchToStandard":{"type":"boolean","description":"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."},"economyFailure":{"type":["string","null"],"enum":["incomplete","extraction","unavailable",null],"description":"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."},"totalChunks":{"type":"integer"},"completedChunks":{"type":"integer"},"progress":{"type":"integer","description":"0-100."},"processingStage":{"type":["string","null"],"description":"`extracting`, `preparing`, `translating`, or null. Display only."},"translationStep":{"type":["integer","null"],"description":"Rough progress marker while translating. Display only; use `progress` for how far the job is."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"error":{"type":["string","null"],"description":"Always null for API keys."},"errorCode":{"type":["string","null"],"description":"Always null for API keys. Use `customerErrorCode`."},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"hasFailedChunks":{"type":"boolean"},"failedChunkCount":{"type":"integer"},"hasEmptyChunks":{"type":"boolean"},"emptyChunkCount":{"type":"integer"},"hasQualityWarnings":{"type":"boolean"},"qualityWarningCount":{"type":"integer"},"outputWarnings":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Always empty for API keys."},"outputWarningCount":{"type":"integer"},"userRetryCount":{"type":"integer"},"retryLocked":{"type":"boolean","description":"True when no more retries are possible from your side."},"adminReviewRequired":{"type":"boolean"},"reviewReasonCode":{"type":["string","null"]}},"additionalProperties":true},"TranslationJobList":{"type":"object","required":["jobs","total","page","totalPages"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/TranslationJobSummary"}},"total":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"},"limit":{"type":"integer"}},"additionalProperties":true},"ImageChoice":{"type":"object","description":"The pictures with text that wait for the customer's choice. Only while the job is `images_waiting`.","required":["count","priceFara","perImageFara","fundsFara","shortFara","coverableCount","coverablePriceFara","choices"],"properties":{"count":{"type":"integer","description":"Pictures with text to translate."},"priceFara":{"type":"integer","description":"Fara to translate all of them."},"perImageFara":{"type":"integer","description":"Fara per picture."},"fundsFara":{"type":"integer","description":"Fara the balance covers for pictures now."},"shortFara":{"type":"integer","description":"Fara still missing for all of them (0 when covered)."},"coverableCount":{"type":"integer","description":"Pictures the balance covers (the `part` choice)."},"coverablePriceFara":{"type":"integer","description":"Fara for the `part` choice."},"expiresAt":{"type":["string","null"],"format":"date-time","description":"When the job stops waiting and goes on without the pictures."},"choices":{"type":"array","items":{"type":"string","enum":["all","part","none"]},"description":"`part` is listed only when it covers some but not all pictures."}},"additionalProperties":true},"TranslationJob":{"type":"object","description":"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.","required":["jobId","status"],"properties":{"jobId":{"type":"string"},"status":{"type":"string","description":"`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":{"type":["string","null"]},"fileId":{"type":"string","description":"Id of the stored original PDF."},"sourceFormat":{"type":["string","null"],"description":"Only for a Word or EPUB upload: `docx` or `epub`, the format the PDF was made from. Null for a PDF upload."},"pageCount":{"type":["integer","null"]},"outputPageCount":{"type":["integer","null"]},"wordCount":{"type":["integer","null"]},"charCount":{"type":["integer","null"]},"quality":{"type":["string","null"]},"workflow":{"type":["string","null"]},"availableWorkflows":{"type":"array","items":{"type":"string"}},"executionMode":{"type":"string","enum":["economy_batch","realtime"]},"economyBatchStage":{"type":["string","null"],"description":"Economy jobs: progress detail. Display only."},"economyBatchStatus":{"type":["string","null"],"description":"Economy jobs: progress detail. Display only."},"translationMode":{"type":"string","enum":["economy","standard"],"description":"Economy tier: `economy` or `standard`. Absent on jobs stored before the Economy tier."},"keepLayout":{"type":"boolean","description":"Economy tier: the page-design tick. Economy jobs have it off."},"summary":{"type":"boolean","description":"Economy tier: the book-summary tick."},"noSummary":{"type":"boolean","description":"Standard only: `true` when the translation was started without the book summary. Standard makes the summary unless this is set."},"expectedBy":{"type":["integer","null"],"description":"Economy jobs only: the promised time as ms since 1970-01-01 UTC. Null otherwise."},"canSwitchToStandard":{"type":"boolean","description":"Economy tier: true when this failed Economy job can be switched to Standard (the retry call with `translationMode: \"standard\"`). Always false otherwise."},"economyFailure":{"type":["string","null"],"enum":["incomplete","extraction","unavailable",null],"description":"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."},"totalChunks":{"type":"integer"},"completedChunks":{"type":"integer"},"progress":{"type":"integer","description":"0-100."},"processingStage":{"type":["string","null"],"description":"`extracting`, `preparing`, `translating`, or null. Display only."},"translationStep":{"type":["integer","null"],"description":"Rough progress marker while translating. Display only; use `progress` for how far the job is."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"error":{"type":["string","null"],"description":"Always null for API keys."},"errorCode":{"type":["string","null"],"description":"Always null for API keys. Use `customerErrorCode`."},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"outputs":{"type":["object","null"],"description":"Present once the job is `completed` or `completed_partial`. Download with GET /api/v1/translate/download/{jobId}/{type}.","properties":{"docx":{"type":["string","null"],"description":"Set when a DOCX exists."},"pdf":{"type":["string","null"],"description":"Set when a PDF exists."}},"additionalProperties":true},"hasFailedChunks":{"type":"boolean"},"failedChunkCount":{"type":"integer"},"hasEmptyChunks":{"type":"boolean"},"emptyChunkCount":{"type":"integer"},"hasQualityWarnings":{"type":"boolean"},"qualitySummary":{"type":["object","null"],"description":"Quality summary. Informational.","additionalProperties":true},"outputWarnings":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Informational notes about the output files."},"outputWarningCount":{"type":"integer"},"userRetryCount":{"type":"integer"},"retryLocked":{"type":"boolean"},"adminReviewRequired":{"type":"boolean"},"reviewReasonCode":{"type":["string","null"]},"images":{"anyOf":[{"$ref":"#/components/schemas/ImageChoice"},{"type":"null"}],"description":"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":{"type":"string","description":"Internal detail. Ignore."}},"additionalProperties":true},"TranslationStatus":{"type":"object","required":["jobId","status"],"properties":{"jobId":{"type":"string"},"status":{"type":"string","description":"`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":{"type":["string","null"]},"pageCount":{"type":["integer","null"]},"outputPageCount":{"type":["integer","null"]},"wordCount":{"type":["integer","null"]},"charCount":{"type":["integer","null"]},"paragraphCount":{"type":["integer","null"]},"quality":{"type":["string","null"]},"workflow":{"type":["string","null"]},"availableWorkflows":{"type":"array","items":{"type":"string"}},"estimatedPrice":{"type":"number","description":"Estimated price in Fara. Before start: the fast price. After start: the price of the chosen delivery."},"estimatedPriceEconomy":{"type":["number","null"],"description":"Only while `analyzed`. Kept for old clients; every translation runs fast, so use `estimatedPrice`."},"executionMode":{"type":"string","enum":["economy_batch","realtime"]},"translationMode":{"type":"string","enum":["economy","standard"],"description":"Economy tier: `economy` or `standard`. Absent on jobs stored before the Economy tier."},"keepLayout":{"type":"boolean","description":"Economy tier: the page-design tick. Economy jobs have it off."},"summary":{"type":"boolean","description":"Economy tier: the book-summary tick."},"noSummary":{"type":"boolean","description":"Standard only: `true` when the translation was started without the book summary. Standard makes the summary unless this is set."},"expectedBy":{"type":["integer","null"],"description":"Economy jobs only: the promised time as ms since 1970-01-01 UTC. Null otherwise."},"canSwitchToStandard":{"type":"boolean","description":"Economy tier: true when this failed Economy job can be switched to Standard (the retry call with `translationMode: \"standard\"`). Always false otherwise."},"economyFailure":{"type":["string","null"],"enum":["incomplete","extraction","unavailable",null],"description":"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."},"translateImages":{"type":"boolean","description":"Whether the text inside images is translated for this job (the choice sent at start; true before start)."},"targetLanguage":{"type":"string","enum":["fa","en","ar","de","fr","es","ru","tr","zh"],"description":"The language the job translates into (`fa` unless another language was sent at start)."},"sourceLanguageNotice":{"type":"string","enum":["persian"],"description":"Present only as `persian` for a document in Persian (see the analysis)."},"suggestedTargetLanguage":{"type":"string","enum":["en","ar","de","fr","es","ru","tr","zh"],"description":"A document in Persian waiting at the price screen only: the language to offer first (the free preview's language for the rest of a previewed book, else `en`)."},"pageRangeOffer":{"type":["object","null"],"description":"On a whole-file job while the page-range feature is on: the chapters offered for POST /api/v1/translate/{jobId}/page-range. Absent on a part and while the feature is off.","properties":{"pageCount":{"type":"integer","description":"Pages in the file."},"chapters":{"type":["array","null"],"items":{"type":"object","properties":{"title":{"type":"string"},"from":{"type":"integer"},"to":{"type":"integer"}},"additionalProperties":true},"description":"Chapters from the PDF outline, in order. Null when the PDF has no usable outline."}},"additionalProperties":true},"pageRange":{"type":["object","null"],"description":"On a part of a file: the pages it covers. Absent on a whole file.","properties":{"from":{"type":"integer","description":"First page of the part (1-based)."},"to":{"type":"integer","description":"Last page of the part (1-based, inclusive)."},"totalPages":{"type":["integer","null"],"description":"Pages in the whole file."},"sourceJobId":{"type":["string","null"],"description":"The job the part was cut from, or null for an upload."}},"additionalProperties":true},"imageTranslation":{"type":["object","null"],"description":"Translating the text inside images (charts, diagrams, infographics). The number of images with text is known only after the document is read, so the price is per image and is added to the charge. Switch it off with `translateImages: false` at start.","properties":{"available":{"type":"boolean","description":"True when image translation can be chosen for this document."},"default":{"type":"boolean","description":"True: it is on unless the start request sends `translateImages: false`."},"pricePerImage":{"type":"number","description":"Expected price in Fara of one image that has text to translate. Images without text cost nothing."}},"additionalProperties":true},"totalChunks":{"type":"integer"},"completedChunks":{"type":"integer"},"processingStage":{"type":["string","null"],"description":"`extracting`, `preparing`, `translating`, or null. Display only."},"translationStep":{"type":["integer","null"],"description":"Rough progress marker while translating. Display only; use `progress` for how far the job is."},"progress":{"type":"integer","description":"0-100."},"createdAt":{"type":["string","null"],"format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"error":{"type":["string","null"],"description":"Always null for API keys."},"errorCode":{"type":["string","null"],"description":"Always null for API keys. Use `customerErrorCode`."},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"userRetryCount":{"type":"integer"},"retryLocked":{"type":"boolean"},"adminReviewRequired":{"type":"boolean"},"reviewReasonCode":{"type":["string","null"]},"outputs":{"type":["object","null"],"properties":{"docx":{"type":["string","null"]},"pdf":{"type":["string","null"]}},"additionalProperties":true},"hasEmptyChunks":{"type":"boolean"},"emptyChunkCount":{"type":"integer"},"emptyChunkNumbers":{"type":"array","items":{"type":"integer"}},"hasFailedChunks":{"type":"boolean"},"failedChunkCount":{"type":"integer"},"failedChunkNumbers":{"type":"array","items":{"type":"integer"}},"images":{"anyOf":[{"$ref":"#/components/schemas/ImageChoice"},{"type":"null"}],"description":"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."},"retryableChunkCount":{"type":"integer"},"retryableChunkNumbers":{"type":"array","items":{"type":"integer"}},"failedChunksDetail":{"type":"array","items":{"type":"object","properties":{"chunkNumber":{"type":"integer"},"error":{"type":"string","description":"Text for logs. Do not parse. Not always present."},"isTimeout":{"type":"boolean"},"isCircuitOpen":{"type":"boolean"},"retryable":{"type":"boolean"},"failedAt":{"type":"string","description":"Not always present."}},"additionalProperties":true},"description":"One entry per section that did not translate."},"hasQualityWarnings":{"type":"boolean"},"qualitySummary":{"type":["object","null"],"description":"Quality summary.","additionalProperties":true},"qualityFlaggedChunkNumbers":{"type":"array","items":{"type":"integer"}},"outputWarnings":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Always empty for API keys."},"outputWarningCount":{"type":"integer"},"source":{"type":"string","description":"Internal detail. Ignore."},"freePreviewOffer":{"type":["object","null"],"description":"The free first pages: each verified account may translate the first pages of one PDF free, once. Only while `analyzed`; null otherwise or when switched off.","properties":{"available":{"type":"boolean","description":"True when this account can translate the first pages of this document free now."},"pages":{"type":"integer","description":"How many leading pages are free."},"freePages":{"type":"integer","description":"Free pages of this document (fewer when the document is shorter)."},"wholeDocument":{"type":"boolean","description":"The whole document fits in the free pages."},"reason":{"type":["string","null"],"description":"Why it is not available: `disabled`, `not_verified`, `used`, `rest_of_preview`, or null."}},"additionalProperties":true},"freePreview":{"type":["object","null"],"description":"On a free preview job; null on other jobs.","properties":{"pages":{"type":["integer","null"],"description":"Free pages translated."},"totalPages":{"type":["integer","null"],"description":"Pages in the whole document."},"hasRest":{"type":"boolean","description":"The document has pages after the free part."},"restEstimatedPrice":{"type":["number","null"],"description":"About what the rest costs, in Fara, at the default delivery."},"restJobId":{"type":["string","null"],"description":"The job made by POST /api/v1/translate/{jobId}/translate-rest, once made."}},"additionalProperties":true},"previewOf":{"type":["string","null"],"description":"On the rest of a previewed book: the free preview job it follows."}},"additionalProperties":true},"RetryResponse":{"type":"object","required":["jobId","status"],"properties":{"message":{"type":"string"},"jobId":{"type":"string"},"status":{"type":"string","description":"`pending`."}},"additionalProperties":true},"RecoverRequest":{"type":"object","properties":{"forceRegenerate":{"type":"boolean","description":"Rebuild the output files even if they exist."},"forceRequeue":{"type":"boolean","description":"Admin only. From an API key it answers 403 `ADMIN_REVIEW_REQUIRED`."}},"additionalProperties":true},"RecoverResponse":{"type":"object","required":["jobId","recovery"],"properties":{"jobId":{"type":"string"},"currentStatus":{"type":"string"},"hasBilingualContent":{"type":"boolean"},"hasChunks":{"type":"boolean"},"chunkCount":{"type":"integer"},"totalChunks":{"type":"integer"},"hasDocxFile":{"type":"boolean"},"hasPdfFile":{"type":"boolean"},"completedChunks":{"type":"integer"},"recovery":{"type":"object","required":["success","action"],"properties":{"success":{"type":"boolean"},"action":{"type":"string","description":"What recovery did: `reattached_running_execution`, `update_status`, `regenerate_outputs`, `requeue_job`, or `no_data`."},"newStatus":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true},"ResendChunksRequest":{"type":"object","properties":{"revision":{"type":"integer","description":"Optional: the `revision` from GET /api/v1/translate/{jobId}/bilingual. If the translation changed since, you get 409 `STALE_REVISION`."}},"additionalProperties":true},"ResendChunksResponse":{"type":"object","properties":{"jobId":{"type":"string"},"type":{"type":"string"},"retryableOnly":{"type":"boolean"},"totalResent":{"type":"integer","description":"Sections sent again."},"successCount":{"type":"integer"},"failedCount":{"type":"integer"},"stillEmptyCount":{"type":"integer"},"stillEmpty":{"type":"array","items":{"type":"string"}},"stillFailed":{"type":"array","items":{"type":"string"}},"regenerated":{"type":"boolean","description":"True when the output files were rebuilt."},"regenerationError":{"type":["string","null"]},"warnings":{"type":"array","items":{"type":"object","additionalProperties":true}},"results":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"string"},"success":{"type":"boolean"},"errorCode":{"type":"string"},"retryable":{"type":"boolean"},"error":{"type":"string"}},"additionalProperties":true},"description":"One entry per section tried."},"retryLocked":{"type":"boolean","description":"Present and true when sections still failed: the job is now locked for our team."},"adminReviewRequired":{"type":"boolean"},"reviewReasonCode":{"type":"string"}},"additionalProperties":true},"RegenerateRequest":{"type":"object","properties":{"revision":{"type":"integer","description":"Optional: the `revision` you last read. Mismatch gives 409 `STALE_REVISION`."}},"additionalProperties":true},"RegenerateResponse":{"type":"object","properties":{"success":{"type":"boolean"},"docxFileId":{"type":"string"},"pdfFileId":{"type":["string","null"]},"pdfGenerated":{"type":"boolean"},"regeneratedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"BilingualContent":{"type":"object","required":["jobId","paragraphs"],"properties":{"jobId":{"type":"string"},"filename":{"type":"string"},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"revision":{"type":"integer","description":"Changes each time the translation is edited or re-translated."},"status":{"type":"string"},"paragraphs":{"type":"array","items":{"type":"object","properties":{"sequenceNumber":{"type":"integer"},"english":{"type":"string"},"farsi":{"type":"string"},"farsiEdited":{"type":["string","null"]},"isHeading":{"type":"boolean"},"headingLevel":{"type":["integer","null"]}},"additionalProperties":true}},"metadata":{"type":"object","description":"Document details and the price paid.","additionalProperties":true},"detectedSections":{"type":"array","items":{"type":"object","additionalProperties":true}},"documentTitle":{"type":["string","null"]}},"additionalProperties":true},"PageRangeRequest":{"type":"object","properties":{"pageFrom":{"type":"integer","description":"First page to translate (1-based, inclusive). Give with `pageTo`."},"pageTo":{"type":"integer","description":"Last page to translate (1-based, inclusive)."},"chapters":{"type":"array","items":{"type":"integer","minimum":0},"description":"Or: indexes of consecutive chapters from the job's `pageRangeOffer.chapters`, instead of pages."}},"additionalProperties":true},"CustomPdfRequest":{"type":"object","properties":{"styles":{"type":"object","description":"Style options. See GET /api/v1/translate/pdf-styles for fields and ranges (for example `fontSize`, `lineHeight`, `textAlign`, `coverStyle`, margins).","additionalProperties":true},"title":{"type":"string","description":"Title on the cover and header."},"showHeader":{"type":"boolean","description":"Default true."},"printQuality":{"type":"boolean","description":"True for full-resolution figures (bigger file)."}},"additionalProperties":true},"FarsiBookRequest":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"A PDF that already contains Persian text (up to 100 MB)."},"title":{"type":"string"},"showHeader":{"type":"string","description":"`true` or `false`."},"styles":{"type":"string","description":"JSON string of style options (see GET /api/v1/translate/pdf-styles)."}},"additionalProperties":true},"MagazineRequest":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The PDF (up to 100 MB)."},"mode":{"type":"string","description":"Layout mode. Default `phase1`."},"quality":{"type":"string","enum":["simple","medium","highest"],"deprecated":true,"description":"Deprecated. Does not change the result."}},"additionalProperties":true},"TranslationHistory":{"type":"object","required":["jobs","total","page","totalPages"],"properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"filename":{"type":"string"},"displayName":{"type":["string","null"],"description":"The name the customer gave the job (null: the original name is shown)."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"status":{"type":"string"},"executionMode":{"type":"string"},"totalChunks":{"type":["integer","null"],"description":"Chunks in the job, when known."},"completedChunks":{"type":["integer","null"],"description":"Chunks finished so far, when known."},"pageCount":{"type":["integer","null"],"description":"Pages in the PDF, when known."},"paragraphCount":{"type":"integer"},"englishWordCount":{"type":"integer"},"farsiWordCount":{"type":"integer"},"outputsGenerated":{"type":"boolean"},"hasLinkedInPosts":{"type":"boolean"},"hasSlides":{"type":"boolean"},"hasMindmap":{"type":"boolean"},"hasSummary":{"type":"boolean"},"hasPodcast":{"type":"boolean"},"hasAudiobook":{"type":"boolean"}},"additionalProperties":true}},"total":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"}},"additionalProperties":true},"FeatureBilling":{"type":"object","properties":{"faraCost":{"type":"number","description":"Fara charged for this generation. 0 when it was included in the translation."},"billing":{"type":"string","description":"`charged` or `included_in_translation`."}},"additionalProperties":true},"LinkedInPosts":{"type":"object","properties":{"jobId":{"type":"string"},"totalPosts":{"type":"integer"},"processedAt":{"type":["string","null"],"format":"date-time"},"posts":{"type":"array","items":{"type":"object","description":"One post.","additionalProperties":true}},"metadata":{"type":"object","additionalProperties":true},"faraCost":{"type":"number"},"billing":{"type":"string"},"heldFara":{"type":"number","description":"Fara held before the work. Only when the price-first switch is on, on the POST answer."},"refundedFara":{"type":"number","description":"Fara given back from the hold (held minus charged). Only when the price-first switch is on, on the POST answer."},"saved":{"type":"boolean"},"savedAt":{"type":["string","null"],"format":"date-time"},"warning":{"type":"string"}},"additionalProperties":true},"Proofreading":{"type":"object","properties":{"jobId":{"type":"string"},"hasProofreading":{"type":"boolean"},"edits":{"type":["object","null"],"properties":{"vocabulary":{"type":"array","items":{"type":"object","additionalProperties":true}},"substitutions":{"type":"array","items":{"type":"object","additionalProperties":true}},"paragraphs":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"summary":{"type":["object","null"],"additionalProperties":true},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"},"appliedAt":{"type":["string","null"],"format":"date-time"},"faraCost":{"type":"number"},"billing":{"type":"string"},"saved":{"type":"boolean"}},"additionalProperties":true},"Slides":{"type":"object","properties":{"jobId":{"type":"string"},"hasSlides":{"type":"boolean"},"slides":{"type":"array","items":{"type":"object","description":"One slide.","additionalProperties":true}},"metadata":{"type":"object","additionalProperties":true},"faraCost":{"type":"number"},"billing":{"type":"string"},"heldFara":{"type":"number","description":"Fara held before the work. Only when the price-first switch is on, on the POST answer."},"refundedFara":{"type":"number","description":"Fara given back from the hold (held minus charged). Only when the price-first switch is on, on the POST answer."},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"},"pptxFileId":{"type":["string","null"]},"slidesPdfFileId":{"type":["string","null"]},"filesGeneratedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"SlidesFilesRequest":{"type":"object","properties":{"pptxStyle":{"type":"string","description":"Style id from GET /api/v1/translate/slides/design-styles (`pptx.styles`)."},"pdfStyle":{"type":"string","description":"Style id from GET /api/v1/translate/slides/design-styles (`pdf.styles`)."}},"additionalProperties":true},"SlidesFiles":{"type":"object","properties":{"jobId":{"type":"string"},"pptxFileId":{"type":"string"},"slidesPdfFileId":{"type":"string"},"styles":{"type":"object","properties":{"pptxStyle":{"type":"string"},"pdfStyle":{"type":"string"}},"additionalProperties":true},"faraCost":{"type":"number","description":"Always 0: making files is free."},"pptxSize":{"type":"integer"},"slidesPdfSize":{"type":"integer"},"generated":{"type":"boolean"}},"additionalProperties":true},"Mindmap":{"type":"object","properties":{"jobId":{"type":"string"},"hasMindmap":{"type":"boolean"},"title":{"type":"string"},"root":{"type":["object","null"],"description":"Root node. Each node has a label and `children`.","additionalProperties":true},"nodeCount":{"type":"integer"},"metadata":{"type":"object","additionalProperties":true},"faraCost":{"type":"number"},"billing":{"type":"string"},"heldFara":{"type":"number","description":"Fara held before the work. Only when the price-first switch is on, on the POST answer."},"refundedFara":{"type":"number","description":"Fara given back from the hold (held minus charged). Only when the price-first switch is on, on the POST answer."},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MindmapPdfRequest":{"type":"object","properties":{"title":{"type":"string"},"harmonyId":{"type":"string","description":"Color set id from GET /api/v1/translate/mindmap/spec."}},"additionalProperties":true},"Digest":{"type":"object","properties":{"jobId":{"type":"string"},"hasDigest":{"type":"boolean"},"hasSummary":{"type":"boolean"},"digest":{"type":"string","description":"Persian summary text."},"digestChars":{"type":"integer"},"coverage":{"type":"string","description":"`full` or `partial`."},"truncated":{"type":"boolean"},"status":{"type":["string","null"]},"faraCost":{"type":"number"},"billing":{"type":"string"},"savedAt":{"type":["string","null"],"format":"date-time"},"brief":{"type":["object","null"],"description":"Short card: `title`, `kind`, `summary`, `points` (3 to 5 strings), `takeaway`, `audience`. Null until ready.","additionalProperties":true},"briefStatus":{"type":"string","enum":["ready","preparing","unavailable"],"description":"`ready`, `preparing` (being made in the background now), or `unavailable` (could not be made)."}},"additionalProperties":true},"SummaryPdfRequest":{"type":"object","properties":{"styles":{"type":"object","description":"Style options, as for custom PDFs.","additionalProperties":true},"title":{"type":"string"},"showHeader":{"type":"boolean"}},"additionalProperties":true},"AudioFeature":{"type":"object","properties":{"jobId":{"type":"string"},"hasPodcast":{"type":"boolean"},"hasAudiobook":{"type":"boolean"},"title":{"type":"string"},"text":{"type":"string"},"audioFileId":{"type":["string","null"]},"audioDownloadPath":{"type":"string","description":"Where to download the audio."},"audioContentType":{"type":"string"},"audioExtension":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"VideoVoices":{"type":"object","properties":{"voices":{"type":"object","description":"Voice sets by `voiceSet` key (`standard`, `premium`). Each voice has `id`, `gender` and `label`.","additionalProperties":true},"catalog":{"type":"array","items":{"$ref":"#/components/schemas/CatalogVoice"},"description":"Every stock voice. Send its `id` as `voiceId`."},"moods":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMood"},"description":"Moods. Send an `id` as `voiceMood`."}},"additionalProperties":true},"CatalogVoice":{"type":"object","required":["id","gender"],"properties":{"id":{"type":"string","description":"Voice id, for example `female-warm`."},"gender":{"type":"string","enum":["male","female"]},"labelFa":{"type":"string","description":"Name in Persian."},"labelEn":{"type":"string","description":"Name in English."},"lineFa":{"type":"string","description":"One-line description in Persian."},"lineEn":{"type":"string","description":"One-line description in English."},"previewUrl":{"type":"string","description":"Path of a short Persian sample (MP3) on this site."},"default":{"type":"boolean","description":"The voice used for this gender when you send only `male` or `female`."}},"additionalProperties":true},"VoiceMood":{"type":"object","required":["id"],"properties":{"id":{"type":"string","enum":["neutral","friendly","formal","happy","sad","calm","energetic","serious"]},"labelFa":{"type":"string"},"labelEn":{"type":"string"}},"additionalProperties":true},"VoiceCatalog":{"type":"object","required":["voices","moods"],"properties":{"voices":{"type":"array","items":{"$ref":"#/components/schemas/CatalogVoice"}},"moods":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMood"}}},"additionalProperties":true},"VideoPreferences":{"type":"object","properties":{"preferences":{"type":"object","properties":{"reviewBeforeRender":{"type":"boolean","description":"Stop at `awaiting_review` before the final video is made."}},"additionalProperties":true},"reviewAutoContinueSeconds":{"type":"integer","description":"If you do not act, review continues by itself after this many seconds (0 = never)."}},"additionalProperties":true},"VideoEstimateRequest":{"type":"object","description":"Send `url` or `uploadId`.","properties":{"url":{"type":"string","description":"YouTube link. Send this or `uploadId`, not both."},"uploadId":{"type":"string","description":"A finished chunked upload of a video file (`purpose: video`). Reading it does not use it up."},"startSeconds":{"type":"number","description":"Optional. Start of the part to translate, in whole seconds from the start of the video. Leave out to start at 0. The part must be at least 5 seconds and inside the video. A range that covers the whole video is the same as no range. Errors: 400 `INVALID_VIDEO_RANGE`, `VIDEO_RANGE_OUT_OF_BOUNDS`, `VIDEO_RANGE_TOO_SHORT`."},"endSeconds":{"type":"number","description":"Optional. End of the part to translate, in whole seconds from the start of the video. Leave out to run to the end. Must be after `startSeconds`."}},"additionalProperties":true},"VideoEstimate":{"type":"object","description":"Prices for each output type: subtitles only, dubbed voice with each voice set, and the premium set dubbed in the speaker's own voice (`voiceCloneMode: \"source\"`).","properties":{"title":{"type":"string"},"durationSeconds":{"type":"number","description":"Length that is priced: the selected part, or the whole video when no range was sent."},"sourceDurationSeconds":{"type":"number","description":"Length of the whole video."},"startSeconds":{"type":["number","null"],"description":"Start of the selected part; null for the whole video."},"endSeconds":{"type":["number","null"],"description":"End of the selected part; null for the whole video."},"sourceVoiceMinSeconds":{"type":"number","description":"Shortest length, in seconds, that can be copied for the speaker's own voice (`voiceCloneMode: \"source\"`). A shorter part (or whole video) cannot use that option."},"costSubtitles":{"$ref":"#/components/schemas/PublicJobCost"},"costStandardVoice":{"$ref":"#/components/schemas/PublicJobCost"},"costPremiumVoice":{"$ref":"#/components/schemas/PublicJobCost"},"costClonedVoice":{"$ref":"#/components/schemas/PublicJobCost"},"withSongDubbing":{"type":"object","description":"The same dubbed-voice prices with `songDubbing: true`. This is what the create call holds. Missing when song dubbing is not offered right now; a create with `songDubbing: true` then answers 409 `SONG_DUBBING_UNAVAILABLE`.","properties":{"costStandardVoice":{"$ref":"#/components/schemas/PublicJobCost"},"costPremiumVoice":{"$ref":"#/components/schemas/PublicJobCost"},"costClonedVoice":{"$ref":"#/components/schemas/PublicJobCost"}},"additionalProperties":true}},"additionalProperties":true},"VideoCreateRequest":{"type":"object","description":"Send `url` or `uploadId`. Add `startSeconds` / `endSeconds` to translate only part of the video; the hold and the price cover that part.","required":["outputMode"],"properties":{"url":{"type":"string","description":"YouTube link. Send this or `uploadId`, not both."},"uploadId":{"type":"string","description":"A finished chunked upload of a video file (`purpose: video`): MP4, MOV, MKV, WebM or AVI with a sound track. A refused create leaves the upload open, so it can be used again."},"outputMode":{"type":"string","enum":["farsi_subs","farsi_voice","farsi_voice_subs"],"description":"`farsi_subs` (Persian subtitles), `farsi_voice` (Persian voice), or `farsi_voice_subs` (both)."},"voiceSet":{"type":"string","enum":["standard","premium"],"description":"Voice set, required for voice modes. A key of `voices` from GET /api/v1/video/voices."},"voiceId":{"type":"string","description":"A voice `id` from `catalog` in GET /api/v1/video/voices (for example `female-warm`), or `male` / `female` for that gender's default. Any other value is refused. Default `male`. When dubbing in the speaker's own voice, only its gender is used, for speakers that cannot be copied."},"voiceGender":{"type":"string","enum":["male","female"],"description":"Used when `voiceId` is left out."},"voiceMood":{"type":"string","enum":["auto","neutral","friendly","formal","happy","sad","calm","energetic","serious"],"description":"Mood of the Persian voice and translation. `auto` (default) takes it from what is said in the video. Ignored for `farsi_subs`."},"downloadQuality":{"type":"string","enum":["best","360p","480p","720p","1080p"],"description":"Source video quality for a YouTube link. Default `best`. Ignored for an upload."},"voiceCloneMode":{"type":"string","enum":["stock","source"],"description":"`source` keeps the speaker's own voice (needs `voiceSet: \"premium\"` and `voiceCloneConsent: true`). Default `stock`."},"voiceCloneConsent":{"type":"boolean","description":"You confirm you have the right to reuse the speaker's voice."},"songDubbing":{"type":"boolean","description":"When a dubbed video contains a song, sing it again in Persian with the translated lyrics. Spoken lines stay spoken. Default false. Ignored for `farsi_subs`. The hold is the `withSongDubbing` price from the estimate; you pay only for songs that were sung. 409 `SONG_DUBBING_UNAVAILABLE` when it is not offered right now. Same as `songMode: \"mixed\"`."},"songMode":{"type":"string","enum":["off","mixed","song_only"],"description":"`off` (default): songs are spoken like the rest. `mixed`: songs found in the video are sung in Persian and speech stays spoken. `song_only`: the whole video is a song; every line is sung and no song detection runs. Wins over `songDubbing`. Priced and held like `songDubbing: true`. Ignored for `farsi_subs`."},"burnCaptions":{"type":"boolean","description":"Draw subtitles into the picture. False gives a separate captions track."},"reviewBeforeRender":{"type":"boolean","description":"Stop for review before the final video. Leave out to use your saved preference."},"startSeconds":{"type":"number","description":"Optional. Start of the part to translate, in whole seconds from the start of the video. Leave out to start at 0. The part must be at least 5 seconds and inside the video. A range that covers the whole video is the same as no range. Errors: 400 `INVALID_VIDEO_RANGE`, `VIDEO_RANGE_OUT_OF_BOUNDS`, `VIDEO_RANGE_TOO_SHORT`."},"endSeconds":{"type":"number","description":"Optional. End of the part to translate, in whole seconds from the start of the video. Leave out to run to the end. Must be after `startSeconds`."}},"additionalProperties":true},"VideoCreateResponse":{"type":"object","required":["jobId"],"properties":{"jobId":{"type":"string"},"cost":{"$ref":"#/components/schemas/PublicJobCost"}},"additionalProperties":true},"VideoJob":{"type":"object","required":["_id","status"],"properties":{"_id":{"type":"string","description":"Job id."},"displayName":{"type":["string","null"],"description":"The name the customer gave the job (null: the original name is shown)."},"status":{"type":"string","description":"`pending`, `active`, `awaiting_review` (waiting for your edits and approval), `retrying`, `finalizing`, `pending_finalization`, and the end states `completed`, `failed`, `cancelled`. Treat any other value as still running."},"stage":{"type":"string","description":"Rough step, for progress display."},"progress":{"type":"number","description":"0-100."},"sourceType":{"type":"string","enum":["youtube","upload"],"description":"Where the video came from."},"sourceUrl":{"type":"string","description":"The YouTube link. Null for an upload."},"originalFilename":{"type":"string","description":"The uploaded file's name. Null for a YouTube link."},"videoTitle":{"type":"string"},"durationSeconds":{"type":"number","description":"Length that is processed and priced: the selected part, or the whole video."},"sourceDurationSeconds":{"type":"number","description":"Length of the whole source video."},"startSeconds":{"type":["number","null"],"description":"Start of the selected part in seconds; null when the whole video is translated."},"endSeconds":{"type":["number","null"],"description":"End of the selected part in seconds; null when the whole video is translated."},"outputMode":{"type":"string"},"songDubbing":{"type":"boolean","description":"True when songs in this video are sung again in Persian."},"songMode":{"type":"string","enum":["off","mixed","song_only"],"description":"How songs are handled."},"voiceGender":{"type":["string","null"]},"voiceKey":{"type":["string","null"],"description":"The chosen stock voice `id`."},"voiceMood":{"type":["string","null"],"description":"The chosen mood, or `auto`."},"detectedMood":{"type":["string","null"],"description":"With `auto`: the mood taken from the video, once it is known."},"downloadQuality":{"type":"string"},"reviewBeforeRender":{"type":"boolean"},"reviewVersion":{"type":"integer","description":"Send as `If-Match` when editing or approving the review."},"reviewAutoContinueAt":{"type":["string","null"],"format":"date-time","description":"While `awaiting_review`: when review continues by itself if you do not act. Null when it never does."},"reviewAutoContinuedAt":{"type":["string","null"],"format":"date-time","description":"When review continued by itself, if it did."},"translationSegments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"},"text":{"type":"string","description":"Original text."},"farsi":{"type":"string","description":"Persian text you can edit."},"translationMissing":{"type":"boolean"}},"additionalProperties":true},"description":"Present while in review and after."},"cost":{"$ref":"#/components/schemas/PublicJobCost"},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"VideoJobEnvelope":{"type":"object","required":["job"],"properties":{"job":{"$ref":"#/components/schemas/VideoJob"}},"additionalProperties":true},"VideoJobList":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/VideoJob"}}},"additionalProperties":true},"SegmentEditRequest":{"type":"object","required":["farsi"],"properties":{"farsi":{"type":"string","description":"New Persian text for this segment."}},"additionalProperties":true},"ReviewEditResponse":{"type":"object","required":["ok","reviewVersion"],"properties":{"ok":{"type":"boolean"},"reviewVersion":{"type":"integer","description":"New review version. Use it for the next edit."}},"additionalProperties":true},"ApproveResponse":{"type":"object","required":["ok","status"],"properties":{"ok":{"type":"boolean"},"status":{"type":"string","description":"`active`."},"reviewVersion":{"type":"integer"},"untranslatedSpeechSegmentIds":{"type":"array","items":{"type":"string"},"description":"Video only: spoken segments with no Persian text. They will be silent."}},"additionalProperties":true},"QueueResponse":{"type":"object","properties":{"ok":{"type":"boolean"},"queued":{"type":"boolean"},"name":{"type":"string","description":"What was queued."},"postprocessAttempt":{"type":"integer"}},"additionalProperties":true},"MeetingBranding":{"type":"object","properties":{"companyName":{"type":"string","description":"Early access: set with PUT /api/v1/meetings/branding. Absent when not set."},"headerText":{"type":"string","description":"Early access."},"footerText":{"type":"string","description":"Early access."},"confidentialityText":{"type":"string","description":"Early access."},"primaryColor":{"type":"string","description":"Early access: `#RRGGBB`."},"accentColor":{"type":"string","description":"Early access: `#RRGGBB`."},"logo":{"type":["object","null"],"properties":{"mimeType":{"type":"string"},"byteSize":{"type":"integer"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"maxBytes":{"type":"integer"},"allowedTypes":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"MeetingBrandingTextRequest":{"type":"object","description":"The whole set: a field left out or empty is cleared. Applies to PDF and Word documents made after the call, like the logo.","properties":{"companyName":{"type":"string","maxLength":120,"description":"Company name, shown in place of a logo when there is none. Up to 120 characters."},"headerText":{"type":"string","maxLength":200,"description":"A line at the top of every document. Up to 200 characters."},"footerText":{"type":"string","maxLength":200,"description":"A line in every page footer. Up to 200 characters."},"confidentialityText":{"type":"string","maxLength":1000,"description":"A notice at the end of every document. Up to 1000 characters; line breaks kept."},"primaryColor":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Title and heading colour, `#RRGGBB`."},"accentColor":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Section numbers and markers, `#RRGGBB`. Default: `primaryColor`."}},"additionalProperties":false},"MeetingBrandingTextResponse":{"type":"object","properties":{"branding":{"type":"object","description":"The fields now set.","additionalProperties":true},"appliesTo":{"type":"string"}},"additionalProperties":true},"MeetingCategories":{"type":"object","required":["categories"],"properties":{"categories":{"type":"array","items":{"type":"string","maxLength":60},"description":"Up to 50 names, 60 characters each. An empty list clears it."}},"additionalProperties":true},"MeetingContext":{"type":"object","properties":{"chat":{"type":"array","items":{"type":"object","required":["startSeconds","text"],"properties":{"startSeconds":{"type":"number","description":"Seconds from the start of the recording, like transcript segments."},"speakerName":{"type":"string","description":"Who typed it. Up to 100 characters."},"text":{"type":"string","description":"Up to 2000 characters."}},"additionalProperties":true},"description":"Up to 500 chat messages."},"notes":{"type":"string","description":"Plain text of the shared notes, up to 60000 characters."},"events":{"type":"array","items":{"type":"object","required":["startSeconds","text"],"properties":{"startSeconds":{"type":"number"},"text":{"type":"string","description":"What happened, e.g. «علی رضایی وارد شد». Up to 2000 characters."}},"additionalProperties":true},"description":"Up to 200 events (joins, leaves, screen share)."},"updatedAt":{"type":["string","null"],"format":"date-time","description":"Set by the server."}},"additionalProperties":true},"MeetingContextResponse":{"type":"object","properties":{"jobId":{"type":"string"},"context":{"$ref":"#/components/schemas/MeetingContext","type":[null,"null"]}},"additionalProperties":true},"MeetingContextDeleted":{"type":"object","properties":{"jobId":{"type":"string"},"deleted":{"type":"boolean"}},"additionalProperties":true},"MeetingReviseRequest":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string","maxLength":1000,"description":"What to change, in plain words, up to 1000 characters. For example «تصمیم دوم را حذف کن و مسئول اقدام سوم را علی بگذار»."},"language":{"type":"string","enum":["fa","en"],"description":"Language for new or edited text. Default: the minutes' language."}},"additionalProperties":true},"MeetingReviseResponse":{"type":"object","properties":{"jobId":{"type":"string"},"minutesRevision":{"type":"object","properties":{"state":{"type":"string","enum":["queued"]},"heldFara":{"type":"number"},"instruction":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true},"MeetingMinutesVersionSummary":{"type":"object","properties":{"version":{"type":"integer","description":"The `reviewVersion` these minutes had."},"title":{"type":"string"},"replacedAt":{"type":["string","null"],"format":"date-time"},"replacedBy":{"type":"string","enum":["regenerate","revise","restore","document"],"description":"What replaced them."}},"additionalProperties":true},"MeetingMinutesVersions":{"type":"object","properties":{"jobId":{"type":"string"},"currentVersion":{"type":"integer"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/MeetingMinutesVersionSummary"},"description":"Newest first; the last 20 are kept."}},"additionalProperties":true},"MeetingMinutesVersion":{"type":"object","properties":{"jobId":{"type":"string"},"version":{"type":"integer"},"title":{"type":"string"},"replacedAt":{"type":["string","null"],"format":"date-time"},"replacedBy":{"type":"string"},"minutes":{"type":"object","description":"The minutes as they were.","additionalProperties":true}},"additionalProperties":true},"MeetingMinutesRestored":{"type":"object","properties":{"jobId":{"type":"string"},"restoredFrom":{"type":"integer"},"reviewVersion":{"type":"integer","description":"The new version (the restored minutes are a new version; the replaced ones are kept too)."},"filesRebuilding":{"type":"boolean","description":"The PDF, Word file and mind map are being rebuilt; the old ones serve until then."}},"additionalProperties":true},"MeetingDocumentRequest":{"type":"object","required":["output"],"properties":{"output":{"type":"string","enum":["full","summary","key_points","transcript"],"description":"Which document."},"format":{"type":"string","enum":["pdf","docx"],"description":"File type. Default `pdf`."}},"additionalProperties":true},"MeetingDocument":{"type":"object","properties":{"id":{"type":"string","description":"Document id. `original`: the job's own PDF."},"type":{"type":"string","enum":["full","summary","key_points","transcript"]},"format":{"type":"string","enum":["pdf","docx"]},"state":{"type":"string","enum":["queued","running","done","failed"]},"heldFara":{"type":"number","description":"Fara held: the document's flat price, plus the minutes writing when the meeting had only a transcript."},"faraCost":{"type":"number","description":"Fara charged, once done."},"byteSize":{"type":"integer"},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"additionalProperties":true},"original":{"type":"boolean","description":"True for the job's own files."},"createdAt":{"type":["string","null"],"format":"date-time"},"finishedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingDocumentResponse":{"type":"object","properties":{"jobId":{"type":"string"},"document":{"$ref":"#/components/schemas/MeetingDocument"}},"additionalProperties":true},"MeetingDocumentList":{"type":"object","properties":{"jobId":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/MeetingDocument"}}},"additionalProperties":true},"MeetingOperation":{"type":"object","properties":{"id":{"type":"string","description":"`minutesRegeneration`, `minutesRevision`, `minutesWriting`, `document:<docId>` or `mindmap`."},"kind":{"type":"string","enum":["regenerate_minutes","revise_minutes","write_minutes","document","mindmap"]},"state":{"type":"string","enum":["queued","running","done","failed"]},"heldFara":{"type":["number","null"]},"faraCost":{"type":["number","null"]},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":["string","null"]}},"additionalProperties":true},"startedAt":{"type":["string","null"],"format":"date-time"},"finishedAt":{"type":["string","null"],"format":"date-time"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"`revise_minutes` only: what changed."},"documentId":{"type":"string","description":"`document` only."},"type":{"type":"string","description":"`document` only."},"format":{"type":"string","description":"`document` only."}},"additionalProperties":true},"MeetingOperations":{"type":"object","properties":{"jobId":{"type":"string"},"operations":{"type":"array","items":{"$ref":"#/components/schemas/MeetingOperation"},"description":"Newest first."}},"additionalProperties":true},"MeetingMindmapCreated":{"type":"object","properties":{"jobId":{"type":"string"},"mindmap":{"type":"object","properties":{"state":{"type":"string","enum":["rendering"]},"title":{"type":"string"}},"additionalProperties":true},"faraCost":{"type":"number","description":"Fara charged."}},"additionalProperties":true},"MeetingLogoRequest":{"type":"object","required":["logo"],"properties":{"logo":{"type":"string","format":"binary","description":"PNG, JPEG, or WebP, up to 2 MB."}},"additionalProperties":true},"MeetingLogoResponse":{"type":"object","properties":{"logo":{"type":"object","properties":{"mimeType":{"type":"string"},"byteSize":{"type":"integer"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"additionalProperties":true},"MeetingPricing":{"type":"object","properties":{"faraPerMin":{"type":"number","description":"Typical Fara per minute, for minutes (`output` full, summary or key_points)."},"faraPerMinTranscript":{"type":"number","description":"Typical Fara per minute for `output: transcript` (speech to text only)."},"maxDurationSeconds":{"type":"integer"},"outputs":{"type":"array","items":{"type":"string"},"description":"Allowed `output` values."},"outputLanguages":{"type":"array","items":{"type":"string"},"description":"Allowed `outputLanguage` values."}},"additionalProperties":true},"MeetingCreateRequest":{"type":"object","properties":{"audio":{"type":"string","format":"binary","description":"Audio file: mp3, m4a/mp4, wav, webm, ogg, or flac (up to 200 MB). Leave out when sending `audioUrl`."},"language":{"type":"string","enum":["auto","en","fa"],"description":"Spoken language. Default `auto`."},"attendees":{"type":"array","items":{"type":"string"},"description":"Early access: names of the people in the meeting (up to 50). Used to name speakers when the recording gives evidence; never assigned by order. Multipart forms send a JSON array string or a comma-separated list."},"outputLanguage":{"type":"string","enum":["fa","en"],"description":"Write the minutes in this language whatever language was spoken. Default: the meeting's language."},"output":{"type":"string","enum":["full","summary","key_points","transcript"],"description":"The document to make: `full` minutes (default), a one-page `summary`, bullet-point `key_points`, or the `transcript` alone (no minutes writing, so it costs less; see `faraPerMinTranscript`)."},"mindmap":{"type":"boolean","description":"Also draw a mind map of the minutes (free; not with `output: transcript`). Download with GET /api/v1/meetings/jobs/{id}/mindmap/pdf. Multipart forms send `true` or `false`."},"template":{"type":"string","description":"Early access: a meeting template id from GET /api/v1/meetings/templates. Default `general`."},"glossary":{"type":"array","items":{"type":"object","required":["spelling"],"properties":{"term":{"type":"string","description":"How it may be heard or written wrongly (optional)."},"spelling":{"type":"string","description":"The right spelling, up to 50 characters and 5 words."}},"additionalProperties":true},"description":"Early access: names and product words (up to 300). Sent to the transcriber and the minutes writer. Makes transcription 20% dearer; the price includes it. Multipart forms send a JSON array string."},"participants":{"type":"array","items":{"type":"object","required":["displayName"],"properties":{"id":{"type":"string"},"displayName":{"type":"string"},"joinedAt":{"type":["string","null"],"format":"date-time"},"leftAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"description":"Early access: who was in the meeting (up to 100). Their names name the speakers when `attendees` is not sent, and their number caps how many speakers are told apart. Multipart forms send a JSON array string."},"deleteAfterDays":{"type":"integer","minimum":1,"maximum":3650,"description":"Early access: delete the job and its files this many days after it was created (1-3650)."},"externalId":{"type":"string","description":"Early access: your own reference for this job (up to 200 characters). Echoed in the job, its webhook events and its ledger rows."},"metadata":{"type":"object","description":"Early access: up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Multipart forms send it as a JSON string. Echoed in the job and its webhook events.","additionalProperties":true},"audioUrl":{"type":"string","format":"uri","description":"An https link we download the recording from, instead of uploading it (for example a presigned storage link). Any account. Same size limit as an upload; up to 3 redirects; private addresses are refused. Send it in a JSON body with no file and no `uploadId`."}},"additionalProperties":true},"MediaCreateResponse":{"type":"object","required":["jobId"],"properties":{"jobId":{"type":"string"},"cost":{"type":"object","description":"Price of the job; `faraCharged` is the Fara held.","additionalProperties":true},"durationSeconds":{"type":"number"},"outputOptions":{"type":"object","description":"Meetings: `outputLanguage` (or null for the meeting's own language), `output` and `mindmap` as they will be used.","additionalProperties":true},"externalId":{"type":"string","description":"Early access: as sent."},"metadata":{"type":"object","description":"Early access: as sent.","additionalProperties":true}},"additionalProperties":true},"MeetingJob":{"type":"object","required":["_id","status"],"properties":{"_id":{"type":"string","description":"Job id."},"displayName":{"type":["string","null"],"description":"The name the customer gave the job (null: the original name is shown)."},"status":{"type":"string","description":"`pending`, `active`, `awaiting_review` (waiting for your edits and approval), `retrying`, `finalizing`, `pending_finalization`, and the end states `completed`, `failed`, `cancelled`. Treat any other value as still running."},"stage":{"type":"string"},"progress":{"type":"number"},"originalFilename":{"type":"string"},"audioDurationSeconds":{"type":"number"},"language":{"type":"string"},"reviewVersion":{"type":"integer","description":"Send as `If-Match` when editing or approving the review."},"minutes":{"type":["object","null"],"description":"The meeting minutes: title, attendees, decisions, action items, and more. Early-access jobs also get `category` (one of your categories, or \"\") and `tags` (1-3 keywords), and add `startSeconds`/`endSeconds`/`speakerIds` on topics, `startSeconds`/`speakerId` on decisions and action items, `openQuestionDetails`, `speakers` and `nextMeetingDetail` (see the meeting guide).","additionalProperties":true},"transcript":{"type":["object","null"],"description":"Transcript. Word timings are left out unless `full=1`; `wordCount` is given instead.","additionalProperties":true},"readOnly":{"type":"boolean"},"cost":{"$ref":"#/components/schemas/PublicJobCost"},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"externalId":{"type":"string","description":"Early access: as sent at creation."},"metadata":{"type":"object","description":"Early access: as sent at creation.","additionalProperties":true},"minutesOptions":{"type":"object","description":"Early access: `attendees`, `outputLanguage` and `template` as sent at creation.","additionalProperties":true},"minutesRegeneration":{"type":"object","description":"Early access: state of the last minutes rebuild: `state` (`queued`, `running`, `done`, `failed`), `heldFara`, `faraCost`, and `error: {code, message}` when failed (same shape as `minutesRevision` and documents; `customerErrorCode` is kept for older clients).","additionalProperties":true},"minutesRevision":{"type":"object","description":"Early access: state of the last revision by instruction: `state` (`queued`, `running`, `done`, `failed`), `instruction`, `heldFara`, `faraCost`, `changes` (`[{type: added|removed|edited, section, before, after}]` when done), `reviewVersion`, and `error: {code, message}` when failed (`INSTRUCTION_NOT_APPLICABLE` with a message you can show when the change could not be made; nothing is charged then).","additionalProperties":true},"minutesWriting":{"type":"object","description":"Early access: minutes being written for a transcript-only meeting (for POST /jobs/{id}/documents): `state`, `heldFara`, `faraCost`.","additionalProperties":true},"minutesVersionCount":{"type":"integer","description":"Early access: older versions kept (GET /jobs/{id}/minutes/versions)."},"lastRevision":{"type":"object","description":"Early access: the last applied revision: `instruction`, `changes`, `at`.","additionalProperties":true},"context":{"type":"object","description":"Early access: a summary of the chat, notes and events you sent: `chatCount`, `eventCount`, `hasNotes`, `updatedAt`. Full text: GET /jobs/{id}/context.","additionalProperties":true},"documents":{"type":"array","items":{"$ref":"#/components/schemas/MeetingDocument"},"description":"Early access: extra documents (POST /jobs/{id}/documents)."},"glossary":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Early access: as sent."},"participants":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Early access: as sent."},"deleteAfter":{"type":["string","null"],"format":"date-time","description":"Early access: when the job deletes itself (`deleteAfterDays`)."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingJobEnvelope":{"type":"object","required":["job"],"properties":{"job":{"$ref":"#/components/schemas/MeetingJob"}},"additionalProperties":true},"MeetingJobList":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/MeetingJob"}}},"additionalProperties":true},"MeetingSpeakers":{"type":"object","properties":{"jobId":{"type":"string"},"speakers":{"type":"array","items":{"type":"object","properties":{"speakerId":{"type":"string","description":"Transcriber id, e.g. `speaker_0`. The same id in the minutes, transcript and renames."},"id":{"type":"string","description":"Same as `speakerId` (kept for older clients)."},"name":{"type":"string","description":"Empty when unknown."},"source":{"type":"string","enum":["attendeeHint","transcript","manual","diarizationOnly"]},"matchConfidence":{"type":"number","description":"0-1."},"talkSeconds":{"type":"number"},"turns":{"type":"integer"},"seconds":{"type":"integer"},"samples":{"type":"array","items":{"type":"string"},"description":"Up to 3 of their longest turns, to recognise them by."}},"additionalProperties":true},"description":"Most talk time first."},"language":{"type":["string","null"]}},"additionalProperties":true},"MeetingSpeakerNamesRequest":{"type":"object","properties":{"speakers":{"type":"array","items":{"type":"object","required":["name"],"properties":{"speakerId":{"type":"string","description":"A speaker id, e.g. `speaker_0`. Send this or `quote`."},"quote":{"type":"string","description":"Instead of `speakerId`: a line this person said, copied from the transcript (3 words or more, up to 1000 characters). Punctuation, ZWNJ and Arabic/Persian letter forms are ignored. The speaker who said it is renamed."},"atSeconds":{"type":"number","description":"With `quote`: about when it was said (seconds from the start). Needed only when the same words were said by more than one person; the time closest to this, within 120 seconds, is used."},"name":{"type":"string","description":"Name to show; empty clears a name set earlier."}},"additionalProperties":true},"description":"Finished meetings: the renames. All or nothing: if one quote cannot be matched, nothing is renamed."},"dryRun":{"type":"boolean","description":"Finished meetings: `true` answers who each quote belongs to (`matches`) and changes nothing."},"names":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string","description":"Name to show. Blank keeps the speaker id."},"role":{"type":"string","description":"Role for the attendee list. Optional."}},"additionalProperties":true},"description":"Map of speaker id to `{ name, role }` (review-state shape; also accepted for finished meetings)."}},"additionalProperties":true},"MeetingSpeakerNamesResponse":{"type":"object","required":["ok","reviewVersion"],"properties":{"ok":{"type":"boolean"},"minutes":{"type":"object","additionalProperties":true},"reviewVersion":{"type":"integer"},"speakers":{"type":"array","items":{"$ref":"#/components/schemas/MeetingSpeaker"},"description":"Finished meetings: the speaker list after the rename."},"matches":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","description":"Position of the entry in `speakers`."},"speakerId":{"type":"string","description":"Who said the quote."},"startSeconds":{"type":"number"},"endSeconds":{"type":"number"},"occurrences":{"type":"integer","description":"How many times these words were said in the meeting (by anyone)."}},"additionalProperties":true},"description":"Finished meetings: for each entry sent with `quote`, where it was found."},"dryRun":{"type":"boolean","description":"Present and `true` when nothing was changed."},"renames":{"type":"array","items":{"type":"object","properties":{"speakerId":{"type":"string"},"name":{"type":"string"}},"additionalProperties":true},"description":"With `dryRun`: the renames that would be made."},"pdfRerendering":{"type":"boolean","description":"Finished meetings: the PDF is being rendered again; the old one serves until then."}},"additionalProperties":true},"MeetingMinutesRequest":{"type":"object","required":["minutes"],"properties":{"minutes":{"type":"object","description":"The full edited minutes object.","additionalProperties":true}},"additionalProperties":true},"MeetingMinutesJson":{"type":"object","required":["minutes"],"properties":{"minutes":{"type":"object","additionalProperties":true}},"additionalProperties":true},"MeetingCreateUrlRequest":{"type":"object","description":"Send `uploadId` (a finished chunked upload) or, with early access, `audioUrl`.","properties":{"uploadId":{"type":"string","description":"A finished chunked upload (`upl_...`, see POST /api/v1/uploads) to make the job from, in place of a file. Any account. Nothing is held or charged for the upload itself; one upload makes one job."},"audioUrl":{"type":"string","format":"uri","description":"An https link we download the recording from, instead of uploading it (for example a presigned storage link). Any account. Same size limit as an upload; up to 3 redirects; private addresses are refused. Send it in a JSON body with no file and no `uploadId`."},"language":{"type":"string","enum":["auto","en","fa"],"description":"Spoken language. Default `auto`."},"attendees":{"type":"array","items":{"type":"string"},"description":"Names of the people in the meeting (up to 50)."},"outputLanguage":{"type":"string","enum":["fa","en"],"description":"Write the minutes in this language whatever language was spoken. Default: the meeting's language."},"output":{"type":"string","enum":["full","summary","key_points","transcript"],"description":"The document to make: `full` minutes (default), a one-page `summary`, bullet-point `key_points`, or the `transcript` alone (no minutes writing, so it costs less; see `faraPerMinTranscript`)."},"mindmap":{"type":"boolean","description":"Also draw a mind map of the minutes (free; not with `output: transcript`). Download with GET /api/v1/meetings/jobs/{id}/mindmap/pdf. Multipart forms send `true` or `false`."},"template":{"type":"string","description":"A template id from GET /api/v1/meetings/templates."},"glossary":{"type":"array","items":{"type":"object","required":["spelling"],"properties":{"term":{"type":"string","description":"How it may be heard or written wrongly (optional)."},"spelling":{"type":"string","description":"The right spelling, up to 50 characters and 5 words."}},"additionalProperties":true},"description":"Early access: names and product words (up to 300). Sent to the transcriber and the minutes writer. Makes transcription 20% dearer; the price includes it. Multipart forms send a JSON array string."},"participants":{"type":"array","items":{"type":"object","required":["displayName"],"properties":{"id":{"type":"string"},"displayName":{"type":"string"},"joinedAt":{"type":["string","null"],"format":"date-time"},"leftAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"description":"Early access: who was in the meeting (up to 100). Their names name the speakers when `attendees` is not sent, and their number caps how many speakers are told apart. Multipart forms send a JSON array string."},"deleteAfterDays":{"type":"integer","minimum":1,"maximum":3650,"description":"Early access: delete the job and its files this many days after it was created (1-3650)."},"externalId":{"type":"string","description":"Early access: your own reference for this job (up to 200 characters). Echoed in the job, its webhook events and its ledger rows."},"metadata":{"type":"object","description":"Early access: up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Multipart forms send it as a JSON string. Echoed in the job and its webhook events.","additionalProperties":true}},"additionalProperties":true},"UploadStartRequest":{"type":"object","required":["purpose","size"],"properties":{"purpose":{"type":"string","enum":["meeting","transcription","video"],"description":"What the file will make: `meeting` (POST /api/v1/meetings/jobs), `transcription` (POST /api/v1/transcription/jobs) or `video` (POST /api/v1/video/jobs)."},"filename":{"type":"string","description":"The file's name (up to 255 characters). Kept as the job's file name."},"contentType":{"type":"string","description":"Optional. An audio or video type, for example `audio/mp4`. The file itself is checked when the job is created."},"size":{"type":"integer","minimum":1,"description":"The whole file's size in bytes, at most 1073741824."},"sha256":{"type":"string","description":"Optional. SHA-256 of the whole file, 64 hex characters. When given, the joined file is checked against it when the job is created."},"chunkSize":{"type":"integer","minimum":262144,"maximum":8388608,"description":"Optional. Bytes per chunk, from 262144 (256 KB) to 8388608 (8 MB, the default). Ask for smaller chunks on a slow or unstable line, so each chunk is sent before the line drops. Out of range answers 400 `BAD_REQUEST` with `minChunkSize` and `maxChunkSize`."}},"additionalProperties":true},"UploadSession":{"type":"object","required":["uploadId","chunkSize","totalChunks","received","expiresAt"],"properties":{"uploadId":{"type":"string","description":"Upload id (`upl_...`). Send it as `uploadId` when you create the job."},"purpose":{"type":"string","enum":["meeting","transcription","video"]},"filename":{"type":"string"},"size":{"type":"integer","description":"The whole file's size in bytes."},"chunkSize":{"type":"integer","description":"Bytes in every chunk except the last."},"totalChunks":{"type":"integer","description":"How many chunks make the file. Indexes run from 0 to `totalChunks - 1`."},"received":{"type":"array","items":{"type":"integer"},"description":"Indexes of the chunks that have arrived, in order. After a lost connection, send only the others."},"status":{"type":"string","enum":["open","used"],"description":"`open` (taking chunks), or `used` (a job was made from it)."},"jobId":{"type":["string","null"],"description":"The job made from this upload, once `status` is `used`."},"createdAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time","description":"When an unused upload and its chunks are deleted (24 hours after it started)."}},"additionalProperties":true},"MeetingTemplates":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"object","properties":{"en":{"type":"string"},"fa":{"type":"string"}},"additionalProperties":true},"description":{"type":"object","properties":{"en":{"type":"string"},"fa":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}},"additionalProperties":true},"MeetingEstimateRequest":{"type":"object","required":["durationSeconds"],"properties":{"durationSeconds":{"type":"number","description":"Length of the recording in seconds."}},"additionalProperties":true},"MeetingEstimate":{"type":"object","properties":{"durationSeconds":{"type":"number"},"minutes":{"$ref":"#/components/schemas/PublicJobCost"},"transcriptOnly":{"$ref":"#/components/schemas/PublicJobCost"},"transcript":{"type":"object","properties":{"faraCharged":{"type":"number","description":"Always 0: the transcript comes with the meeting job."}},"additionalProperties":true},"tools":{"type":"object","description":"Hold per paid tool for this length: `highlights`, `recap_email`, `ask` (per question), `regenerate_minutes`, `revise_minutes` (per instruction), `write_minutes` (minutes for a transcript-only meeting, before POST /jobs/{id}/documents), `document` (each extra document, flat), `mindmap` (POST /jobs/{id}/mindmap, flat), `analytics`, each `{ faraCharged }`. The charge is the actual cost and never more than the hold.","additionalProperties":true},"transcriptionJob":{"$ref":"#/components/schemas/PublicJobCost"}},"additionalProperties":true},"MeetingSpeaker":{"type":"object","properties":{"speakerId":{"type":"string","description":"Transcriber id, e.g. `speaker_0`. The same id everywhere: minutes, transcript, highlights, analytics."},"name":{"type":"string","description":"Empty when unknown."},"matchConfidence":{"type":"number","description":"0-1."},"source":{"type":"string","enum":["attendeeHint","transcript","manual","diarizationOnly"]},"talkSeconds":{"type":"number"}},"additionalProperties":true},"MeetingSpeakerList":{"type":"object","properties":{"jobId":{"type":"string"},"speakers":{"type":"array","items":{"$ref":"#/components/schemas/MeetingSpeaker"}}},"additionalProperties":true},"MeetingChapters":{"type":"object","properties":{"jobId":{"type":"string"},"hasChapters":{"type":"boolean"},"chapters":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"topicIndex":{"type":"integer","description":"Index in `minutes.topics`."},"title":{"type":"string"},"summary":{"type":"string"},"startSeconds":{"type":"number"},"endSeconds":{"type":["number","null"]},"speakerIds":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}},"faraCost":{"type":"number","description":"Always 0."},"billing":{"type":"string"},"savedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingTranscript":{"type":"object","properties":{"jobId":{"type":"string"},"language":{"type":["string","null"]},"durationSeconds":{"type":["number","null"]},"edited":{"type":"boolean","description":"True when this is the corrected transcript you saved (it has no word timings)."},"speakers":{"type":"array","items":{"$ref":"#/components/schemas/MeetingSpeaker"}},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"startSeconds":{"type":"number"},"endSeconds":{"type":"number"},"speakerId":{"type":["string","null"]},"speakerName":{"type":["string","null"]},"text":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"w":{"type":"string","description":"Word."},"s":{"type":"number","description":"Start, seconds."},"e":{"type":"number","description":"End, seconds."}},"additionalProperties":true},"description":"Only with `words=1`."}},"additionalProperties":true}},"faraCost":{"type":"number","description":"Always 0."}},"additionalProperties":true},"MeetingEditedTranscriptRequest":{"type":"object","required":["segments"],"properties":{"segments":{"type":"array","items":{"type":"object","required":["startSeconds","endSeconds","text"],"properties":{"id":{"type":"string"},"startSeconds":{"type":"number"},"endSeconds":{"type":"number"},"speakerId":{"type":["string","null"],"description":"A speaker id of this meeting."},"text":{"type":"string"}},"additionalProperties":true}}},"additionalProperties":true},"MeetingEditedTranscriptResponse":{"type":"object","properties":{"jobId":{"type":"string"},"edited":{"type":"boolean"},"segmentCount":{"type":"integer"},"editedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingRegenerateRequest":{"type":"object","properties":{"segments":{"type":"array","items":{"type":"object","description":"Same shape as PUT /jobs/{id}/transcript.","additionalProperties":true},"description":"Optional: save this corrected transcript first."}},"additionalProperties":true},"MeetingRegenerateResponse":{"type":"object","properties":{"jobId":{"type":"string"},"minutesRegeneration":{"type":"object","properties":{"state":{"type":"string","enum":["queued"]},"heldFara":{"type":"number"},"fromEditedTranscript":{"type":"boolean"}},"additionalProperties":true}},"additionalProperties":true},"MeetingHighlight":{"type":"object","properties":{"kind":{"type":"string","enum":["decision","commitment","question","disagreement","number","risk","praise"]},"text":{"type":"string","description":"What happened, in one sentence."},"quote":{"type":"string","description":"The words as spoken, checked against the transcript."},"startSeconds":{"type":"number"},"endSeconds":{"type":"number","description":"A play window of 5-60 seconds."},"speakerId":{"type":"string"},"speakerName":{"type":["string","null"]},"importance":{"type":"number","description":"0-1."}},"additionalProperties":true},"MeetingHighlights":{"type":"object","properties":{"jobId":{"type":"string"},"hasHighlights":{"type":"boolean","description":"GET only."},"highlights":{"type":"array","items":{"$ref":"#/components/schemas/MeetingHighlight"}},"droppedUnverifiedQuotes":{"type":"integer","description":"Highlights left out because their quote was not found in the transcript."},"faraCost":{"type":"number","description":"Fara charged by this call (0 on GET)."},"chargedFara":{"type":["number","null"],"description":"GET only: what the saved result cost when it was made."},"billing":{"type":"string"},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingRecapEmailRequest":{"type":"object","properties":{"language":{"type":"string","enum":["fa","en"],"description":"Default: the minutes' language."},"tone":{"type":"string","enum":["short","detailed"],"description":"Default `short`."}},"additionalProperties":true},"MeetingRecapEmail":{"type":"object","properties":{"jobId":{"type":"string"},"hasRecapEmail":{"type":"boolean","description":"GET only."},"subject":{"type":"string"},"markdown":{"type":"string"},"html":{"type":"string","description":"The same body as HTML, in a `<div dir=...>`."},"tone":{"type":"string"},"language":{"type":["string","null"]},"faraCost":{"type":"number"},"billing":{"type":"string"},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingAnalyticsRequest":{"type":"object","properties":{"includeSpeakerSentiment":{"type":"boolean","description":"Default true. Send false to leave out per-person sentiment and engagement scores."}},"additionalProperties":true},"MeetingAnalytics":{"type":"object","properties":{"jobId":{"type":"string"},"hasAnalytics":{"type":"boolean","description":"GET only."},"scores":{"type":"object","properties":{"meeting":{"type":"integer","description":"0-100: 40% engagement, 30% sentiment, 30% participation balance (55/45 engagement/sentiment with one speaker)."},"engagement":{"type":"integer","description":"0-100, judged from the transcript text."},"sentiment":{"type":"integer","description":"0-100 (50 = neutral), judged from the transcript text."},"participationBalance":{"type":["integer","null"],"description":"0-100: 100 when everyone speaks equally. Null with one speaker."},"method":{"type":"string","enum":["transcript_text_and_timing"],"description":"What the scores are derived from."},"confidence":{"type":"number","description":"0-1; lower when windows could not be scored. Hide scores below your own cut-off."}},"additionalProperties":true},"timeline":{"type":"object","properties":{"bucketSeconds":{"type":"integer"},"points":{"type":"array","items":{"type":"object","properties":{"at":{"type":"integer"},"speechShare":{"type":"number","description":"Measured."},"engagement":{"type":["integer","null"]},"sentiment":{"type":["integer","null"]}},"additionalProperties":true}}},"additionalProperties":true},"speakers":{"type":"array","items":{"type":"object","properties":{"speakerId":{"type":"string"},"name":{"type":"string"},"talkSeconds":{"type":"number"},"talkShare":{"type":"number"},"turns":{"type":"integer"},"wordsPerMinute":{"type":"integer"},"longestMonologueSeconds":{"type":"number"},"questionsAsked":{"type":"integer"},"interruptions":{"type":"integer","description":"Times this person started speaking before the previous speaker had finished."},"interrupted":{"type":"integer"},"sentiment":{"type":["integer","null"],"description":"Only with includeSpeakerSentiment."},"engagement":{"type":["integer","null"],"description":"Only with includeSpeakerSentiment."}},"additionalProperties":true}},"pace":{"type":"object","properties":{"silenceShare":{"type":"number"},"overlapShare":{"type":"number"},"monologueShare":{"type":"number"},"questionCount":{"type":"integer"}},"additionalProperties":true},"durationSeconds":{"type":"number"},"includeSpeakerSentiment":{"type":"boolean"},"unscoredWindows":{"type":"integer"},"faraCost":{"type":"number"},"billing":{"type":"string"},"processedAt":{"type":["string","null"],"format":"date-time"},"savedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingAskRequest":{"type":"object","required":["question"],"properties":{"question":{"type":"string","description":"Up to 1000 characters."},"language":{"type":"string","enum":["fa","en"],"description":"Answer language. Default: the question's language."}},"additionalProperties":true},"MeetingAnswer":{"type":"object","properties":{"jobId":{"type":"string"},"question":{"type":"string"},"answerable":{"type":"boolean","description":"False when the meeting does not contain the answer (no citations then)."},"answer":{"type":"string"},"citations":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["transcript","chat","notes","event"],"description":"Where the quote is: a spoken turn, or the typed context."},"startSeconds":{"type":["number","null"],"description":"Null for notes."},"endSeconds":{"type":["number","null"]},"speakerId":{"type":["string","null"],"description":"Null for typed items."},"speakerName":{"type":["string","null"],"description":"For chat: who typed it."},"quote":{"type":"string","description":"Checked against the transcript or the context."}},"additionalProperties":true}},"faraCost":{"type":"number"},"billing":{"type":"string"},"processedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingsAskRequest":{"type":"object","required":["question"],"properties":{"question":{"type":"string","description":"Up to 1000 characters."},"jobIds":{"type":"array","items":{"type":"string"},"description":"Up to 20 finished meetings. Or send `from`/`to`."},"from":{"type":"string","format":"date-time","description":"ISO date: meetings created from this time (newest 20)."},"to":{"type":"string","format":"date-time"},"language":{"type":"string","enum":["fa","en"]}},"additionalProperties":true},"MeetingsAnswer":{"type":"object","properties":{"question":{"type":"string"},"answerable":{"type":"boolean"},"answer":{"type":"string"},"citations":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"startSeconds":{"type":["number","null"]},"text":{"type":"string"}},"additionalProperties":true}},"jobIds":{"type":"array","items":{"type":"string"}},"faraCost":{"type":"number"},"billing":{"type":"string"},"processedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"MeetingsDigestRequest":{"type":"object","properties":{"jobIds":{"type":"array","items":{"type":"string"},"description":"Up to 20 finished meetings. Or send `from`/`to`."},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"language":{"type":"string","enum":["fa","en"]}},"additionalProperties":true},"MeetingsDigest":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"meetings":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"title":{"type":"string"},"keyPoints":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}},"decisions":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"startSeconds":{"type":["number","null"]},"text":{"type":"string"}},"additionalProperties":true}},"actionItems":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"startSeconds":{"type":["number","null"]},"owner":{"type":"string"},"task":{"type":"string"},"dueDate":{"type":"string"}},"additionalProperties":true}},"openQuestions":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"startSeconds":{"type":["number","null"]},"text":{"type":"string"}},"additionalProperties":true}},"jobIds":{"type":"array","items":{"type":"string"}},"faraCost":{"type":"number"},"billing":{"type":"string"},"processedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"SavedToolDeleted":{"type":"object","properties":{"jobId":{"type":"string"},"deleted":{"type":"boolean"}},"additionalProperties":true},"AudioPricing":{"type":"object","properties":{"faraPerMin":{"type":"number","description":"Fara per minute of finished audio, as billed."},"podcast":{"type":"object","properties":{"targetMinutes":{"type":"number"},"maxMinutes":{"type":"number"},"holdFara":{"type":"number","description":"Fara held when a podcast job is created."}},"additionalProperties":true},"audiobook":{"type":"object","properties":{"targetMinutes":{"type":"number"},"minMinutes":{"type":"number"},"maxMinutes":{"type":"number"},"holdFara":{"type":"number","description":"Fara held when an audiobook job is created."}},"additionalProperties":true}},"additionalProperties":true},"AudioCreateRequest":{"type":"object","required":["jobId","feature"],"properties":{"jobId":{"type":"string","description":"Id of a completed translation job."},"feature":{"type":"string","enum":["podcast","audiobook"]},"voiceId":{"type":"string","description":"Audiobook narrator: a voice `id` from GET /api/v1/audio/voices, or `male` / `female`. Default `male`."},"voiceGender":{"type":"string","enum":["male","female"],"description":"Audiobook only, used when `voiceId` is left out. Default `male`."},"speaker1VoiceId":{"type":"string","description":"Podcast only: voice `id` of the first speaker. Default: the male default voice."},"speaker2VoiceId":{"type":"string","description":"Podcast only: voice `id` of the second speaker. Default: the female default voice."},"voiceMood":{"type":"string","enum":["neutral","friendly","formal","happy","sad","calm","energetic","serious"],"description":"Mood of the voices. Default `neutral`."}},"additionalProperties":true},"AudioJob":{"type":"object","required":["_id","status"],"properties":{"_id":{"type":"string","description":"Audio job id."},"displayName":{"type":["string","null"],"description":"The name the customer gave the job (null: the original name is shown)."},"feature":{"type":"string","enum":["podcast","audiobook"]},"translationJobId":{"type":"string"},"status":{"type":"string","description":"`pending`, `active`, `awaiting_review` (waiting for your edits and approval), and the end states `completed`, `failed`, `cancelled`. Treat any other value as still running."},"stage":{"type":"string"},"progress":{"type":"number"},"voiceGender":{"type":["string","null"]},"voiceKey":{"type":["string","null"],"description":"Audiobook narrator voice `id`."},"speakerVoiceKeys":{"type":["object","null"],"description":"Podcast speaker voice ids.","properties":{"speaker1":{"type":"string"},"speaker2":{"type":"string"}},"additionalProperties":true},"voiceMood":{"type":["string","null"]},"reviewVersion":{"type":"integer","description":"Send as `If-Match` when editing or approving the script."},"script":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"}},"additionalProperties":true},"description":"Only on GET /api/v1/audio/jobs/{id}."},"estimatedMinutes":{"type":"number"},"estimatedCost":{"type":["object","null"],"description":"Price for the script as it is now; `faraCharged` is in Fara.","additionalProperties":true},"cost":{"$ref":"#/components/schemas/PublicJobCost"},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"AudioJobEnvelope":{"type":"object","required":["job"],"properties":{"job":{"$ref":"#/components/schemas/AudioJob"}},"additionalProperties":true},"AudioJobList":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/AudioJob"}}},"additionalProperties":true},"ScriptSegmentEditRequest":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"New text for this script segment."}},"additionalProperties":true},"ScriptSegmentEditResponse":{"type":"object","required":["ok","reviewVersion"],"properties":{"ok":{"type":"boolean"},"reviewVersion":{"type":"integer"},"estimatedMinutes":{"type":"number"},"estimatedCost":{"type":["object","null"],"additionalProperties":true}},"additionalProperties":true},"FarsiTtsPricing":{"type":"object","properties":{"faraPerMin":{"type":"number","description":"Fara per minute of speech, as billed."},"charsPerMinute":{"type":"number","description":"Characters of text per minute of speech."},"maxInputChars":{"type":"integer"},"holdHeadroom":{"type":"number","description":"The hold is this many times the estimate, to allow for edits."}},"additionalProperties":true},"FarsiTtsCreateRequest":{"type":"object","required":["text","sourceLang"],"properties":{"text":{"type":"string","description":"Text to speak. English text is translated to Persian first."},"sourceLang":{"type":"string","enum":["en","fa"]},"voiceId":{"type":"string","description":"A voice `id` from GET /api/v1/farsi-tts/voices, or `male` / `female`. Default `male`."},"voiceGender":{"type":"string","enum":["male","female"],"description":"Used when `voiceId` is left out. Default `male`."},"voiceMood":{"type":"string","enum":["neutral","friendly","formal","happy","sad","calm","energetic","serious"],"description":"Mood of the voice. Default `neutral`."}},"additionalProperties":true},"FarsiTtsJob":{"type":"object","required":["_id","status"],"properties":{"_id":{"type":"string","description":"Job id."},"displayName":{"type":["string","null"],"description":"The name the customer gave the job (null: the original name is shown)."},"status":{"type":"string","description":"`pending`, `active`, `awaiting_review` (waiting for your edits and approval), and the end states `completed`, `failed`, `cancelled`. Treat any other value as still running."},"stage":{"type":"string"},"progress":{"type":"number"},"sourceLang":{"type":"string"},"voiceGender":{"type":"string"},"voiceKey":{"type":["string","null"],"description":"The chosen voice `id`."},"voiceMood":{"type":["string","null"]},"inputText":{"type":"string"},"farsiText":{"type":"string","description":"Persian text that will be spoken. Editable while `awaiting_review`."},"reservedChars":{"type":"integer","description":"Most characters the held Fara covers."},"estimatedMinutes":{"type":"number"},"estimatedCost":{"type":["object","null"],"additionalProperties":true},"cost":{"$ref":"#/components/schemas/PublicJobCost"},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"FarsiTtsJobEnvelope":{"type":"object","required":["job"],"properties":{"job":{"$ref":"#/components/schemas/FarsiTtsJob"}},"additionalProperties":true},"FarsiTtsJobList":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/FarsiTtsJob"}}},"additionalProperties":true},"FarsiTtsTextRequest":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"New Persian text."}},"additionalProperties":true},"FarsiTtsTextResponse":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"estimatedMinutes":{"type":"number"},"estimatedCost":{"type":["object","null"],"additionalProperties":true}},"additionalProperties":true},"ContentTranslateRequest":{"type":"object","required":["format","content"],"properties":{"format":{"type":"string","enum":["json","markdown","html","strings"],"description":"How `content` is written: `json` (any object or array, e.g. an i18n file), `markdown`, `html` (a page or a fragment), or `strings` (a string or an array of strings)."},"content":{"description":"The English text, in the shape `format` names. The answer has the same shape: the same keys in the same order, the same Markdown and HTML structure, with Persian text.","oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"string"}]},"brief":{"type":"string","maxLength":2000,"description":"What the product is and who reads it, in one or two sentences (up to 2000 characters). The more we know, the better the Persian fits."},"tone":{"type":"string","enum":["neutral","formal","friendly"],"description":"`neutral` (default): polite everyday Persian. `formal`: official. `friendly`: warm and conversational. The reader is always addressed as «شما»."},"digits":{"type":"string","enum":["persian","latin"],"description":"Numbers in Persian digits (`persian`, default) or Latin digits (`latin`). Digits inside placeholders, links and code never change."},"glossary":{"description":"Terms that must be translated one way, as `{ \"dashboard\": \"پیشخوان\" }` or `[{ \"term\": \"dashboard\", \"translation\": \"پیشخوان\" }]`. A translation equal to the term keeps it in English. Up to 500 terms.","oneOf":[{"type":"object","additionalProperties":{"type":"string","maxLength":200}},{"type":"array","items":{"type":"object","required":["term","translation"],"properties":{"term":{"type":"string","maxLength":200},"translation":{"type":"string","maxLength":200}},"additionalProperties":false}}]},"keep":{"type":"array","items":{"type":"string","maxLength":200},"description":"Words and names to leave in English everywhere (brand and product names). Up to 500."},"notes":{"type":"object","description":"Per string: where it is used, and an optional length limit. Keys are the JSON key paths (`hero.title`, `plans[0].name`) or, for `strings`, the index (`\"0\"`). A value is a note (`\"button\"`) or `{ \"note\": \"button\", \"maxLength\": 20 }`. The Persian is never longer than `maxLength` characters.","additionalProperties":{"oneOf":[{"type":"string","maxLength":500},{"type":"object","properties":{"note":{"type":"string","maxLength":500},"maxLength":{"type":"integer","minimum":1,"maximum":10000}},"additionalProperties":false}]}},"skipKeys":{"type":"array","items":{"type":"string"},"description":"`json`: key paths to leave as they are. Parts are joined by dots; `*` matches inside one part and `**` any number of parts: `meta.*`, `**.url`, `items.*.title` (or `items[*].title`). A pattern that matches no string is reported in `warnings`. Values that look like data (ids, paths, colours, dates, file names) are left out already."},"frontMatterKeys":{"type":"array","items":{"type":"string"},"description":"`markdown`: front-matter keys whose values are translated. Default `title`, `description`, `summary`, `excerpt`, `subtitle`."},"setDirection":{"type":"boolean","description":"`html`: on a full page, set `lang=\"fa\" dir=\"rtl\"` on `<html>`. Default true."},"project":{"type":"string","maxLength":100,"description":"Your name for the site or app (letters, digits, `_ . -`). Translation memory is kept per project, so two products do not share translations. Default: one shared memory for the account."},"memory":{"type":"string","enum":["use","refresh","off"],"description":"`use` (default): strings translated before for this account and project come back the same and are free; new ones are saved. `refresh`: translate everything again and save the new Persian. `off`: do not read or save memory."},"async":{"type":"boolean","description":"Always run in the background and answer 202, even for small work."},"dryRun":{"type":"boolean","description":"Only price the request: nothing is translated, held or charged."},"externalId":{"type":"string","description":"Your own reference for this job (up to 200 characters). Echoed in the job and its webhook events."},"metadata":{"type":"object","description":"Up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Echoed in the job and its webhook events.","additionalProperties":true}},"additionalProperties":false},"ContentTranslationQuote":{"type":"object","properties":{"maxFara":{"type":"integer","description":"The most this request can cost. It is held when the work starts; the charge is the actual cost and never more."},"characters":{"type":"integer","description":"Characters of text that will be sent for translation (after memory)."},"strings":{"type":"integer","description":"Strings found in the content."},"translatable":{"type":"integer","description":"Strings with English text to translate."},"fromMemory":{"type":"integer","description":"Strings answered from translation memory (free)."},"toTranslate":{"type":"integer","description":"Strings that will be translated."},"repeated":{"type":"integer","description":"Of those, sentences that repeat another string of the request: they are translated once, get the same text, and are not counted in `characters`."},"runs":{"type":"string","enum":["now","background"],"description":"`now`: the answer will carry the result. `background`: the answer is 202 with a job to poll."}},"additionalProperties":true},"ContentTranslationQuoteResponse":{"type":"object","required":["quote"],"properties":{"object":{"type":"string","const":"content_translation_quote"},"quote":{"$ref":"#/components/schemas/ContentTranslationQuote"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ContentWarning"},"description":"Things in the request that had no effect. Left out when there are none."}},"additionalProperties":true},"ContentTranslationJob":{"type":"object","required":["object","status"],"properties":{"id":{"type":["string","null"],"description":"Job id. `null` when everything came from memory (no job was made)."},"object":{"type":"string","const":"content_translation"},"status":{"type":"string","enum":["queued","running","completed","completed_partial","failed"],"description":"`queued`, `running`, and the end states `completed`, `completed_partial` (some strings could not be translated; see `failed`), `failed`."},"format":{"type":"string"},"project":{"type":"string"},"counts":{"type":"object","properties":{"strings":{"type":"integer"},"translatable":{"type":"integer"},"fromMemory":{"type":"integer"},"translated":{"type":"integer","description":"Strings translated so far (it grows while the job runs)."},"failed":{"type":"integer"}},"additionalProperties":true},"price":{"type":"object","properties":{"maxFara":{"type":"integer","description":"The quote, held while the job runs."},"chargedFara":{"type":["integer","null"],"description":"What was charged (null until the job ends)."}},"additionalProperties":true},"failed":{"type":"array","items":{"type":"object","required":["key","reason"],"properties":{"key":{"type":"string","description":"The JSON key path, `line N` for Markdown, or the HTML element."},"reason":{"type":"string"}},"additionalProperties":true},"description":"Strings that could not be translated. They keep their English text in `content`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ContentWarning"},"description":"Things in the request that had no effect. Left out when there are none."},"content":{"description":"The translated content, in the same shape as the input. Only on a finished job.","oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"string"}]},"quote":{"$ref":"#/components/schemas/ContentTranslationQuote"},"externalId":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"links":{"type":"object","properties":{"self":{"type":"string","format":"uri"}},"additionalProperties":true}},"additionalProperties":true},"ContentTranslationJobList":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ContentTranslationJob"},{"$ref":"#/components/schemas/ContentEditJob"}]}}},"additionalProperties":true},"ContentEditRequest":{"type":"object","required":["format","content"],"properties":{"format":{"type":"string","enum":["json","markdown","html","strings"],"description":"How `content` is written: `json`, `markdown`, `html` or `strings`, as for translation."},"content":{"description":"The Persian text, in the shape `format` names. The answer has the same shape with the edited text. Strings without Persian letters (English, code, numbers) are left as they are.","oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"string"}]},"brief":{"type":"string","maxLength":2000,"description":"What the text is and who reads it, in one or two sentences (up to 2000 characters)."},"tone":{"type":"string","enum":["source","neutral","formal","friendly","conversational"],"description":"The register. `source` (default): keep each text's own register. `neutral`: polite everyday written Persian. `formal`: official. `friendly`: warm, written. `conversational`: everyday spoken Persian as Iranians write it in chats."},"digits":{"type":"string","enum":["source","persian","latin"],"description":"`source` (default): digits stay as written. `persian` or `latin`: write numbers in those digits. The values never change."},"keep":{"type":"array","items":{"type":"string","maxLength":200},"description":"Words and names to leave exactly as written. Up to 500."},"glossary":{"description":"Terms to write one way everywhere: `{ \"as the text has it\": \"write this\" }` (or a list of `{ term, use }`). Where a string has the first form, the edit has the second, and the first form is never written. Whole words; up to 500 entries. To pin a word as it is, use `keep`.","oneOf":[{"type":"object","additionalProperties":{"type":"string","maxLength":200}},{"type":"array","items":{"type":"object","required":["term","use"],"properties":{"term":{"type":"string","maxLength":200},"use":{"type":"string","maxLength":200}},"additionalProperties":true}}]},"orthography":{"type":"string","enum":["source","standard"],"description":"`source` (default): the writer's spelling style stays where Persian accepts more than one form (half-spaces in compounds, لطفا / لطفاً, متاسفانه / متأسفانه, the ezafe mark on ه); only plain mistakes are corrected. `standard`: standard Persian orthography (half-spaces in compounds and affixes, tanvin, hamza); the ezafe mark on ه still follows the text."},"minWords":{"type":"integer","minimum":1,"maximum":20,"description":"Strings with fewer words than this are left as they are (labels, buttons, short headings). Default 1: every Persian string is read."},"depth":{"type":"string","enum":["full","light"],"description":"Deprecated and ignored: every sentence is written again in full. Accepted so older requests do not fail.","deprecated":true},"maxGrowthPercent":{"type":"integer","minimum":0,"maximum":100,"description":"An edit may not be longer than the original by more than this percentage; for text with line breaks (`<br>`, a new line) the limit holds for each line. An edit over the limit is tried once more, then the string keeps its original text and is listed in `failed`."},"onlyChanged":{"type":"boolean","description":"`true`: `changes` lists only the strings that changed. Default false: one entry per Persian string."},"notes":{"type":"object","description":"Per string: where it is used, and an optional length limit, as for translation.","additionalProperties":{"oneOf":[{"type":"string","maxLength":500},{"type":"object","properties":{"note":{"type":"string","maxLength":500},"maxLength":{"type":"integer","minimum":1,"maximum":10000}},"additionalProperties":false}]}},"skipKeys":{"type":"array","items":{"type":"string"},"description":"`json`: key paths to leave as they are. Parts are joined by dots; `*` matches inside one part and `**` any number of parts: `meta.*`, `**.url`, `items.*.title` (or `items[*].title`). A pattern that matches no string is reported in `warnings`."},"frontMatterKeys":{"type":"array","items":{"type":"string"},"description":"`markdown`: front-matter keys whose values are edited. Default `title`, `description`, `summary`, `excerpt`, `subtitle`."},"setDirection":{"type":"boolean","description":"`html`: on a full page, set `lang=\"fa\" dir=\"rtl\"` on `<html>`. Default false for editing (the page keeps its own)."},"project":{"type":"string","maxLength":100,"description":"Your name for the site or app (letters, digits, `_ . -`). Edits are remembered per project, apart from translations."},"memory":{"type":"string","enum":["use","refresh","off"],"description":"`use` (default): strings edited before come back the same and are free. `refresh`: edit again. `off`: do not read or save memory."},"async":{"type":"boolean","description":"Always run in the background and answer 202, even for small work."},"dryRun":{"type":"boolean","description":"Only price the request: nothing is edited, held or charged."},"externalId":{"type":"string","description":"Your own reference for this job (up to 200 characters)."},"metadata":{"type":"object","description":"Up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON).","additionalProperties":true}},"additionalProperties":false},"ContentEditQuote":{"type":"object","properties":{"maxFara":{"type":"integer","description":"The most this request can cost. It is held when the work starts; the charge is the actual cost and never more."},"characters":{"type":"integer","description":"Characters of Persian text that will be edited (after memory)."},"strings":{"type":"integer","description":"Strings found in the content."},"editable":{"type":"integer","description":"Strings with Persian text."},"fromMemory":{"type":"integer","description":"Strings answered from memory (free)."},"toEdit":{"type":"integer","description":"Strings that will be edited."},"repeated":{"type":"integer","description":"Of those, strings that repeat another string of the request: they are edited once, get the same text, and are not counted in `characters`."},"runs":{"type":"string","enum":["now","background"],"description":"`now`: the answer will carry the result. `background`: the answer is 202 with a job to poll."}},"additionalProperties":true},"ContentWarning":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["SKIP_KEYS_UNMATCHED","SKIP_KEYS_IGNORED"],"description":"`SKIP_KEYS_UNMATCHED`: a `skipKeys` pattern matched no string. `SKIP_KEYS_IGNORED`: `skipKeys` was sent with a format other than `json`."},"message":{"type":"string"}},"additionalProperties":true},"ContentEditQuoteResponse":{"type":"object","required":["quote"],"properties":{"object":{"type":"string","const":"content_edit_quote"},"quote":{"$ref":"#/components/schemas/ContentEditQuote"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ContentWarning"},"description":"Things in the request that had no effect. Left out when there are none."}},"additionalProperties":true},"ContentEditJob":{"type":"object","required":["object","status"],"properties":{"id":{"type":["string","null"],"description":"Job id. `null` when everything came from memory (no job was made)."},"object":{"type":"string","const":"content_edit"},"status":{"type":"string","enum":["queued","running","completed","completed_partial","failed"],"description":"`queued`, `running`, and the end states `completed`, `completed_partial` (some strings could not be edited; see `failed`), `failed`."},"format":{"type":"string"},"project":{"type":"string"},"counts":{"type":"object","properties":{"strings":{"type":"integer"},"editable":{"type":"integer"},"fromMemory":{"type":"integer"},"edited":{"type":"integer","description":"Strings edited so far (it grows while the job runs)."},"changed":{"type":"integer","description":"Strings whose text changed."},"failed":{"type":"integer"}},"additionalProperties":true},"price":{"type":"object","properties":{"maxFara":{"type":"integer","description":"The quote, held while the job runs."},"chargedFara":{"type":["integer","null"],"description":"What was charged (null until the job ends)."}},"additionalProperties":true},"changes":{"type":"array","items":{"type":"object","required":["key","changed"],"properties":{"key":{"type":"string","description":"The JSON key path, `line N` for Markdown, or the HTML element."},"changed":{"type":"boolean","description":"True when the text changed."},"kind":{"type":"string","enum":["spelling","wording"],"description":"Only when changed. `spelling`: only half-spaces, marks, commas, quotes or letter forms differ (the same words in the same order). `wording`: words changed."},"before":{"type":"string","description":"The original text (only when changed; left out when the changed text of the job is very large)."},"after":{"type":"string","description":"The edited text, as it is in `content` (only when changed; left out together with `before`)."},"note":{"type":"string","description":"A short Persian note on the main change (only when changed; may be missing)."}},"additionalProperties":true},"description":"One entry per Persian string, in content order (only the changed ones with `onlyChanged`). Only on a finished job."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ContentWarning"},"description":"Things in the request that had no effect. Left out when there are none."},"failed":{"type":"array","items":{"type":"object","required":["key","reason"],"properties":{"key":{"type":"string"},"reason":{"type":"string"}},"additionalProperties":true},"description":"Strings that could not be edited safely. They keep their original text in `content`."},"content":{"description":"The edited content, in the same shape as the input. Only on a finished job.","oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"string"}]},"quote":{"$ref":"#/components/schemas/ContentEditQuote"},"externalId":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"links":{"type":"object","properties":{"self":{"type":"string","format":"uri"}},"additionalProperties":true}},"additionalProperties":true},"ContentMemoryCleared":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"integer","description":"Memory entries removed."}},"additionalProperties":true},"TranscriptionPricing":{"type":"object","properties":{"faraPerMin":{"type":"number"},"faraPerMinWithTranslation":{"type":"number"},"maxDurationSeconds":{"type":"integer"},"audioMaxBytes":{"type":"integer"},"targetLanguages":{"type":"array","items":{"type":"string"},"description":"Allowed `targetLanguage` values; `none` means no translation."}},"additionalProperties":true},"TranscriptionCreateRequest":{"type":"object","properties":{"audio":{"type":"string","format":"binary","description":"Audio file: mp3, m4a/mp4, wav, webm, ogg, or flac (up to 200 MB)."},"sourceLanguage":{"type":"string","description":"`auto` or a 2-3 letter language code. Default `auto`."},"targetLanguage":{"type":"string","description":"Translate the transcript into this language, or `none`. See GET /api/v1/transcription/pricing."},"externalId":{"type":"string","description":"Early access: your own reference for this job (up to 200 characters). Echoed in the job, its webhook events and its ledger rows."},"metadata":{"type":"object","description":"Early access: up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Multipart forms send it as a JSON string. Echoed in the job and its webhook events.","additionalProperties":true},"audioUrl":{"type":"string","format":"uri","description":"An https link we download the recording from, instead of uploading it (for example a presigned storage link). Any account. Same size limit as an upload; up to 3 redirects; private addresses are refused. Send it in a JSON body with no file and no `uploadId`."}},"additionalProperties":true},"TranscriptionCreateJsonRequest":{"type":"object","description":"Send `uploadId` (a finished chunked upload) or, with early access, `audioUrl`.","properties":{"uploadId":{"type":"string","description":"A finished chunked upload (`upl_...`, see POST /api/v1/uploads) to make the job from, in place of a file. Any account. Nothing is held or charged for the upload itself; one upload makes one job."},"audioUrl":{"type":"string","format":"uri","description":"An https link we download the recording from, instead of uploading it (for example a presigned storage link). Any account. Same size limit as an upload; up to 3 redirects; private addresses are refused. Send it in a JSON body with no file and no `uploadId`."},"sourceLanguage":{"type":"string","description":"`auto` or a 2-3 letter language code. Default `auto`."},"targetLanguage":{"type":"string","description":"Translate the transcript into this language, or `none`. See GET /api/v1/transcription/pricing."},"externalId":{"type":"string","description":"Early access: your own reference for this job (up to 200 characters). Echoed in the job, its webhook events and its ledger rows."},"metadata":{"type":"object","description":"Early access: up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Multipart forms send it as a JSON string. Echoed in the job and its webhook events.","additionalProperties":true}},"additionalProperties":true},"TranscriptionJob":{"type":"object","required":["_id","status"],"properties":{"_id":{"type":"string","description":"Job id."},"displayName":{"type":["string","null"],"description":"The name the customer gave the job (null: the original name is shown)."},"status":{"type":"string","description":"`pending`, `active`, and the end states `completed`, `failed`, `cancelled`."},"stage":{"type":"string"},"progress":{"type":"number"},"originalFilename":{"type":"string"},"durationSeconds":{"type":"number"},"sourceLanguage":{"type":"string"},"targetLanguage":{"type":"string"},"detectedLanguage":{"type":["string","null"]},"speakerCount":{"type":["integer","null"]},"translationSkipped":{"type":"boolean"},"sourcePreview":{"type":"string","description":"First 600 characters of the transcript. Only on GET /api/v1/transcription/jobs/{id}."},"translationPreview":{"type":"string","description":"First 600 characters of the translation."},"cost":{"$ref":"#/components/schemas/PublicJobCost"},"customerErrorCode":{"type":["string","null"],"enum":["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],"description":"Why the job failed, as a stable code. Null while the job is fine."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"TranscriptionJobList":{"type":"object","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptionJob"}}},"additionalProperties":true},"WebhookEndpoint":{"type":"object","required":["id","url","events","enabled"],"properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri"},"description":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"description":"Event types sent to this endpoint. `[\"*\"]` means all."},"enabled":{"type":"boolean"},"disabledReason":{"type":["string","null"],"description":"`disabled_by_user`, `endpoint_gone` (answered 410), or `failing_for_days`."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"lastSuccessAt":{"type":["string","null"],"format":"date-time"},"lastFailureAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"WebhookEndpointWithSecret":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","required":["secret"],"properties":{"secret":{"type":"string","description":"Signing secret, `whsec_` + base64. Shown only in this response. Store it safely."}},"additionalProperties":true}]},"WebhookEndpointList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"additionalProperties":true},"WebhookEndpointCreateRequest":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public https URL that will receive events."},"events":{"type":"array","items":{"type":"string","enum":["*","translation.analyzed","translation.images_waiting","translation.completed","translation.completed_partial","translation.failed","translation.cancelled","video.awaiting_review","video.completed","video.failed","video.cancelled","meeting.awaiting_review","meeting.completed","meeting.failed","meeting.cancelled","audio.awaiting_review","audio.completed","audio.failed","audio.cancelled","farsi_tts.awaiting_review","farsi_tts.completed","farsi_tts.failed","farsi_tts.cancelled","transcription.completed","transcription.failed","transcription.cancelled","content.completed","content.completed_partial","content.failed","account.balance_low","meeting.minutes_revised","meeting.minutes_regenerated","meeting.document_ready","meeting.mindmap_ready","webhook.test"]},"description":"Event types to send. Default `[\"*\"]` (all)."},"description":{"type":"string","description":"Up to 200 characters."}},"additionalProperties":true},"WebhookEndpointUpdateRequest":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["*","translation.analyzed","translation.images_waiting","translation.completed","translation.completed_partial","translation.failed","translation.cancelled","video.awaiting_review","video.completed","video.failed","video.cancelled","meeting.awaiting_review","meeting.completed","meeting.failed","meeting.cancelled","audio.awaiting_review","audio.completed","audio.failed","audio.cancelled","farsi_tts.awaiting_review","farsi_tts.completed","farsi_tts.failed","farsi_tts.cancelled","transcription.completed","transcription.failed","transcription.cancelled","content.completed","content.completed_partial","content.failed","account.balance_low","meeting.minutes_revised","meeting.minutes_regenerated","meeting.document_ready","meeting.mindmap_ready","webhook.test"]}},"description":{"type":"string"},"enabled":{"type":"boolean","description":"Turn the endpoint off or back on. Turning it on clears the failure count."}},"additionalProperties":true},"WebhookEventTypes":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"string","enum":["translation.analyzed","translation.images_waiting","translation.completed","translation.completed_partial","translation.failed","translation.cancelled","video.awaiting_review","video.completed","video.failed","video.cancelled","meeting.awaiting_review","meeting.completed","meeting.failed","meeting.cancelled","audio.awaiting_review","audio.completed","audio.failed","audio.cancelled","farsi_tts.awaiting_review","farsi_tts.completed","farsi_tts.failed","farsi_tts.cancelled","transcription.completed","transcription.failed","transcription.cancelled","content.completed","content.completed_partial","content.failed","account.balance_low","meeting.minutes_revised","meeting.minutes_regenerated","meeting.document_ready","meeting.mindmap_ready","webhook.test"]}}},"additionalProperties":true},"WebhookDelivery":{"type":"object","required":["id","eventId","eventType","status"],"properties":{"id":{"type":"string","description":"Delivery id. Also the pagination cursor."},"eventId":{"type":"string","description":"Same as the `webhook-id` header."},"eventType":{"type":"string"},"status":{"type":"string","description":"`pending`, `succeeded`, or `failed`."},"attempts":{"type":"integer"},"nextAttemptAt":{"type":["string","null"],"format":"date-time"},"lastAttemptAt":{"type":["string","null"],"format":"date-time"},"lastResponseStatus":{"type":["integer","null"]},"lastError":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"WebhookDeliveryPage":{"type":"object","description":"One page of deliveries, newest first. Kept for 30 days.","required":["data","hasMore","nextCursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"hasMore":{"type":"boolean","description":"True when there are more items after this page."},"nextCursor":{"type":["string","null"],"description":"Pass as `startingAfter` to get the next page. Null on the last page."}},"additionalProperties":true},"WebhookTestResult":{"type":"object","properties":{"deliveryId":{"type":"string"},"eventId":{"type":"string"},"delivered":{"type":"boolean","description":"True when your endpoint answered 2xx."},"responseStatus":{"type":["integer","null"]},"error":{"type":["string","null"]}},"additionalProperties":true},"WebhookEventData":{"type":"object","required":["object","id","status","links"],"properties":{"object":{"type":"string","enum":["translation","video","meeting","audio","farsi_tts","transcription","content","account"],"description":"Job kind, or `account` for account events."},"id":{"type":"string","description":"Job id."},"status":{"type":"string","description":"The job status that caused this event."},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"links":{"type":"object","required":["self"],"properties":{"self":{"type":"string","format":"uri","description":"Full URL of the job. Fetch it for the current state. For translations this is GET /api/v1/translate/status/{jobId}."}},"additionalProperties":true},"errorCode":{"type":"string","description":"Translation only, on `failed`: same as `customerErrorCode`."},"customerErrorCode":{"type":"string","description":"On `failed`: the job's customer error code."},"externalId":{"type":"string","description":"Early access: the job's `externalId`, when it has one."},"metadata":{"type":"object","description":"Early access: the job's `metadata`, when it has one.","additionalProperties":true},"balance":{"type":"number","description":"`account.balance_low` only: the balance when the event was made."},"threshold":{"type":"number","description":"`account.balance_low` only: your threshold."},"currency":{"type":"string","description":"`account.balance_low` only: `FARA`."}},"additionalProperties":true},"WebhookEvent":{"type":"object","required":["type","timestamp","id","data"],"properties":{"type":{"type":"string","enum":["translation.analyzed","translation.images_waiting","translation.completed","translation.completed_partial","translation.failed","translation.cancelled","video.awaiting_review","video.completed","video.failed","video.cancelled","meeting.awaiting_review","meeting.completed","meeting.failed","meeting.cancelled","audio.awaiting_review","audio.completed","audio.failed","audio.cancelled","farsi_tts.awaiting_review","farsi_tts.completed","farsi_tts.failed","farsi_tts.cancelled","transcription.completed","transcription.failed","transcription.cancelled","content.completed","content.completed_partial","content.failed","account.balance_low","meeting.minutes_revised","meeting.minutes_regenerated","meeting.document_ready","meeting.mindmap_ready","webhook.test"],"description":"Event type, `<object>.<status>`."},"timestamp":{"type":"string","format":"date-time","description":"When the event was made."},"id":{"type":"string","description":"Event id. Same as the `webhook-id` header, and the same across retries."},"data":{"$ref":"#/components/schemas/WebhookEventData"}},"additionalProperties":true},"WebhookTestEvent":{"type":"object","required":["type","timestamp","id","data"],"properties":{"type":{"type":"string","const":"webhook.test"},"timestamp":{"type":"string","format":"date-time"},"id":{"type":"string"},"data":{"type":"object","required":["object","id"],"properties":{"object":{"type":"string","const":"webhook_endpoint"},"id":{"type":"string","description":"Webhook endpoint id."}},"additionalProperties":true}},"additionalProperties":true},"PaymentPackage":{"type":"object","properties":{"id":{"type":"string"},"priceTomans":{"type":"number","description":"Listed pack price in toman, before value added tax."},"vatTomans":{"type":"number","description":"Value added tax on this pack in toman (price × `vatRate`, rounded to the nearest toman, halves up)."},"totalTomans":{"type":"number","description":"What you pay on the website: `priceTomans` + `vatTomans`."},"creditFara":{"type":"number","description":"Fara you get. VAT does not change it."},"perFara":{"type":"number"},"discount":{"type":"number"},"shelf":{"type":"string"},"description":{"type":"string"}},"additionalProperties":true},"PaymentPackages":{"type":"object","required":["packages"],"properties":{"vatRate":{"type":"number","description":"Value added tax added at checkout, as a fraction (0.1 means 10%)."},"packages":{"type":"array","items":{"$ref":"#/components/schemas/PaymentPackage"}},"gatewayEnabled":{"type":"boolean","description":"Whether buying is open right now (on the website)."}},"additionalProperties":true},"PaymentStatus":{"type":"object","properties":{"authority":{"type":"string"},"status":{"type":"string"},"refId":{"type":["string","null"],"description":"Bank reference, when completed."}},"additionalProperties":true},"PaymentHistory":{"type":"object","required":["payments","total","page","totalPages"],"properties":{"payments":{"type":"array","items":{"type":"object","description":"A payment record.","additionalProperties":true}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"additionalProperties":true},"Profile":{"type":"object","description":"Your account profile (email, name, verification flags, Fara totals, and settings). Secrets are never included.","additionalProperties":true},"UsageStats":{"type":"object","properties":{"totals":{"type":"object","properties":{"totalTranslations":{"type":"integer"},"completedTranslations":{"type":"integer"},"totalWords":{"type":"integer"},"totalCost":{"type":"number","description":"Fara."},"totalParagraphs":{"type":"integer"}},"additionalProperties":true},"monthly":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer"},"month":{"type":"integer"},"translations":{"type":"integer"},"words":{"type":"integer"},"cost":{"type":"number"}},"additionalProperties":true},"description":"Last 12 months."}},"additionalProperties":true},"CreditsHistory":{"type":"object","required":["balance","transactions"],"properties":{"balance":{"type":"number"},"chargebackLiability":{"type":"number"},"lifetimeTopup":{"type":"number"},"lifetimeUsage":{"type":"number"},"lastTransactionAt":{"type":["string","null"],"format":"date-time"},"transactions":{"type":"array","items":{"type":"object","description":"A ledger entry.","additionalProperties":true}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"additionalProperties":true},"DashboardStats":{"type":"object","properties":{"jobs":{"type":"object","description":"Counts of your translation jobs by status.","additionalProperties":true},"usage":{"type":"object","description":"Words and Fara used.","additionalProperties":true},"recentJobs":{"type":"array","items":{"type":"object","additionalProperties":true}},"trends":{"type":"object","properties":{"daily":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true},"user":{"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string"},"isAdmin":{"type":"boolean"}},"additionalProperties":true},"meta":{"type":"object","properties":{"generatedAt":{"type":["string","null"],"format":"date-time"},"cacheExpiry":{"type":"integer"}},"additionalProperties":true}},"additionalProperties":true}},"responses":{"BadRequest":{"description":"The request is not valid (`BAD_REQUEST`, `INVALID_IDEMPOTENCY_KEY`, or a route-specific code). An uploaded file that is too large or of the wrong type also answers 400 `BAD_REQUEST`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Unauthorized":{"description":"Missing, invalid, or expired API key (`INVALID_API_KEY`, `API_KEY_EXPIRED`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"PaymentRequired":{"description":"Not enough Fara (`INSUFFICIENT_CREDITS`) or an unsettled chargeback (`CHARGEBACK_LIABILITY_OUTSTANDING`). The body may include `balance`, `estimatedCost`, `cost`, or `required`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Forbidden":{"description":"Not allowed: wrong scope (`INSUFFICIENT_SCOPE`), endpoint not open to API keys (`API_KEY_ROUTE_NOT_ALLOWED`), account or API disabled, email not verified, or the resource belongs to another account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotFound":{"description":"Not found, not yours, or the tool is switched off (`FEATURE_DISABLED`: video and meetings, and the translation price call while price-first is off).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Conflict":{"description":"Conflicts with the current state (for example the job is in the wrong status), or `IDEMPOTENCY_KEY_IN_USE` / `IDEMPOTENCY_KEY_ALREADY_USED`.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Gone":{"description":"No longer available for this job.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"PayloadTooLarge":{"description":"A field is too long. The body may include `maxChars`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"UnprocessableContent":{"description":"The `Idempotency-Key` was used with a different request (`IDEMPOTENCY_KEY_REUSED`), or the content cannot be processed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Locked":{"description":"The job is locked (`ADMIN_REVIEW_REQUIRED`) or its one free retry is used (`RETRY_LIMIT_REACHED`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"PreconditionRequired":{"description":"`If-Match` with the current `reviewVersion` is required (`REVIEW_VERSION_REQUIRED`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"RateLimited":{"description":"Rate limit reached (`RATE_LIMITED`). Wait for `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"BadGateway":{"description":"A service we depend on returned an unusable answer. Stored under an `Idempotency-Key`: check whether the work happened, then retry with a new key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"ServiceUnavailable":{"description":"Busy or briefly unavailable (`SERVICE_UNAVAILABLE`, `SERVICE_BUSY`, `CREDIT_RESERVATION_UNAVAILABLE`, or a route-specific code), or (audio, text to speech, transcription, proofreading) the tool is switched off (`FEATURE_DISABLED`). Not stored under an `Idempotency-Key`: safe to retry with the same key after `Retry-After`.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"GatewayTimeout":{"description":"The work took too long. Stored under an `Idempotency-Key`: check whether the work happened, then retry with a new key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"A new unique value (a UUID is best) per action. Repeats with the same key within 24 hours get the first answer back instead of running again. Strongly advised on every request that can spend Fara.","schema":{"type":"string","minLength":1,"maxLength":255}},"IfMatch":{"name":"If-Match","in":"header","required":true,"description":"The job's current `reviewVersion`, bare (`3`) or quoted (`\"3\"`).","schema":{"type":"string"}}},"headers":{"RateLimit":{"description":"What is left of each rate limit, e.g. `\"api_key\";r=87;t=34` (draft-ietf-httpapi-ratelimit-headers).","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The rate limits that apply, e.g. `\"api_key\";q=120;w=60`.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"`true` when this is a stored answer to an earlier request with the same `Idempotency-Key`.","schema":{"type":"string","enum":["true"]}},"Location":{"description":"Path of the created or target resource.","schema":{"type":"string"}}}}}