# API changelog

> Changes to the public API, newest first. Inside `v1` changes only add endpoints, fields or values; anything that would break a client gets a new version path and at least 90 days' notice here.

## At a glance

- Current version: `v1` (OpenAPI `info.version` 1.0.0)
- Compatible changes you must tolerate: new endpoints, new optional request fields, new response fields, new `status` values (treat unknown ones as "still running"), new error `code` values (fall back to the rule for the HTTP status), new webhook event types (ignore unknown ones).

## 2026-11-17 — Persian editing: the new text is Persian people really say

- `POST /api/v1/content/edit`: a sentence keeps its verb and is no longer cut down to a phrase or to fragments set apart by commas («مسئولیت هر طرف از ابتدا روشن است» does not become «مسئولیت هر طرف، از ابتدا روشن»); a heading that is a sentence stays a sentence; a question stays a question in the same person; an idiom is not made literal. A sentence that cannot be written again as a full sentence comes back as it was.
- Edits remembered before this change are not reused: the next request edits those strings again.

## 2026-11-16 — Persian editing: every sentence is written again in full

- `POST /api/v1/content/edit` now writes every sentence and paragraph again from its meaning, and writes headings again as headings. Buttons, menu and footer links, form labels, plan names and fixed section names keep their usual wording unless a clearly better one exists. Each text is edited with its neighbours and the page's headings in view. Send `minWords` to leave short texts alone and `keep` to pin words.
- The request field `depth` (added earlier the same day) is gone: there is one depth. A request that still sends `depth` is accepted and the field is ignored.
- The quote for editing is higher, because writing every text again in full costs more. The price you pay is still the work done, never more than the quote. Edits remembered before this change are not reused.

## 2026-11-16 — Persian editing: one form per word, fuller report

- `POST /api/v1/content/edit`: identical strings get the same edit (edited once, priced once); a word that was kept in some strings and replaced in others, or a compound written both joined and apart, comes back in one form; titles and labels keep their shape; the writer's spelling style stays by default.
- New request fields on `POST /api/v1/content/edit`: `glossary` (write one term for another everywhere), `orthography` (`source` default, `standard`), `minWords`, `maxGrowthPercent`, `onlyChanged`.
- `changes` entries of a changed string now carry `kind` (`spelling` or `wording`), `before` and `after`.
- Both content endpoints: the spacing next to a tag or a line break is kept as sent; `skipKeys` also takes a list index as a part of its own (`faq.*.q`); a pattern that matches nothing is reported in `warnings`; the quote has `repeated`; `counts.edited` / `counts.translated` grow while a job runs.
- `POST /api/v1/content/translate`: a sentence that appears more than once in a request is translated once.
- The quote for editing is closer to the real cost (about a third lower for the same text).
- Edits remembered before this change are not reused: the next request edits those strings again.

## 2026-11-16 — Persian editing

