# API reference: AI tools

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

## At a glance

- Auth on every call: `Authorization: Bearer $FARA_API_KEY`
- `scope`: `read` for GET/HEAD, `write` for the rest
- **spends Fara**: the call holds or charges Fara; get the price first and send `Idempotency-Key`
- Path parameters in the examples are shell variables (`$JOB_ID`, `$ID` …)
- Errors: `application/problem+json` with a stable `code` (not repeated per endpoint below)

## Index

- **AI tools**: [GET /api/v1/translate/{jobId}/tools/price](#getToolPrices), [GET /api/v1/translate/{jobId}/linkedin](#getLinkedInPosts), [POST /api/v1/translate/{jobId}/linkedin](#createLinkedInPosts), [DELETE /api/v1/translate/{jobId}/linkedin](#deleteLinkedInPosts), [GET /api/v1/translate/{jobId}/proofread](#getProofreading), [POST /api/v1/translate/{jobId}/proofread](#createProofreading), [DELETE /api/v1/translate/{jobId}/proofread](#deleteProofreading), [GET /api/v1/translate/slides/design-styles](#listSlideStyles), [GET /api/v1/translate/{jobId}/slides](#getSlides), [POST /api/v1/translate/{jobId}/slides](#createSlides), [DELETE /api/v1/translate/{jobId}/slides](#deleteSlides), [POST /api/v1/translate/{jobId}/slides/generate-files](#generateSlideFiles), [GET /api/v1/translate/mindmap/spec](#getMindmapSpec), [GET /api/v1/translate/{jobId}/mindmap](#getMindmap), [POST /api/v1/translate/{jobId}/mindmap](#createMindmap), [DELETE /api/v1/translate/{jobId}/mindmap](#deleteMindmap), [POST /api/v1/translate/{jobId}/mindmap/pdf](#renderMindmapPdf), [GET /api/v1/translate/{jobId}/summary](#getSummary), [POST /api/v1/translate/{jobId}/summary](#loadSummary), [DELETE /api/v1/translate/{jobId}/summary](#deleteSummary), [GET /api/v1/translate/{jobId}/digest](#getDigest), [GET /api/v1/translate/{jobId}/summary-card](#getSummaryCard), [POST /api/v1/translate/{jobId}/summary/pdf](#renderSummaryPdf), [GET /api/v1/translate/{jobId}/podcast](#getPodcast), [DELETE /api/v1/translate/{jobId}/podcast](#deletePodcast), [GET /api/v1/translate/{jobId}/audiobook](#getAudiobook), [DELETE /api/v1/translate/{jobId}/audiobook](#deleteAudiobook)

## AI tools

Extras made from a finished translation: LinkedIn posts, proofreading, slides, mind map, summary, podcast, audiobook.

<a id="getToolPrices"></a>
### GET /api/v1/translate/{jobId}/tools/price

Price the slides, mind map and LinkedIn posts

- operationId `getToolPrices` · scope `read` · free

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.

**Parameters**

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

**Response `200`**

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `capped` | boolean | no | Always true: the charge never goes above the price shown. |
| `tools` | object | no |  |
| `tools.slides` | object | no |  |
| `tools.slides.available` | boolean | no |  |
| `tools.slides.faraCharged` | number | no | Fara the POST would hold. 0 when the owner is not billed. Missing when available is false. |
| `tools.mindmap` | object | no |  |
| `tools.mindmap.available` | boolean | no |  |
| `tools.mindmap.faraCharged` | number | no | Fara the POST would hold. 0 when the owner is not billed. Missing when available is false. |
| `tools.linkedin` | object | no |  |
| `tools.linkedin.available` | boolean | no |  |
| `tools.linkedin.faraCharged` | number | no | Fara the POST would hold. 0 when the owner is not billed. Missing when available is false. |

**Responses**

- `200` Prices of the tools. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

```bash
curl -sS -X GET "https://faraatarjomeh.com/api/v1/translate/$JOB_ID/tools/price" \
  -H "Authorization: Bearer $FARA_API_KEY"
```

<a id="getLinkedInPosts"></a>
### GET /api/v1/translate/{jobId}/linkedin

Get saved LinkedIn posts

- operationId `getLinkedInPosts` · scope `read` · free

Returns the saved result, or `saved: false` when there is none yet.

**Parameters**

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

**Response `200`**

[`LinkedInPosts`](#schema-linked-in-posts)

**Responses**

- `200` Saved LinkedIn posts. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="createLinkedInPosts"></a>
### POST /api/v1/translate/{jobId}/linkedin

Make LinkedIn posts from a finished translation

- operationId `createLinkedInPosts` · scope `write` · **spends Fara** · send `Idempotency-Key`

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`.

**Parameters**

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

**Request body** `application/json`

| Field | Type | Required | Notes |
|---|---|---|---|
| `maxFara` | number | no | 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. |

**Response `200`**

[`LinkedInPosts`](#schema-linked-in-posts)

**Responses**

- `200` New LinkedIn posts. (`application/json`)
- Errors: `400`, `401`, `402`, `403`, `404`, `409`, `422`, `429`, `502`, `503`, `504` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deleteLinkedInPosts"></a>
### DELETE /api/v1/translate/{jobId}/linkedin

Delete saved LinkedIn posts

- operationId `deleteLinkedInPosts` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getProofreading"></a>
### GET /api/v1/translate/{jobId}/proofread

Get saved proofreading suggestions

- operationId `getProofreading` · scope `read` · free

Returns the saved result, or `saved: false` when there is none yet.

**Parameters**

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

**Response `200`**

[`Proofreading`](#schema-proofreading)

**Responses**

- `200` Saved proofreading suggestions. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="createProofreading"></a>
### POST /api/v1/translate/{jobId}/proofread

Make proofreading suggestions from a finished translation

- operationId `createProofreading` · scope `write` · **spends Fara** · send `Idempotency-Key`

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.

**Parameters**

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

**Response `200`**

[`Proofreading`](#schema-proofreading)

**Responses**

- `200` New proofreading suggestions. (`application/json`)
- Errors: `400`, `401`, `402`, `403`, `404`, `409`, `422`, `429`, `502`, `503`, `504` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deleteProofreading"></a>
### DELETE /api/v1/translate/{jobId}/proofread

Delete saved proofreading suggestions

- operationId `deleteProofreading` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="listSlideStyles"></a>
### GET /api/v1/translate/slides/design-styles

List slide design styles

- operationId `listSlideStyles` · scope `read` · free

**Response `200`**

| Field | Type | Required | Notes |
|---|---|---|---|
| `pptx` | object | no |  |
| `pdf` | object | no |  |
| `pricing` | object | no |  |

**Responses**

- `200` Styles. (`application/json`)
- Errors: `401`, `403`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

```bash
curl -sS -X GET "https://faraatarjomeh.com/api/v1/translate/slides/design-styles" \
  -H "Authorization: Bearer $FARA_API_KEY"
```

<a id="getSlides"></a>
### GET /api/v1/translate/{jobId}/slides

Get saved slides

- operationId `getSlides` · scope `read` · free

Returns the saved result, or `saved: false` when there is none yet.

**Parameters**

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

**Response `200`**

[`Slides`](#schema-slides)

**Responses**

- `200` Saved slides. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="createSlides"></a>
### POST /api/v1/translate/{jobId}/slides

Make slides from a finished translation

- operationId `createSlides` · scope `write` · **spends Fara** · send `Idempotency-Key`

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`.

**Parameters**

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

**Request body** `application/json`

| Field | Type | Required | Notes |
|---|---|---|---|
| `maxFara` | number | no | 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. |

**Response `200`**

[`Slides`](#schema-slides)

**Responses**

- `200` New slides. (`application/json`)
- Errors: `400`, `401`, `402`, `403`, `404`, `409`, `422`, `429`, `502`, `503`, `504` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deleteSlides"></a>
### DELETE /api/v1/translate/{jobId}/slides

Delete saved slides

- operationId `deleteSlides` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="generateSlideFiles"></a>
### POST /api/v1/translate/{jobId}/slides/generate-files

Make PPTX and PDF files from saved slides

- operationId `generateSlideFiles` · scope `write` · free · send `Idempotency-Key`

Free. Download them with GET /api/v1/translate/download/{jobId}/slides-pptx and slides-pdf.

**Parameters**

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

**Request body** `application/json`

[`SlidesFilesRequest`](#schema-slides-files-request)

**Response `200`**

[`SlidesFiles`](#schema-slides-files)

**Responses**

- `200` Files made. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getMindmapSpec"></a>
### GET /api/v1/translate/mindmap/spec

List mind map color sets

- operationId `getMindmapSpec` · scope `read` · free

**Response `200`**

| Field | Type | Required | Notes |
|---|---|---|---|
| `colorHarmonies` | object[] | no |  |

**Responses**

- `200` Color sets. (`application/json`)
- Errors: `401`, `403`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

```bash
curl -sS -X GET "https://faraatarjomeh.com/api/v1/translate/mindmap/spec" \
  -H "Authorization: Bearer $FARA_API_KEY"
```

<a id="getMindmap"></a>
### GET /api/v1/translate/{jobId}/mindmap

Get saved a mind map

- operationId `getMindmap` · scope `read` · free

Returns the saved result, or `saved: false` when there is none yet.

**Parameters**

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

**Response `200`**

[`Mindmap`](#schema-mindmap)

**Responses**

- `200` Saved a mind map. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="createMindmap"></a>
### POST /api/v1/translate/{jobId}/mindmap

Make a mind map from a finished translation

- operationId `createMindmap` · scope `write` · **spends Fara** · send `Idempotency-Key`

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`.

**Parameters**

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

**Request body** `application/json`

| Field | Type | Required | Notes |
|---|---|---|---|
| `maxFara` | number | no | 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. |

**Response `200`**

[`Mindmap`](#schema-mindmap)

**Responses**

- `200` New a mind map. (`application/json`)
- Errors: `400`, `401`, `402`, `403`, `404`, `409`, `422`, `429`, `502`, `503`, `504` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deleteMindmap"></a>
### DELETE /api/v1/translate/{jobId}/mindmap

Delete saved a mind map

- operationId `deleteMindmap` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="renderMindmapPdf"></a>
### POST /api/v1/translate/{jobId}/mindmap/pdf

Get the saved mind map as a PDF

- operationId `renderMindmapPdf` · scope `write` · free · send `Idempotency-Key`

Free. Returns the PDF directly.

**Parameters**

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

**Request body** `application/json`

[`MindmapPdfRequest`](#schema-mindmap-pdf-request)

**Responses**

- `200` The PDF. (`application/pdf`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getSummary"></a>
### GET /api/v1/translate/{jobId}/summary

Get the document summary

- operationId `getSummary` · scope `read` · free

The Persian summary made during translation. Included in the translation price.

**Parameters**

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

**Response `200`**

[`Digest`](#schema-digest)

**Responses**

- `200` Summary. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="loadSummary"></a>
### POST /api/v1/translate/{jobId}/summary

Load the document summary

- operationId `loadSummary` · scope `write` · free · send `Idempotency-Key`

Same as GET, kept for older clients. Free; 404 when no summary exists.

**Parameters**

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

**Response `200`**

[`Digest`](#schema-digest)

**Responses**

- `200` Summary. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deleteSummary"></a>
### DELETE /api/v1/translate/{jobId}/summary

Delete the saved summary

- operationId `deleteSummary` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getDigest"></a>
### GET /api/v1/translate/{jobId}/digest

Get the document digest

- operationId `getDigest` · scope `read` · free

**Parameters**

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

**Response `200`**

[`Digest`](#schema-digest)

**Responses**

- `200` Digest. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getSummaryCard"></a>
### GET /api/v1/translate/{jobId}/summary-card

Get the summary card (PNG or PDF)

- operationId `getSummaryCard` · scope `read` · free

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.

**Parameters**

| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `jobId` | path | string | yes | Translation job id (returned by analysis or upload). |
| `format` | query | string | no | Image format of the card. — one of: `png`, `pdf`; default: `"png"` |

**Responses**

- `200` The summary card. (`image/png`, `application/pdf`)
- Errors: `400`, `401`, `403`, `404`, `409`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

```bash
curl -sS -X GET "https://faraatarjomeh.com/api/v1/translate/$JOB_ID/summary-card" \
  -H "Authorization: Bearer $FARA_API_KEY"
```

<a id="renderSummaryPdf"></a>
### POST /api/v1/translate/{jobId}/summary/pdf

Get the summary as a PDF

- operationId `renderSummaryPdf` · scope `write` · free · send `Idempotency-Key`

Free. Returns the PDF directly.

**Parameters**

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

**Request body** `application/json`

[`SummaryPdfRequest`](#schema-summary-pdf-request)

**Responses**

- `200` The PDF. (`application/pdf`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getPodcast"></a>
### GET /api/v1/translate/{jobId}/podcast

Get the saved podcast

- operationId `getPodcast` · scope `read` · free

Make one with POST /api/v1/audio/jobs (`feature: podcast`).

**Parameters**

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

**Response `200`**

[`AudioFeature`](#schema-audio-feature)

**Responses**

- `200` Podcast. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deletePodcast"></a>
### DELETE /api/v1/translate/{jobId}/podcast

Delete the saved podcast

- operationId `deletePodcast` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="getAudiobook"></a>
### GET /api/v1/translate/{jobId}/audiobook

Get the saved audiobook

- operationId `getAudiobook` · scope `read` · free

Make one with POST /api/v1/audio/jobs (`feature: audiobook`).

**Parameters**

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

**Response `200`**

[`AudioFeature`](#schema-audio-feature)

**Responses**

- `200` Audiobook. (`application/json`)
- Errors: `401`, `403`, `404`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

<a id="deleteAudiobook"></a>
### DELETE /api/v1/translate/{jobId}/audiobook

Delete the saved audiobook

- operationId `deleteAudiobook` · scope `write` · free · send `Idempotency-Key`

**Parameters**

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

**Response `200`**

**Responses**

- `200` Deleted. (`application/json`)
- Errors: `400`, `401`, `403`, `404`, `409`, `422`, `429`, `503` — problem+json, see /api/v1/docs/errors

**Example**

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

## Schemas

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

<a id="schema-audio-feature"></a>
### AudioFeature

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `hasPodcast` | boolean | no |  |
| `hasAudiobook` | boolean | no |  |
| `title` | string | no |  |
| `text` | string | no |  |
| `audioFileId` | string \| null | no | may be null |
| `audioDownloadPath` | string | no | Where to download the audio. |
| `audioContentType` | string | no |  |
| `audioExtension` | string | no |  |
| `metadata` | object | no |  |
| `processedAt` | string \| null | no | may be null |
| `savedAt` | string \| null | no | may be null |

<a id="schema-digest"></a>
### Digest

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `hasDigest` | boolean | no |  |
| `hasSummary` | boolean | no |  |
| `digest` | string | no | Persian summary text. |
| `digestChars` | integer | no |  |
| `coverage` | string | no | `full` or `partial`. |
| `truncated` | boolean | no |  |
| `status` | string \| null | no | may be null |
| `faraCost` | number | no |  |
| `billing` | string | no |  |
| `savedAt` | string \| null | no | may be null |
| `brief` | object \| null | no | Short card: `title`, `kind`, `summary`, `points` (3 to 5 strings), `takeaway`, `audience`. Null until ready. — may be null |
| `briefStatus` | string | no | `ready`, `preparing` (being made in the background now), or `unavailable` (could not be made). — one of: `ready`, `preparing`, `unavailable` |

<a id="schema-linked-in-posts"></a>
### LinkedInPosts

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `totalPosts` | integer | no |  |
| `processedAt` | string \| null | no | may be null |
| `posts` | object[] | no |  |
| `metadata` | object | no |  |
| `faraCost` | number | no |  |
| `billing` | string | no |  |
| `heldFara` | number | no | Fara held before the work. Only when the price-first switch is on, on the POST answer. |
| `refundedFara` | number | no | Fara given back from the hold (held minus charged). Only when the price-first switch is on, on the POST answer. |
| `saved` | boolean | no |  |
| `savedAt` | string \| null | no | may be null |
| `warning` | string | no |  |

<a id="schema-mindmap"></a>
### Mindmap

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `hasMindmap` | boolean | no |  |
| `title` | string | no |  |
| `root` | object \| null | no | Root node. Each node has a label and `children`. — may be null |
| `nodeCount` | integer | no |  |
| `metadata` | object | no |  |
| `faraCost` | number | no |  |
| `billing` | string | no |  |
| `heldFara` | number | no | Fara held before the work. Only when the price-first switch is on, on the POST answer. |
| `refundedFara` | number | no | Fara given back from the hold (held minus charged). Only when the price-first switch is on, on the POST answer. |
| `processedAt` | string \| null | no | may be null |
| `savedAt` | string \| null | no | may be null |

<a id="schema-mindmap-pdf-request"></a>
### MindmapPdfRequest

| Field | Type | Required | Notes |
|---|---|---|---|
| `title` | string | no |  |
| `harmonyId` | string | no | Color set id from GET /api/v1/translate/mindmap/spec. |

<a id="schema-proofreading"></a>
### Proofreading

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `hasProofreading` | boolean | no |  |
| `edits` | object \| null | no | may be null |
| `edits.vocabulary` | object[] | no |  |
| `edits.substitutions` | object[] | no |  |
| `edits.paragraphs` | object[] | no |  |
| `summary` | object \| null | no | may be null |
| `processedAt` | string \| null | no | may be null |
| `savedAt` | string \| null | no | may be null |
| `appliedAt` | string \| null | no | may be null |
| `faraCost` | number | no |  |
| `billing` | string | no |  |
| `saved` | boolean | no |  |

<a id="schema-slides"></a>
### Slides

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `hasSlides` | boolean | no |  |
| `slides` | object[] | no |  |
| `metadata` | object | no |  |
| `faraCost` | number | no |  |
| `billing` | string | no |  |
| `heldFara` | number | no | Fara held before the work. Only when the price-first switch is on, on the POST answer. |
| `refundedFara` | number | no | Fara given back from the hold (held minus charged). Only when the price-first switch is on, on the POST answer. |
| `processedAt` | string \| null | no | may be null |
| `savedAt` | string \| null | no | may be null |
| `pptxFileId` | string \| null | no | may be null |
| `slidesPdfFileId` | string \| null | no | may be null |
| `filesGeneratedAt` | string \| null | no | may be null |

<a id="schema-slides-files"></a>
### SlidesFiles

| Field | Type | Required | Notes |
|---|---|---|---|
| `jobId` | string | no |  |
| `pptxFileId` | string | no |  |
| `slidesPdfFileId` | string | no |  |
| `styles` | object | no |  |
| `styles.pptxStyle` | string | no |  |
| `styles.pdfStyle` | string | no |  |
| `faraCost` | number | no | Always 0: making files is free. |
| `pptxSize` | integer | no |  |
| `slidesPdfSize` | integer | no |  |
| `generated` | boolean | no |  |

<a id="schema-slides-files-request"></a>
### SlidesFilesRequest

| Field | Type | Required | Notes |
|---|---|---|---|
| `pptxStyle` | string | no | Style id from GET /api/v1/translate/slides/design-styles (`pptx.styles`). |
| `pdfStyle` | string | no | Style id from GET /api/v1/translate/slides/design-styles (`pdf.styles`). |

<a id="schema-summary-pdf-request"></a>
### SummaryPdfRequest

| Field | Type | Required | Notes |
|---|---|---|---|
| `styles` | object | no | Style options, as for custom PDFs. |
| `title` | string | no |  |
| `showHeader` | boolean | no |  |