- New: `POST /api/v1/content/edit` rewrites Persian text (`json`, `markdown`, `html`, `strings`) into natural, native Persian with the same meaning and structure, and lists per string whether it changed (`changes`). Jobs share `GET /api/v1/content/jobs/{id}` (`object: "content_edit"`). See [Persian editing](https://faraatarjomeh.com/api/v1/docs/guides/persian-editing.md).
- New assistant (MCP) tools: `estimate_persian_edit`, `edit_persian_content`.
- In-request content answers now carry the full `counts` (`strings`, `translatable`, `fromMemory` were 0 there before).

## 2026-11-16 — files from a link, top-up links, agent sign-in, more assistant tools

- Documents from a link: `POST /api/v1/translate/analyze`, `/analyze-stream` and `/upload` take JSON `{ "fileUrl": "https://…" }` instead of an upload. Any account. New error codes `INVALID_FILE_URL` (400) and `FILE_URL_FETCH_FAILED` (422).
- `audioUrl` on `POST /api/v1/meetings/jobs` and `POST /api/v1/transcription/jobs` is open to every account (it was early access). Sending `uploadId` and `audioUrl` together answers `400 BAD_REQUEST`.
- A `402 INSUFFICIENT_CREDITS` answer to an API key carries `topUpUrl` (the website page where the user adds Fara) and, when the price and balance are known, `shortfall`. A `402 SPEND_LIMIT_REACHED` answer carries `limitsUrl`.
- Agent sign-in with a code (OAuth 2.0 device flow): POST to `/api/v1/oauth/device`, the user allows it at `/connect?device=…` with a monthly limit, and the agent polls `/api/v1/oauth/token` for its own API key. See [Authentication](https://faraatarjomeh.com/api/v1/docs/authentication.md#sign-an-agent-in-with-a-code-no-key-to-copy).
- New assistant (MCP) tools: `estimate_document`, `translate_document`, `make_meeting_minutes`, `get_meeting_job`, `transcribe_audio`, `get_transcription_job`, `estimate_price`, `get_top_up_link`.

## 2026-11-16 — website and app copy into Persian

- New: `POST /api/v1/content/translate` translates website and app text (`json`, `markdown`, `html`, `strings`) into Persian and returns the same structure. `GET /api/v1/content/jobs`, `GET /api/v1/content/jobs/{id}`, `DELETE /api/v1/content/jobs/{id}`, `DELETE /api/v1/content/memory`. See [Website and app copy](https://faraatarjomeh.com/api/v1/docs/guides/content-translation.md).
- New webhook events `content.completed`, `content.completed_partial`, `content.failed`.
- New `feature` value `content_translation` for `POST /api/v1/estimate`.
- New error codes `CONTENT_FORMAT_INVALID` (400) and `CONTENT_TOO_LARGE` (413).

## 2026-11-11 — media jobs charged at their real cost above the hold

- Video, meeting minutes, transcription, Persian text-to-speech and podcast/audiobook jobs are now charged their real cost even when it is above the hold, if your balance covers the difference. Otherwise only the hold is charged. The difference is an extra ledger row, as for PDF translation. Meeting tools are unchanged: never more than their hold.

## 2026-11-04 — revise for every account; a rename reaches names the writer heard

- `POST /api/v1/meetings/jobs/{id}/minutes/revise` is open to every account, not only early access. Paid as before.
- A speaker rename now also replaces an attendee name the minutes writer picked up on its own ("آقای احمدیان", "علی") when every word of it appears in the new name and only one renamed speaker fits; before, such names stayed as they were in the PDF.
- Speech-to-text is on the previous engine again: `glossary` is heard by the transcriber and adds 20% to the price; `participants` cap the speaker count. The 2026-11-03 notes about the new engine no longer apply.

## 2026-11-03 — speakers: rename for every account, rename by quote, names checked

- `POST /api/v1/meetings/jobs/{id}/speakers` renames speakers on completed meetings for every account, not only early access.
- The same call also works while the meeting is still being made (once the transcript exists): it answers 202 and the names go into the PDF when it is made, so nothing is rendered twice. Before the transcript: 409 `TRANSCRIPT_NOT_READY`.
- An entry can send `quote` (a line the person said, 3+ words) instead of `speakerId`; the speaker who said it is renamed. `atSeconds` picks one when several people said the same words; `dryRun: true` shows the matches and changes nothing. New error codes `SPEAKER_QUOTE_NOT_FOUND`, `SPEAKER_QUOTE_AMBIGUOUS`, `SPEAKER_QUOTE_CONFLICT` (422). See [Naming a speaker by something they said](https://faraatarjomeh.com/api/v1/docs/guides/meeting-extras.md#naming-a-speaker-by-something-they-said).
- Every meeting's `minutes` now has `speakers` (one entry per speaker id). A name is kept only when the transcript shows it (a self-introduction or being addressed by name) or it is one of your `attendees`; otherwise the speaker stays `speaker_N` (shown as "Speaker N+1").
- `speaker_N` is "Speaker N+1" everywhere: minutes, PDF, Word file, TXT/SRT/VTT. Speaker ids are numbered in the order people first speak.
- New speech-to-text engine: `glossary` reaches the minutes writer only and no longer adds 20% to the price; `participants` name speakers but no longer cap the speaker count.

## 2026-10-26 — Word file and one-page summary for every meeting

- `GET /api/v1/meetings/jobs/{id}/docx` is now open to every account, not only early access. Free.
- New: `GET /api/v1/meetings/jobs/{id}/one-page/pdf`, the summary, decisions and action items on one A4 page. Free.
- New error code `MEETING_HAS_NO_MINUTES` (409): the meeting was made as a transcript only.

## 2026-10-26 — choose the chunk size of an upload

- `POST /api/v1/uploads` takes an optional `chunkSize`, from 262144 (256 KB) to 8388608 (8 MB, the default). Smaller chunks help on a slow or unstable line: each chunk is sent before the line drops. See [Chunked uploads](https://faraatarjomeh.com/api/v1/docs/guides/chunked-uploads.md).

## 2026-10-26 — translate an uploaded video file

- `POST /api/v1/video/jobs/estimate` and `POST /api/v1/video/jobs` take `uploadId` (a finished chunked upload) in place of `url`. Send one, not both. MP4, MOV, MKV, WebM or AVI with a sound track, up to 1 GB. See [Video](https://faraatarjomeh.com/api/v1/docs/guides/video.md).
- `POST /api/v1/uploads` takes `purpose: "video"`.
- Video jobs have new fields `sourceType` (`youtube` or `upload`) and `originalFilename`. `sourceUrl` is `null` for an upload.
- New error code `UNSUPPORTED_VIDEO_FILE`.

## 2026-10-20 — audio-to-text as PDF and Word

- `GET /api/v1/transcription/jobs/{id}/download` takes `format=pdf` and `format=docx`, for the transcript and its translation. Free, also for jobs finished before this change.

## 2026-09-29 — simpler API: one price call, one cancel verb, removed duplicates

- New: `POST /api/v1/estimate` prices any product (translation, meeting, audio-to-text, video, Persian voice, podcast, audiobook, paid meeting tools) with one call. Free.
- New: `POST /api/v1/jobs/{jobId}/cancel` cancels a translation without the risk of deleting a finished one, like `POST …/cancel` on every other product.
- New (early access): `GET /api/v1/meetings/jobs/{id}/operations` lists every rebuild, revision, document and mind map of a meeting in one shape.
- `GET /api/v1/meetings/jobs/{id}/speakers` now also returns each speaker's `speakerId`, `name`, `source`, `matchConfidence` and `talkSeconds`.
- `minutesRegeneration` on a meeting now carries `error: {code, message}` when it fails, like `minutesRevision` and documents.
- Removed for API keys (they answer `410 GONE` with the replacement in `replacement`; no API client was using them; the website is not affected):

| Removed | Use instead |
|---|---|
| `GET /api/v1/jobs/{jobId}` | `GET /api/v1/translate/status/{jobId}` |
| `POST /api/v1/meetings/jobs/{id}/approve` | nothing: meetings are approved automatically |
| `PATCH /api/v1/meetings/jobs/{id}/minutes` | `POST /api/v1/meetings/jobs/{id}/minutes/revise` |
| `GET /api/v1/meetings/jobs/{id}/speakers/list` | `GET /api/v1/meetings/jobs/{id}/speakers` |
| `GET /api/v1/profile`, `GET /api/v1/dashboard/stats` | `GET /api/v1/account` |
| `GET /api/v1/profile/credits`, `GET /api/v1/profile/usage` | `GET /api/v1/account/transactions` |

- The `meeting.awaiting_review` event is no longer sent (meetings are approved automatically).

## 2026-09-29 — revise minutes, context, Word, documents, branding, categories (early access)

All for accounts with `meetings_api_v2`. See [Meetings: early-access features](https://faraatarjomeh.com/api/v1/docs/guides/meeting-extras.md).

- New: `POST /api/v1/meetings/jobs/{id}/minutes/revise` changes the minutes by instruction (paid). The job's `minutesRevision` shows progress and `changes`.
- New: `GET /api/v1/meetings/jobs/{id}/minutes/versions`, `GET …/minutes/versions/{version}` and `POST …/minutes/versions/{version}/restore` (undo; free).
- New: `PUT`, `GET` and `DELETE /api/v1/meetings/jobs/{id}/context`: the meeting's chat, shared notes and events, used by the minutes, `ask`, rebuilds, revisions and the mind map (free). `ask` citations now carry `source` (`transcript`, `chat`, `notes`, `event`).
- New: `GET /api/v1/meetings/jobs/{id}/docx`: the minutes as a Word file.
- New: `POST` and `GET /api/v1/meetings/jobs/{id}/documents`, `GET …/documents/{docId}`: more documents from a finished meeting without transcribing again (1 Fara each).
- New: `POST /api/v1/meetings/jobs/{id}/mindmap`: a mind map for a meeting created without one (1 Fara).
- `POST /api/v1/meetings/estimate` lists `revise_minutes`, `write_minutes`, `document` and `mindmap` in `tools`.
- New: `PUT /api/v1/meetings/branding` (company name, header, footer, confidentiality notice, colours); `GET /api/v1/meetings/branding` returns them.
- New: `GET` and `PUT /api/v1/meetings/categories`. Minutes written after that carry `category` and `tags`.
- `POST /api/v1/meetings/jobs` takes `glossary`, `participants` and `deleteAfterDays`.
- New webhook events: `meeting.minutes_revised`, `meeting.minutes_regenerated`, `meeting.document_ready`, `meeting.mindmap_ready`.
- New error codes: `INSTRUCTION_NOT_APPLICABLE`, `DOCUMENT_NOT_READY`, `DOCUMENT_LIMIT_REACHED`. `POST …/minutes/regenerate` on a transcript-only meeting now answers `409 MINUTES_NOT_READY`.
- A rebuild now keeps the document type chosen at upload, updates the mind map, and reports `done` only after the new PDF is stored.
- Ledger (`GET /api/v1/account/transactions`): settlement rows now carry `chargedAmount` (what the work cost) and `heldAmount`. Their `amount` stays 0.
- Paid meeting tools that need a transcript (`ask`, `highlights`, `analytics`, `minutes/regenerate`) answer `409 TRANSCRIPT_NOT_READY` before holding any Fara when nothing was said in the meeting; `recap-email` answers `409 MINUTES_NOT_READY` the same way.

## 2026-09-27 — meeting documents, minutes language, mind map

- `POST /api/v1/meetings/jobs` takes, for every account: `outputLanguage` (`fa`, `en`: the minutes language), `output` (`full`, `summary`, `key_points`, `transcript`) and `mindmap` (`true`/`false`). The answer echoes them as `outputOptions`. See [Meeting minutes](https://faraatarjomeh.com/api/v1/docs/guides/meeting-minutes.md#documents).
- `output: transcript` makes the timed transcript alone, priced at `faraPerMinTranscript` (new in `GET /api/v1/meetings/pricing`, with `outputs` and `outputLanguages`).
- New: `GET /api/v1/meetings/jobs/{id}/mindmap` and `GET /api/v1/meetings/jobs/{id}/mindmap/pdf` (free).
- `GET /api/v1/meetings/jobs/{id}/transcript` is open to every account (it was early access).

## 2026-09-27 — meeting transcript as TXT, one transcription per file

- `GET /api/v1/meetings/jobs/{id}/transcript` also takes `format=txt`: plain text, one paragraph per speaker turn, with speaker names (early access).
- Audio-to-text transcripts now leave out filler words (um, uh), like meeting transcripts.
- The same file sent again by the same account within 7 days, as a meeting or an audio-to-text job, is transcribed once and the text reused. Prices do not change. See [Billing](https://faraatarjomeh.com/api/v1/docs/billing.md#avoiding-double-charges).

## 2026-09-26 — chunked uploads

- New: `POST /api/v1/uploads`, `GET /api/v1/uploads/{uploadId}`, `PUT /api/v1/uploads/{uploadId}/chunks/{index}`, `DELETE /api/v1/uploads/{uploadId}`. Send a recording in chunks, then create a meeting or transcription job with a JSON body `{ "uploadId": "upl_..." }`. Files up to 1 GB. Free until the job is created. See [Upload large recordings in chunks](https://faraatarjomeh.com/api/v1/docs/guides/chunked-uploads.md).
- New error codes: `BAD_CHUNK`, `CHUNK_DIGEST_MISMATCH`, `UPLOAD_NOT_FOUND`, `UPLOAD_EXPIRED`, `UPLOAD_INCOMPLETE`, `UPLOAD_ALREADY_USED`, `UPLOAD_CHECKSUM_MISMATCH`, `UPLOAD_LIMIT_REACHED`.

## 2026-09-26 — v1.0.0

- First public version: API keys (`read`/`write` scopes) for every customer endpoint of the website.
- RFC 9457 problem details with stable `code` values; machine-readable [error catalog](https://faraatarjomeh.com/api/v1/docs/errors.json).
- `Idempotency-Key` support on all writes (24-hour replay window).
- Per-key rate limits with `RateLimit` / `RateLimit-Policy` headers.
- `GET /api/v1/account` and `GET /api/v1/account/transactions` for balance and ledger.
- Webhooks with Standard Webhooks signatures (`/api/v1/webhook-endpoints`).
- Docs for agents: `llms.txt`, `llms-full.txt`, Markdown for every page, OpenAPI 3.1, `/.well-known/api-catalog`.
