{"openapi":"3.1.0","info":{"title":"Transcriwise Public API","version":"2.0.0","description":"One API for many transcription engines and AI models: pick a model by id, set fallbacks, and pay from one prepaid balance.\n\n| API | Purpose | Pricing |\n|-----|---------|---------|\n| **v1** | Transcription across engines with one normalized response; AI on transcripts | Per audio hour (AI per use) |\n| **v2** | Formatted documents (minutes, legal drafts, study guides...) from audio or transcripts | Per document |\n\n## Quickstart\n\nBase URL: `https://api.transcriwise.com/api`. Every request sends your key as a Bearer token. Jobs are asynchronous: start one, poll it (or pass `webhook_url`), then fetch the result.\n\n**curl**\n\n```bash\n# 1. Start a transcription (returns 202 and a job_id)\ncurl https://api.transcriwise.com/api/v1/transcribe/url \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"file_url\": \"https://example.com/meeting.mp3\", \"language\": \"en\",\n       \"model\": \"auto\", \"diarization\": true}'\n\n# 2. Poll until status is \"completed\"\ncurl https://api.transcriwise.com/api/v1/jobs/$JOB_ID \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\"\n\n# 3. Download the transcript\ncurl \"https://api.transcriwise.com/api/v1/jobs/$JOB_ID/transcript?format=json\" \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\"\n```\n\n**Python**\n\n```python\nimport os, time, requests\n\nAPI = \"https://api.transcriwise.com/api\"\nheaders = {\"Authorization\": f\"Bearer {os.environ['TRANSCRIWISE_API_KEY']}\"}\n\njob = requests.post(f\"{API}/v1/transcribe/url\", headers=headers, json={\n    \"file_url\": \"https://example.com/meeting.mp3\",\n    \"language\": \"en\",\n    \"model\": \"assemblyai/universal-3-5-pro\",\n    \"models\": [\"soniox\", \"auto\"],          # fallbacks, tried in order\n}).json()\n\nwhile True:\n    status = requests.get(f\"{API}/v1/jobs/{job['job_id']}\", headers=headers).json()\n    if status[\"status\"] in (\"completed\", \"error\", \"failed\"):\n        break\n    time.sleep(5)\n\ntranscript = requests.get(\n    f\"{API}/v1/jobs/{job['job_id']}/transcript\", headers=headers,\n    params={\"format\": \"json\"},\n).json()\nprint(status[\"model\"], transcript[\"content\"][:200])\n```\n\n**JavaScript**\n\n```javascript\nconst API = \"https://api.transcriwise.com/api\";\nconst headers = {\n  Authorization: `Bearer ${process.env.TRANSCRIWISE_API_KEY}`,\n  \"Content-Type\": \"application/json\",\n};\n\nconst job = await fetch(`${API}/v1/transcribe/url`, {\n  method: \"POST\",\n  headers,\n  body: JSON.stringify({\n    file_url: \"https://example.com/meeting.mp3\",\n    language: \"en\",\n    routing: { sort: \"price\", max_price_per_hour: 0.5 },\n  }),\n}).then((r) => r.json());\n\nlet status;\ndo {\n  await new Promise((resolve) => setTimeout(resolve, 5000));\n  status = await fetch(`${API}/v1/jobs/${job.job_id}`, { headers }).then((r) => r.json());\n} while (![\"completed\", \"error\", \"failed\"].includes(status.status));\n\nconst transcript = await fetch(\n  `${API}/v1/jobs/${job.job_id}/transcript?format=json`, { headers }\n).then((r) => r.json());\nconsole.log(status.model, transcript.content.slice(0, 200));\n```\n\n## Authentication\n\n```\nAuthorization: Bearer tw_your_api_key\n```\n\nCreate keys in the dashboard under Settings > API. Each key has scopes (`read`, `transcribe`, `summarize`); a call without the scope it needs returns `403`.\n\n## Models\n\n`GET /api/v1/models` lists every model with its id, price and status (no key needed; filter with `?type=asr`, `llm` or `translation`). Pass the id in the `model` field:\n\n- **Transcription** (`asr`): `auto`, or `provider/model` such as `assemblyai/universal-3-5-pro`, `whisper/large-v3-turbo` or `deepgram/nova-3-medical`. A family alone (`soniox`, `deepgram`) runs its default model. `provider`/`provider_variant` keep working; do not combine them with `model`.\n- **AI features** (`llm`): `model` on chat, mind maps and knowledge-base routes, for example `google/gemini-4-hydrogen` or `deepseek/deepseek-v4-flash`. A model an endpoint does not accept returns `422` with the accepted list.\n- **Translation**: `model` on `/jobs/{job_id}/translate`, for example `deepl/deepl-pro` or `google/translate-nmt`.\n\nAI responses report the `model` and `provider` that ran and the `usage` charged (`points`, `cost`, `currency`).\n\n## Routing and fallback\n\nTranscription requests (v1 and `POST /api/v2/documents/transcribe-and-format`) accept:\n\n| Field | Meaning |\n|-------|---------|\n| `model` | First model to try. Default `auto`. |\n| `models` | Fallbacks tried in order when the previous model fails (up to 5). May include `auto`. |\n| `routing.allow_fallbacks` | Default `true` for `auto` and `models`, `false` for a single pinned `model`. `true` on a pinned model falls back to `auto`. |\n| `routing.order` | Engines the automatic route tries first (providers or model ids). |\n| `routing.only` / `routing.ignore` | Allow or exclude providers or model ids. |\n| `routing.sort` | `price`, `accuracy` (benchmark ranking for the language) or `speed`. |\n| `routing.max_price_per_hour` | Skip engines above this USD price per audio hour. |\n\n```json\n{\n  \"file_url\": \"https://example.com/hearing.mp3\",\n  \"language\": \"pt\",\n  \"model\": \"assemblyai/universal-3-5-pro\",\n  \"models\": [\"soniox/stt-async-v5\", \"auto\"],\n  \"routing\": {\"ignore\": [\"iflytek\"], \"max_price_per_hour\": 0.6}\n}\n```\n\n**Billing.** Each attempt reserves its own estimate on the balance and is charged at the price of the model that ran: engines of the automatic route at the `auto` price, any other model at its own price. A failed attempt is not charged; its estimate stays held until the engine's outcome is confirmed, and is then released. Once a transcript has been charged, a later failure ends the job without a second transcription. A failure that is not the engine's (for example audio that cannot be read) also ends the job, since every engine would hit it. `GET /api/v1/jobs/{job_id}` reports the `model` that ran and, after a fallback, every attempt in `attempts`. In multipart uploads send `models` as a JSON array or comma-separated ids and `routing` as a JSON string.\n\n## Pricing and access\n\nThe API is billed separately from the Transcriwise app: an app subscription does not include API access, and API usage never consumes app minutes or points.\n\nAccess is **prepaid**. Top up the API balance in the dashboard (Settings > API); the first top-up activates the account. Each account keeps one balance currency, USD or BRL, fixed at the first top-up. When the balance runs out, requests return `402 Payment Required`. Minimum top-up: US$ 10 or R$ 50. The balance does not expire.\n\n### Volume bonus\n\n| Top-up | Bonus credit |\n|--------|--------------|\n| US$ 100 / R$ 500 | +5% |\n| US$ 500 / R$ 2,500 | +10% |\n| US$ 2,000 / R$ 10,000 | +15% |\n| US$ 10,000 / R$ 50,000 | +20% |\n\n### Limits by volume\n\nEvery prepaid account has every feature. Rate limit and spending caps grow with the total topped up (USD equivalent):\n\n| Total topped up | Rate limit | Spending cap |\n|-----------------|------------|--------------|\n| US$ 0 | 30 req/min | US$ 50/day · US$ 250/mo |\n| US$ 100 | 60 req/min | US$ 100/day · US$ 1,000/mo |\n| US$ 500 | 120 req/min | US$ 250/day · US$ 2,500/mo |\n| US$ 2,000 | 200 req/min | US$ 1,000/day · US$ 10,000/mo |\n| US$ 10,000 | 300 req/min | US$ 2,500/day · US$ 25,000/mo |\n\nCustom caps and SLAs are arranged with sales.\n\n### Transcription — automatic route\n\n| `model` | USD/hour | Engines tried |\n|---------|----------|---------------|\n| `auto` | $0.32/h | `alibaba/qwen3-asr-flash-filetrans`, `whisper/large-v3-turbo`, `soniox/stt-async-v5` |\n\n### Transcription — by model\n\nSpeaker diarization (`diarization=true`) adds +25% to the hourly rate.\n\n| `model` | USD/hour | Name |\n|---------|----------|------|\n| `soniox/stt-async-v5` | $0.19/h | Soniox Async v5 |\n| `alibaba/fun-asr-mtl` | $0.23/h | Fun-ASR Multilingual |\n| `alibaba/fun-asr` | $0.23/h | Fun-ASR |\n| `alibaba/qwen3-asr-flash-filetrans` | $0.24/h | Qwen3-ASR Flash |\n| `assemblyai/universal-2` | $0.28/h | AssemblyAI Universal-2 |\n| `whisper/large-v3-turbo` | $0.32/h (min $0.03/request) | Whisper Large V3 Turbo |\n| `voxtral/voxtral-mini-2602` | $0.33/h | Voxtral Mini Transcribe |\n| `whisper/large-v3` | $0.39/h (min $0.03/request) | Whisper Large V3 |\n| `assemblyai/universal-3-5-pro` | $0.52/h | AssemblyAI Universal-3.5 Pro |\n| `gemini/gemini-3.5-transcribe` | $0.61/h | Gemini 3.5 Transcribe |\n| `elevenlabs/scribe_v1` | $0.69/h | ElevenLabs Scribe v1 |\n| `elevenlabs/scribe_v2` | $0.69/h | ElevenLabs Scribe v2 |\n| `deepgram/nova-3-conversationalai` | $0.89/h | Deepgram Nova-3 Conversational AI |\n| `deepgram/nova-3-finance` | $0.89/h | Deepgram Nova-3 Finance |\n| `deepgram/nova-3-general` | $0.89/h | Deepgram Nova-3 General |\n| `deepgram/nova-3-medical` | $0.89/h | Deepgram Nova-3 Medical |\n| `deepgram/nova-3-meeting` | $0.89/h | Deepgram Nova-3 Meeting |\n| `deepgram/nova-3-phonecall` | $0.89/h | Deepgram Nova-3 Phone Call |\n| `deepgram/nova-3` | $0.89/h | Deepgram Nova-3 |\n| `gladia/pre-recorded-v2` | $1.12/h | Gladia Pre-recorded v2 |\n| `iflytek/lfasr-basic` | $1.49/h | iFlytek LFASR |\n| `iflytek/lfasr-llm` | $1.60/h | iFlytek LFASR LLM |\n\nLive transcription runs through meeting bots (`POST /api/v1/meeting-bot/launch`).\n\n### Meeting bots\n\nBots are charged by the hour of meeting session, prorated by the second: the live rate ($0.72/h on the automatic route, or the pinned live provider rate when `live_provider` is set) plus the bot session fee ($0.92/h). With the automatic route a bot costs $1.64/h. The session cap (8 hours) is held on the balance at launch and only the real duration is charged when the bot leaves.\n\n### AI features\n\nChat, mind maps, knowledge-base chat and generation, translation and `apply-template` are charged to the balance by the AI they use, measured in AI points at $80.00 per 1M points (a mind map uses about 2,000 points). An estimate is held while the request runs and the real usage is charged. The AI steps of v1 transcriptions and v2 documents are included in their price. Per-model token and character prices are in `GET /api/v1/models`.\n\n### v2 documents\n\nCharged per document, by the duration of the source audio.\n\n| Audio duration | Formatted documents | `raw_transcript` |\n|---|---|---|\n| up to 30 min | $1.99 | $1.49 |\n| up to 60 min | $3.99 | $1.99 |\n| up to 120 min | $7.99 | $3.99 |\n| up to 240 min | $15.99 | $7.99 |\n| over 240 min | $15.99 + $0.07/min beyond 240 min | $7.99 + $0.04/min beyond 240 min |\n\nWhen the source has no known duration (for example `transcript_text` in `POST /api/v2/documents/format`), the flat rate of the document type applies. Premium formatting models add a fixed surcharge per document.\n\n| Type | Output | Flat rate (no known duration) |\n|------|--------|------------------------------|\n| `meeting_notes` | Meeting transcript formatted by the app's meeting mode: speech cleaned and organized by topic, faithful to what was said. For minutes with decisions and action items, apply a minutes template (POST /api/v2/documents/jobs/{job_id}/apply-template) | $0.50 |\n| `legal_draft` | Legal draft generated with the same legal formatting pipeline used in the app | $1.50 |\n| `deposition` | Witness deposition using the dedicated deposition formatting mode | $1.50 |\n| `expert_report` | Expert or technical report built with the forensic/pericia formatter | $1.50 |\n| `court_hearing` | Court hearing minutes using the hearing/audience formatter | $1.50 |\n| `court_ruling` | Judicial ruling using the dedicated sentença formatter | $1.50 |\n| `appellate_decision` | Appellate decision (acórdão) using the dedicated acórdão formatter | $1.50 |\n| `notarial_act` / `notarial` | Notarial act generated with the specialized notarial formatter | $1.50 |\n| `lecture_notes` / `apostila` | Lecture or class notes using the apostila pipeline | $0.50 |\n| `medical_consultation` | Medical consultation notes using the medical formatting preset | $1.00 |\n| `study_guide` | Study guide material built from the same apostila-oriented formatter | $0.50 |\n| `podcast_summary` / `podcast` | Podcast episode summary using the dedicated podcast mode | $0.50 |\n| `interview` | Interview document using the interview formatting mode | $0.50 |\n| `webinar` | Webinar or conference transcript preserving speaker attribution | $0.50 |\n| `call` | Phone or video call notes using the meeting/call preset | $0.50 |\n| `simulation` | Mock exam or simulation document using the dedicated simulado mode | $0.50 |\n| `fidelity_transcript` / `fidelidade` | High-fidelity structured transcript using the fidelity mode from the app formatter | $0.50 |\n| `raw_transcript` | Raw transcription only — no LLM formatting (about half the price of a formatted document) | $0.25 |\n\n## Errors\n\nErrors return a JSON body with a `detail` message:\n\n```json\n{\"detail\": \"Insufficient API balance: this request needs up to 0.12 USD, 0.03 available. Top up in Settings > API.\"}\n```\n\n| Status | Meaning | Retry? |\n|--------|---------|--------|\n| `400` | Invalid request: unknown model, v1 called with a formatting field, bad URL | No, fix the request |\n| `401` | Missing, invalid or revoked API key | No |\n| `402` | No balance, balance below the estimate, or account not activated | After topping up |\n| `403` | Key without the required scope, or feature not available | No |\n| `404` | Job, document or knowledge base not found for this key | No |\n| `409` | Job not completed yet, or an `Idempotency-Key` reused with a different body | After the job completes |\n| `409` on DOCX/PDF export | Study material is pending review: `detail` is an object with `code: study_delivery_review_required` | See below |\n| `415` | Unsupported audio or video type | No |\n| `422` | Validation failed (wrong type, `model` not accepted by the endpoint) | No, fix the request |\n| `429` | Rate limit or spending cap reached | After `Retry-After` seconds, or when the cap resets |\n| `500` | Unexpected error | Yes, with backoff (send `Idempotency-Key` where accepted) |\n| `503` | Engine or billing temporarily unavailable | Yes, with backoff |\n\nThe DOCX and PDF export routes hold a document whose study material (summary, exercises, glossary, mind map, tables) is pending review. That 409 carries a structured `detail`:\n\n```json\n{\"detail\": {\"code\": \"study_delivery_review_required\",\n            \"message\": \"Revise as pendências do material de estudo antes de exportar. A prévia continua disponível.\",\n            \"delivery_state\": \"incomplete\",\n            \"pending\": [{\"kind\": \"exercises\", \"label\": \"Exercícios\",\n                         \"status\": \"review_required\", \"reason\": \"source_content_changed\"}],\n            \"reasons\": [\"Exercícios: entrega incompleta (review_required)\"],\n            \"content_sha256\": \"9f2c…\",\n            \"acknowledgment_allowed\": false}}\n```\n\n`pending` lists each study item that is not delivered, with its `status` and `reason`. `acknowledgment_allowed` tells whether the export can be confirmed:\n\n- `false`: an item is stale, that is `review_required` with reason `source_content_changed`, `study_material_changed` or `source_binding_unverified` (the body or the material changed after it was generated), the answer key is inconsistent with the text, or an item is still `pending` generation. Regenerate or review the material in the app; no parameter releases the export.\n- `true`: the material was composed by manual review, or items are `unverified`, `missing`, `failed` or `partial`. Resend the request with `acknowledged_delivery_review_sha256` set to `content_sha256` to export that exact content. The acknowledgment does not clear the pending review and stops matching as soon as the content changes.\n\nA job that fails after it was accepted reports `status: error` and `error` in `GET /api/v1/jobs/{job_id}` and in the `transcription.failed` webhook.\n\n## Idempotency\n\nSend `Idempotency-Key` (8 to 128 characters: letters, digits, `.`, `_`, `:`, `-`) to retry safely. Repeating a key with the same body returns the first result without running or charging again. It is required on `POST /api/v1/jobs/{job_id}/translate` and `POST /api/v1/translate/bulk`, and accepted on the v2 chat, mind map and knowledge-base routes. Transcription and document requests are not deduplicated: retrying one creates a new job, so check `GET /api/v1/jobs` before retrying a request that timed out.\n\n## Rate limits\n\nRequests are limited per key per minute (see *Limits by volume*). Every authenticated response carries:\n\n| Header | Meaning |\n|--------|---------|\n| `X-RateLimit-Limit` | Requests allowed per minute |\n| `X-RateLimit-Remaining` | Requests left in the current window |\n| `X-RateLimit-Reset` | Unix time (seconds) when the window resets |\n\nOver the limit, the API returns `429` with `Retry-After` in seconds.\n\n## Webhooks\n\nPass `webhook_url` to receive a POST when the job finishes. Events: `transcription.completed`, `transcription.failed`, `document.completed`, `document.failed`. The URL must be public; private and internal addresses are refused. Delivery is attempted once, so keep polling as a fallback.\n\n## Your own provider keys\n\n`POST /api/v1/provider-keys` stores your own key for an engine (AssemblyAI, Deepgram, Soniox, ElevenLabs, Gladia, Voxtral, Alibaba, iFlytek). Jobs on that engine then run on your key and the provider bills you for its usage; the API rate for the job still applies. Whisper runs only on Transcriwise GPUs.\n\n## v1 and v2\n\n- v1 is raw transcription: `mode` is `RAW` (any other value returns `400`), and formatting fields (`custom_template`, `template_id`, `formatting_preset`, `legal_formatting`) return `400`.\n- v2 produces formatted documents with the same pipeline as the Transcriwise app. `document_type` picks the built-in preset; `formatting.template_id` loads a saved pre-processing template (managed at `/api/v2/documents/pre-processing-templates`); `formatting.enrichment` adds study material (executive summary, mind maps, glossary, exercises, per-section quizzes); and `POST /api/v2/documents/jobs/{job_id}/apply-template` post-processes an existing document, with `model` choosing its LLM.\n- `formatting.formatting_model` picks the formatting LLM; `summary_model` and `enrichment_model` override it for summaries and study material.\n- `formatting.custom_prompt_scope` is `tables_only` (default), `style_and_tables` or `full_template`. `disable_tables=true` removes tables.\n- Top-level formatting fields (`template_id`, `formatting_model`...) are accepted as aliases of the `formatting` object.\n\n## Transcript format\n\n`GET /api/v1/jobs/{job_id}/transcript?format=json` returns the same fields (`content`, `segments`, `speakers`) whatever engine ran. Add `include_raw=true` to also get the engine's own response in `provider_response`.\n\n## Speech understanding add-ons\n\nOptional booleans on `POST /api/v1/transcribe` and `/transcribe/url`, honored by the engines below and ignored by the others, at no extra charge:\n\n| Field | Gladia | ElevenLabs |\n|-------|:---:|:---:|\n| `entity_detection` | Yes | Yes |\n| `sentiment_analysis` | Yes | — |\n| `auto_chapters` | Yes | — |\n\nResults come in the JSON transcript: `gladia_entities`, `gladia_sentiment_analysis`, `gladia_chapters`, `elevenlabs_entities`.\n\n## Spec files\n\n`GET /api/v1/docs/openapi.json` (v1 and v2), `/api/v1/docs/openapi.v1.json` and `/api/v1/docs/openapi.v2.json`.\n\n## Changelog\n\n### 2026-10-13\n\n- `GET /api/v1/models`: catalog of transcription, LLM and translation models with price and availability.\n- Transcription takes a `model` id (`provider/model`), a `models` fallback list and `routing` preferences. Each attempt is billed at the price of the model that ran; failed attempts are not billed. Job status reports `model` and `attempts`.\n- Chat, mind maps, knowledge-base routes and translation take `model` and return `model`, `provider` and `usage`.\n- Every authenticated response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`.\n- Meeting bots accept `meeting_captions`, `meeting_async` and `assemblyai_async` as `live_provider`.\n- `POST /api/v1/transcribe/bulk` takes `model`, `models`, `routing` and `webhook_url`; items default to `RAW`.\n\n### 2026-10-12\n\n- Every translation engine is available: DeepL, Azure, Google NMT, Google Translation LLM, Gemini and GPT.\n- The GPT model is `gpt-6-luna`.\n\n### 2026-10-04\n\n- Fun-ASR replaces Paraformer on Alibaba; Paraformer ids run on Fun-ASR at the same price.\n- Chat, mind maps, knowledge bases, translation and meeting bots called with an API key are charged to the API balance.\n- AI answers follow the language of the question or of the source.\n\n### 2026-10-03\n\n- Prepaid API balance, separate from app plans.\n- v2 documents are charged per document.\n- v1 accepts only `mode=RAW`.\n- `whisper` is accepted as the family of the Whisper models.\n- `webhook_url` and `file_url` refuse private and internal addresses.\n"},"servers":[{"url":"https://api.transcriwise.com","description":"Production"}],"paths":{"/api/v1/models":{"get":{"tags":["public-api-v1"],"summary":"List models","description":"Every model the API runs, with its id, price and availability: transcription (`asr`), AI features (`llm`) and translation (`translation`). Pass `id` as the `model` field of a request. No API key required.","operationId":"list_models","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["asr","llm","translation"],"type":"string"},{"type":"null"}],"description":"Only models of this type","title":"Type"},"description":"Only models of this type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl \"https://api.transcriwise.com/api/v1/models?type=asr\""},{"lang":"Python","label":"Python","source":"import requests\n\nmodels = requests.get(\"https://api.transcriwise.com/api/v1/models\", params={\"type\": \"asr\"}).json()[\"data\"]\ncheapest = min(models, key=lambda m: m[\"pricing\"][\"usd_per_hour\"] or 1e9)\nprint(cheapest[\"id\"])"},{"lang":"JavaScript","label":"JavaScript","source":"const { data } = await fetch(\"https://api.transcriwise.com/api/v1/models?type=asr\").then((r) => r.json());\nconsole.log(data.map((m) => `${m.id} ${m.pricing.usd_per_hour}`));"}]}},"/api/v1/auth/context":{"get":{"tags":["public-api-v1"],"summary":"Validate an API or OAuth bearer token","operationId":"get_public_auth_context","parameters":[{"name":"resource","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/transcribe/url":{"post":{"tags":["public-api-v1"],"summary":"Start transcription from URL","description":"Start a transcription job from a file URL. The file is downloaded and processed asynchronously.","operationId":"create_transcription_from_url","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeByUrlRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicJobResponse"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Missing scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://api.transcriwise.com/api/v1/transcribe/url \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"file_url\": \"https://example.com/call.mp3\", \"language\": \"en\",\n       \"model\": \"assemblyai/universal-3-5-pro\", \"models\": [\"soniox\", \"auto\"]}'"},{"lang":"Python","label":"Python","source":"import os, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['TRANSCRIWISE_API_KEY']}\"}\njob = requests.post(\n    \"https://api.transcriwise.com/api/v1/transcribe/url\",\n    headers=headers,\n    json={\n        \"file_url\": \"https://example.com/call.mp3\",\n        \"language\": \"en\",\n        \"model\": \"assemblyai/universal-3-5-pro\",\n        \"models\": [\"soniox\", \"auto\"],\n    },\n).json()\nprint(job[\"job_id\"])"},{"lang":"JavaScript","label":"JavaScript","source":"const job = await fetch(\"https://api.transcriwise.com/api/v1/transcribe/url\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.TRANSCRIWISE_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    file_url: \"https://example.com/call.mp3\",\n    language: \"en\",\n    model: \"assemblyai/universal-3-5-pro\",\n    models: [\"soniox\", \"auto\"],\n  }),\n}).then((r) => r.json());"}]}},"/api/v1/transcribe":{"post":{"tags":["public-api-v1"],"summary":"Start a new transcription job","description":"Upload an audio/video file and start a transcription job. The file is processed asynchronously. Use `GET /v1/jobs/{job_id}` to poll status.","operationId":"create_transcription","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateTranscriptionForm"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicJobResponse"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Missing scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://api.transcriwise.com/api/v1/transcribe \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\" \\\n  -F file=@call.mp3 -F language=en -F model=auto \\\n  -F 'routing={\"sort\": \"price\"}'"},{"lang":"Python","label":"Python","source":"import os, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['TRANSCRIWISE_API_KEY']}\"}\nwith open(\"call.mp3\", \"rb\") as audio:\n    job = requests.post(\n        \"https://api.transcriwise.com/api/v1/transcribe\",\n        headers=headers,\n        files={\"file\": audio},\n        data={\"language\": \"en\", \"model\": \"auto\", \"routing\": '{\"sort\": \"price\"}'},\n    ).json()"},{"lang":"JavaScript","label":"JavaScript","source":"const form = new FormData();\nform.append(\"file\", new Blob([audioBytes]), \"call.mp3\");\nform.append(\"language\", \"en\");\nform.append(\"model\", \"auto\");\nconst job = await fetch(\"https://api.transcriwise.com/api/v1/transcribe\", {\n  method: \"POST\",\n  headers: { Authorization: `Bearer ${process.env.TRANSCRIWISE_API_KEY}` },\n  body: form,\n}).then((r) => r.json());"}]}},"/api/v1/jobs":{"get":{"tags":["public-api-v1"],"summary":"List transcription jobs","description":"List transcription jobs for the authenticated user.","operationId":"list_jobs","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max jobs to return","default":20,"title":"Limit"},"description":"Max jobs to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Offset for pagination","default":0,"title":"Offset"},"description":"Offset for pagination"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status: processing, completed, error","title":"Status"},"description":"Filter by status: processing, completed, error"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/search":{"get":{"tags":["public-api-v1"],"summary":"Search transcript content","description":"Hybrid semantic and full-text search across the caller's completed transcriptions.","operationId":"search_transcripts","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":500,"title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"job_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Job Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/jobs/{job_id}/highlights":{"get":{"tags":["public-api-v1"],"summary":"List transcript highlights","operationId":"get_public_job_highlights","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicHighlightResponse"},"title":"Response Get Public Job Highlights Api V1 Jobs  Job Id  Highlights Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/jobs/{job_id}":{"get":{"tags":["public-api-v1"],"summary":"Get job status","description":"Get the status and metadata of a transcription job.","operationId":"get_job_status","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://api.transcriwise.com/api/v1/jobs/$JOB_ID \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\""},{"lang":"Python","label":"Python","source":"status = requests.get(\n    f\"https://api.transcriwise.com/api/v1/jobs/{job_id}\", headers=headers\n).json()\nprint(status[\"status\"], status[\"model\"], status.get(\"attempts\"))"},{"lang":"JavaScript","label":"JavaScript","source":"const status = await fetch(`https://api.transcriwise.com/api/v1/jobs/${jobId}`, { headers })\n  .then((r) => r.json());"}]}},"/api/v1/jobs/{job_id}/transcript":{"get":{"tags":["public-api-v1"],"summary":"Get transcript content","description":"Get the transcript text in the specified format (txt, md, json).","operationId":"get_transcript","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Output format: txt, md, json, srt, vtt","default":"txt","title":"Format"},"description":"Output format: txt, md, json, srt, vtt"},{"name":"include_raw","in":"query","required":false,"schema":{"type":"boolean","description":"Include raw provider response (verbose mode)","default":false,"title":"Include Raw"},"description":"Include raw provider response (verbose mode)"},{"name":"canonical_chat","in":"query","required":false,"schema":{"type":"boolean","description":"Return the canonical UTF-16 transcript used by chat/search citations","default":false,"title":"Canonical Chat"},"description":"Return the canonical UTF-16 transcript used by chat/search citations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"description":"Job not completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/jobs/{job_id}/subtitles":{"get":{"tags":["public-api-v1"],"summary":"Get subtitles (SRT or VTT)","description":"Get subtitles for a completed transcription in SRT or VTT format.","operationId":"get_subtitles","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Subtitle format: srt or vtt","default":"srt","title":"Format"},"description":"Subtitle format: srt or vtt"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"description":"Job not completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/jobs/{job_id}/translate":{"post":{"tags":["public-api-v1"],"summary":"Translate a transcription","description":"Translate a completed transcription to another language. Charged to the API balance by the AI it uses.","operationId":"translate_job","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1TranslateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1TranslateResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"description":"Job not completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/meeting-bot/launch":{"post":{"tags":["public-api-v1"],"summary":"Launch a meeting bot","description":"Launch a TranscriBot to join a meeting and transcribe. Supports Zoom, Google Meet, and Microsoft Teams.","operationId":"launch_bot","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1LaunchBotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BotResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/meeting-bot/{bot_id}":{"get":{"tags":["public-api-v1"],"summary":"Get meeting bot status","description":"Get the current status of a running meeting bot.","operationId":"get_bot_status","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BotResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/meeting-bot/{bot_id}/stop":{"post":{"tags":["public-api-v1"],"summary":"Stop a meeting bot","description":"Stop a running meeting bot and finalize the transcription.","operationId":"stop_bot","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BotResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/transcribe/bulk":{"post":{"tags":["public-api-v1"],"summary":"Batch transcribe multiple URLs","description":"Submit multiple file URLs for transcription in parallel. Each URL creates a separate job.","operationId":"bulk_transcribe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BulkTranscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BulkTranscribeResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/translate/bulk":{"post":{"tags":["public-api-v1"],"summary":"Batch translate multiple jobs","description":"Translate multiple transcription jobs in sequence. Each job is charged to the API balance by the AI it uses.","operationId":"bulk_translate","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BulkTranslateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BulkTranslateResponse"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/transcribe-and-format":{"post":{"tags":["public-api-v2"],"summary":"Transcribe audio and generate a formatted document","description":"One-shot endpoint: transcribes the audio and runs the same intelligent formatting pipeline used by the app over the raw transcript, using document_type as the built-in intelligent formatting preset. Supports saved pre-processing templates, stage-specific model overrides for formatting/summary/enrichment, plus optional study-material enrichment in the same request. Charged per document, not per hour.","operationId":"transcribe_and_format","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicJobResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Cost cap exceeded"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://api.transcriwise.com/api/v2/documents/transcribe-and-format \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"file_url\": \"https://example.com/meeting.mp3\",\n       \"document_type\": \"meeting_notes\", \"model\": \"auto\",\n       \"formatting\": {\"formatting_model\": \"gemini-4-hydrogen\"}}'"},{"lang":"Python","label":"Python","source":"doc = requests.post(\n    \"https://api.transcriwise.com/api/v2/documents/transcribe-and-format\",\n    headers=headers,\n    json={\n        \"file_url\": \"https://example.com/meeting.mp3\",\n        \"document_type\": \"meeting_notes\",\n        \"model\": \"auto\",\n        \"formatting\": {\"formatting_model\": \"gemini-4-hydrogen\"},\n    },\n).json()"},{"lang":"JavaScript","label":"JavaScript","source":"const doc = await fetch(\"https://api.transcriwise.com/api/v2/documents/transcribe-and-format\", {\n  method: \"POST\",\n  headers,\n  body: JSON.stringify({\n    file_url: \"https://example.com/meeting.mp3\",\n    document_type: \"meeting_notes\",\n    model: \"auto\",\n  }),\n}).then((r) => r.json());"}]}},"/api/v2/documents/format":{"post":{"tags":["public-api-v2"],"summary":"Create a V2 document from an existing transcript source","description":"Creates a V2 document artifact from either a completed transcript job or direct transcript text, re-running the same intelligent formatting pipeline used by the app over the raw transcript source. Supports saved pre-processing templates, stage-specific model overrides, plus optional study-material enrichment.","operationId":"format_existing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormatExistingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Job not found"},"409":{"description":"No transcript content available"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/pre-processing-templates":{"get":{"tags":["public-api-v2"],"summary":"List saved pre-processing templates","description":"List the user's saved pre-processing templates. These templates are resolved by `template_id` and applied before the same intelligent formatting pipeline used by the app runs over the raw transcript.","operationId":"list_preprocessing_templates","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by template name","title":"Search"},"description":"Filter by template name"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by the built-in V2 document_type this template targets","title":"Document Type"},"description":"Filter by the built-in V2 document_type this template targets"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreProcessingTemplateListResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["public-api-v2"],"summary":"Create a saved pre-processing template","description":"Create a user-scoped pre-processing template that can later be referenced by `template_id` in V2 formatting requests.","operationId":"create_preprocessing_template","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreProcessingTemplateCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreProcessingTemplateResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/pre-processing-templates/{template_id}":{"get":{"tags":["public-api-v2"],"summary":"Get a saved pre-processing template","description":"Return a single saved pre-processing template owned by the caller.","operationId":"get_preprocessing_template","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreProcessingTemplateResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["public-api-v2"],"summary":"Update a saved pre-processing template","description":"Update the name, instructions, tags, or default target document_type of a saved pre-processing template.","operationId":"update_preprocessing_template","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreProcessingTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreProcessingTemplateResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["public-api-v2"],"summary":"Delete a saved pre-processing template","description":"Delete a user-scoped pre-processing template from the V2 template library.","operationId":"delete_preprocessing_template","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/templates":{"get":{"tags":["public-api-v2"],"summary":"List available document templates","description":"List the three template layers exposed by V2: built-in `document_type` presets used by the intelligent formatter, saved pre-processing templates resolved by `template_id`, and AI post-processing templates applied after a transcript/document source already exists.","operationId":"list_document_templates","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category","title":"Category"},"description":"Filter by category"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateListResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/jobs/{job_id}/apply-template":{"post":{"tags":["public-api-v2"],"summary":"Apply a template and persist a V2 document artifact","description":"Apply an AI template as post-processing on top of a completed transcript or V2 document source. The template step is anchored to the raw transcript content before the final document artifact is persisted. Use `model` to override the LLM only for this post-processing stage.","operationId":"apply_template_to_job","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResultResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"description":"Job not completed or content missing"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/jobs/{job_id}/export-docx":{"post":{"tags":["public-api-v2"],"summary":"Export a document/transcript source as DOCX","description":"Export a completed source job as a formatted DOCX artifact.","operationId":"export_docx","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportDocxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportFileResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"description":"Job not completed, no content available, or study material pending review: `detail.code` is `study_delivery_review_required`, with `delivery_state`, `pending`, `reasons`, `content_sha256` and `acknowledgment_allowed`."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/jobs/{job_id}/export-pdf":{"post":{"tags":["public-api-v2"],"summary":"Export a document/transcript source as PDF","description":"Export a completed source job as a formatted PDF artifact.","operationId":"export_pdf","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportPdfRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportFileResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"description":"Job not completed, no content available, or study material pending review: `detail.code` is `study_delivery_review_required`, with `delivery_state`, `pending`, `reasons`, `content_sha256` and `acknowledgment_allowed`."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/{job_id}":{"get":{"tags":["public-api-v2"],"summary":"Get the generated document","description":"Retrieve the persisted V2 document artifact for a completed document job.","operationId":"get_document","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Output: json, markdown, txt","default":"json","title":"Format"},"description":"Output: json, markdown, txt"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResultResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"description":"Job not found"},"409":{"description":"Job not completed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/insights/jobs/{job_id}/summary":{"get":{"tags":["public-api-v2"],"summary":"Get AI summary","description":"Get the AI-generated summary of a completed transcript source.","operationId":"get_summary","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/insights/jobs/{job_id}/mind-map":{"post":{"tags":["public-api-v2"],"summary":"Generate mind map from transcript source","description":"Generate a structured mind map from a completed transcript source. Charged to the API balance by the AI it uses.","operationId":"generate_mind_map","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"description":"Optional. Repeat it to retry the same request safely.","title":"Idempotency-Key"},"description":"Optional. Repeat it to retry the same request safely."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MindMapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MindMapResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/conversations/jobs/{job_id}/chat":{"post":{"tags":["public-api-v2"],"summary":"Chat about a transcript source","description":"Ask questions about a transcript source using AI. Charged to the API balance by the AI it uses.","operationId":"chat_about_job","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"description":"Optional. Repeat it to retry the same request safely.","title":"Idempotency-Key"},"description":"Optional. Repeat it to retry the same request safely."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://api.transcriwise.com/api/v2/conversations/jobs/$JOB_ID/chat \\\n  -H \"Authorization: Bearer $TRANSCRIWISE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: chat-$JOB_ID-001\" \\\n  -d '{\"message\": \"What did they decide?\", \"model\": \"deepseek/deepseek-v4-flash\"}'"},{"lang":"Python","label":"Python","source":"answer = requests.post(\n    f\"https://api.transcriwise.com/api/v2/conversations/jobs/{job_id}/chat\",\n    headers={**headers, \"Idempotency-Key\": f\"chat-{job_id}-001\"},\n    json={\"message\": \"What did they decide?\", \"model\": \"deepseek/deepseek-v4-flash\"},\n).json()\nprint(answer[\"reply\"], answer[\"usage\"])"},{"lang":"JavaScript","label":"JavaScript","source":"const answer = await fetch(`https://api.transcriwise.com/api/v2/conversations/jobs/${jobId}/chat`, {\n  method: \"POST\",\n  headers: { ...headers, \"Idempotency-Key\": `chat-${jobId}-001` },\n  body: JSON.stringify({ message: \"What did they decide?\" }),\n}).then((r) => r.json());"}]}},"/api/v2/knowledge-bases/{kb_id}/chat":{"post":{"tags":["public-api-v2"],"summary":"Chat with a knowledge base","description":"Ask questions across multiple transcriptions in a knowledge base. Uses RAG for retrieval. Charged to the API balance by the AI it uses.","operationId":"kb_chat","parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"description":"Optional. Repeat it to retry the same request safely.","title":"Idempotency-Key"},"description":"Optional. Repeat it to retry the same request safely."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBChatResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/knowledge-bases/{kb_id}/generate":{"post":{"tags":["public-api-v2"],"summary":"Generate study content from knowledge base","description":"Generate flashcards, quizzes, study guides, FAQ, or mind maps from a knowledge base. Charged to the API balance by the AI it uses.","operationId":"kb_generate","parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"description":"Optional. Repeat it to retry the same request safely.","title":"Idempotency-Key"},"description":"Optional. Repeat it to retry the same request safely."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/provider-keys":{"get":{"tags":["public-api-v1"],"summary":"List your BYO provider keys","description":"List all configured BYO provider keys (credentials are never returned).","operationId":"list_keys","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderKeyResponse"},"type":"array","title":"Response List Keys Api V1 Provider Keys Get"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["public-api-v1"],"summary":"Set a BYO provider key","description":"Register your own API key for a transcription provider. When set, your key is used instead of the platform key, and provider costs are charged to your account directly.","operationId":"set_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetProviderKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/provider-keys/{provider}":{"delete":{"tags":["public-api-v1"],"summary":"Remove a BYO provider key","description":"Deactivate your BYO key for a provider. Platform key will be used again.","operationId":"delete_key","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/usage/summary":{"get":{"tags":["public-api-v1"],"summary":"Your API usage summary","description":"Total consumption, cost, and jobs for the current billing period.","operationId":"usage_summary","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","description":"today, week, month, all","default":"month","title":"Period"},"description":"today, week, month, all"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/usage/history":{"get":{"tags":["public-api-v1"],"summary":"Your usage history","description":"Detailed list of usage records with provider, cost, and timestamps.","operationId":"usage_history","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}},{"name":"usage_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter: transcription, translation, ai_summary, api_call","title":"Usage Type"},"description":"Filter: transcription, translation, ai_summary, api_call"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/usage/by-provider":{"get":{"tags":["public-api-v1"],"summary":"Your usage by provider","description":"Breakdown of consumption by transcription provider.","operationId":"usage_by_provider","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Public API disabled, plan without this feature, or key without the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; retry after the `Retry-After` header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"V1BotResponse":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["bot_id","status"],"title":"V1BotResponse"},"FormatExistingRequest":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"ID of a completed transcript source job"},"transcript_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Text","description":"Raw transcript text when no source job exists"},"document_type":{"type":"string","title":"Document Type","description":"Type of document to generate"},"source_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Language","description":"Language code for direct transcript_text input"},"formatting":{"anyOf":[{"$ref":"#/components/schemas/DocumentFormattingOptions"},{"type":"null"}],"description":"Nested formatting controls that mirror the app's intelligent formatting pipeline over the raw transcript source, including optional study-material enrichment."},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id","description":"Deprecated alias for formatting.template_id."},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions","description":"Deprecated alias for formatting.custom_instructions."},"formatting_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Formatting Model","description":"Deprecated alias for formatting.formatting_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"summary_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Summary Model","description":"Deprecated alias for formatting.summary_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"enrichment_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Enrichment Model","description":"Deprecated alias for formatting.enrichment_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"custom_prompt_scope":{"type":"string","title":"Custom Prompt Scope","description":"Deprecated alias for formatting.custom_prompt_scope.","default":"tables_only"},"disable_tables":{"type":"boolean","title":"Disable Tables","description":"Deprecated alias for formatting.disable_tables.","default":false},"area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area","description":"Deprecated alias for formatting.area."},"speaker_roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Speaker Roles","description":"Deprecated alias for formatting.speaker_roles."},"speakers_expected":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speakers Expected","description":"Deprecated alias for formatting.speakers_expected."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Callback URL"},"output_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Format","description":"Output format: markdown, html, txt","default":"markdown"},"enrichment":{"anyOf":[{"$ref":"#/components/schemas/DocumentEnrichmentOptions"},{"type":"null"}],"description":"Deprecated alias for formatting.enrichment."}},"type":"object","required":["document_type"],"title":"FormatExistingRequest","description":"Request to create a V2 document from an existing transcript source."},"ErrorResponse":{"title":"ErrorResponse","type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"]},"JobListResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/JobStatusResponse"},"type":"array","title":"Jobs"},"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["jobs","total","has_more"],"title":"JobListResponse"},"ExportPdfRequest":{"properties":{"document_theme":{"type":"string","title":"Document Theme","description":"Built-in theme: classic, minimal, professional","default":"classic"},"filename":{"type":"string","title":"Filename","description":"Output filename","default":"transcription.pdf"},"document_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Source","description":"Content source: base, template, or auto (default)"},"acknowledged_delivery_review_sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Acknowledged Delivery Review Sha256","description":"`content_sha256` from a 409 `study_delivery_review_required` whose `acknowledgment_allowed` is true: exports that exact content with its reservation. It never releases stale or inconsistent study material."}},"type":"object","title":"ExportPdfRequest"},"V1TranslateRequest":{"properties":{"target_language":{"type":"string","minLength":2,"title":"Target Language","description":"Target language code (e.g. 'en', 'es', 'fr')"},"translate_formatted":{"type":"boolean","title":"Translate Formatted","description":"Translate the formatted content","default":true},"translate_raw":{"type":"boolean","title":"Translate Raw","description":"Translate raw segments (preserves timestamps)","default":true},"generate_subtitles":{"type":"boolean","title":"Generate Subtitles","description":"Generate translated SRT/VTT","default":false},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Translation model id from GET /api/v1/models?type=translation, e.g. `deepl/deepl-pro`, `google/translate-nmt` or `google/gemini-4-hydrogen`. Default `auto`."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Translation engine by its short name (deepl, azure, google_nmt, google_tllm, gemini). Prefer `model`."}},"type":"object","required":["target_language"],"title":"V1TranslateRequest"},"DocumentRequest":{"properties":{"file_url":{"type":"string","title":"File Url","description":"Public URL of the audio/video file to transcribe"},"document_type":{"type":"string","title":"Document Type","description":"Type of document to generate: apostila, meeting_notes, legal_draft, deposition, expert_report, court_hearing, court_ruling, appellate_decision, notarial_act, notarial, lecture_notes, medical_consultation, study_guide, podcast_summary, podcast, interview, call, webinar, simulation, fidelity_transcript, fidelidade"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language code (auto-detected if omitted)"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Transcription model id from GET /api/v1/models, e.g. `auto` (default), `soniox`, `assemblyai/universal-3-5-pro` or `whisper/large-v3-turbo`. Replaces provider/provider_variant. This is the transcription model; the formatting LLM is formatting.formatting_model."},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models","description":"Fallback list of model ids, tried in order when the previous one fails. May include `auto`. At most 5 ids. In multipart forms send a JSON array or comma-separated ids."},"routing":{"anyOf":[{"$ref":"#/components/schemas/RoutingPreferences"},{"type":"null"}],"description":"Routing preferences: order, allow_fallbacks, only, ignore, sort (price | accuracy | speed) and max_price_per_hour (USD). In multipart forms send it as a JSON string."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Engine family: auto, alibaba, assemblyai, deepgram, elevenlabs, gemini, gladia, iflytek, soniox, voxtral, whisper. Prefer `model`."},"provider_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Variant","description":"Exact model within the provider family. Prefer `model`."},"asr_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asr Model","description":"Same as provider_variant. Prefer `model`."},"gemini_transcription_mode":{"type":"string","enum":["verbatim","smart"],"title":"Gemini Transcription Mode","description":"Gemini ASR mode: verbatim or smart","default":"verbatim"},"gemini_word_timestamps":{"type":"boolean","title":"Gemini Word Timestamps","description":"Request Gemini Verbatim word timestamps when compatible","default":true},"diarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diarization","description":"Enable speaker diarization","default":true},"formatting":{"anyOf":[{"$ref":"#/components/schemas/DocumentFormattingOptions"},{"type":"null"}],"description":"Nested formatting controls that mirror the app's intelligent formatting pipeline over the raw transcript, including optional study-material enrichment."},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id","description":"Deprecated alias for formatting.template_id."},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions","description":"Deprecated alias for formatting.custom_instructions."},"formatting_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Formatting Model","description":"Deprecated alias for formatting.formatting_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"summary_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Summary Model","description":"Deprecated alias for formatting.summary_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"enrichment_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Enrichment Model","description":"Deprecated alias for formatting.enrichment_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"custom_prompt_scope":{"type":"string","title":"Custom Prompt Scope","description":"Deprecated alias for formatting.custom_prompt_scope.","default":"tables_only"},"disable_tables":{"type":"boolean","title":"Disable Tables","description":"Deprecated alias for formatting.disable_tables.","default":false},"area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area","description":"Deprecated alias for formatting.area."},"speaker_roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Speaker Roles","description":"Deprecated alias for formatting.speaker_roles."},"speakers_expected":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speakers Expected","description":"Deprecated alias for formatting.speakers_expected."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL to receive POST callback when the document is ready"},"output_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Format","description":"Output format: markdown, html, txt","default":"markdown"},"enrichment":{"anyOf":[{"$ref":"#/components/schemas/DocumentEnrichmentOptions"},{"type":"null"}],"description":"Deprecated alias for formatting.enrichment."}},"type":"object","required":["file_url","document_type"],"title":"DocumentRequest","description":"Request to generate a formatted document from audio."},"JobStatusResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"progress":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Progress"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model that transcribed the job (the requested model while it runs)"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"attempts":{"anyOf":[{"items":{"$ref":"#/components/schemas/RouteAttempt"},"type":"array"},{"type":"null"}],"title":"Attempts","description":"Engines tried, in order, when the route fell back. Failed attempts are not charged."},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"speaker_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speaker Count"},"file_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Names"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["job_id","status"],"title":"JobStatusResponse"},"DocumentFormattingOptions":{"properties":{"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id","description":"Saved pre-processing template from the user's library, applied before the intelligent formatter runs."},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions","description":"Inline instructions merged after the saved pre-processing template and before formatting."},"formatting_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Formatting Model","description":"Formatting LLM, one of the listed model ids.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"summary_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Summary Model","description":"LLM for summary stages, one of the listed model ids. Defaults to formatting_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"enrichment_model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Enrichment Model","description":"LLM for mind maps, glossary, exercises, quizzes and other enrichment stages, one of the listed model ids. Defaults to formatting_model.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]},"thinking_level":{"type":"string","title":"Thinking Level","description":"Thinking budget used by the formatting model: none, minimal, low, medium, high, xhigh.","default":"medium"},"format_execution_profile":{"type":"string","enum":["safe","fast","turbo","max_quality"],"title":"Format Execution Profile","description":"Execution profile for formatting: safe, fast, turbo, max_quality.","default":"safe"},"processing_preset":{"anyOf":[{"type":"string","enum":["rapid","standard","professional","premium","custom"]},{"type":"null"}],"title":"Processing Preset","description":"Canonical processing preset: rapid, standard, professional, premium, custom."},"audit_level":{"anyOf":[{"type":"string","enum":["off","fidelity","full"]},{"type":"null"}],"title":"Audit Level","description":"Canonical audit level: off, fidelity, full."},"custom_prompt_scope":{"type":"string","title":"Custom Prompt Scope","description":"Prompt scope: tables_only, style_and_tables, full_template. Compatibility aliases are also accepted.","default":"tables_only"},"disable_tables":{"type":"boolean","title":"Disable Tables","description":"Suppress tables and table-like extras in the final document unless full_template takes full control.","default":false},"high_accuracy":{"type":"boolean","title":"High Accuracy","description":"Enable high-accuracy / beam-search oriented transcription when the chosen ASR path supports it.","default":false},"use_cache":{"type":"boolean","title":"Use Cache","description":"Reuse cached RAW transcription for the same input when available.","default":true},"auto_apply_fixes":{"type":"boolean","title":"Auto Apply Fixes","description":"Auto-apply structural corrections after the main formatting/audit stages.","default":true},"auto_apply_content_fixes":{"type":"boolean","title":"Auto Apply Content Fixes","description":"Auto-apply AI content corrections on top of RAW + formatting. Use with caution.","default":false},"output_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Language","description":"Translate the formatted document to this output language while preserving the same formatting pipeline."},"custom_keyterms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Custom Keyterms","description":"Technical terms, names, and acronyms to bias recognition/formatting."},"diarization_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diarization Provider","description":"Speaker diarization engine: `auto` (default, the best one for the transcription engine) or `assemblyai`."},"area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area","description":"Knowledge area for vocabulary and heuristics: juridico, medicina, ti, engenharia, financeiro, geral."},"speaker_roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Speaker Roles","description":"Speaker role hints used by meeting/hearing/deposition style documents."},"speakers_expected":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speakers Expected","description":"Expected speaker count for diarization-heavy flows."},"use_pro_analytical_passes":{"type":"boolean","title":"Use Pro Analytical Passes","description":"Force Pro-equivalent analytical passes without changing the base economical chunk model.","default":false},"enrichment":{"anyOf":[{"$ref":"#/components/schemas/DocumentEnrichmentOptions"},{"type":"null"}],"description":"Optional study-material enrichment appended after the base document is formatted."}},"type":"object","title":"DocumentFormattingOptions","description":"Formatting controls mirrored from the app's intelligent formatting layer."},"TranscriptSearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"results":{"items":{"$ref":"#/components/schemas/TranscriptSearchResult"},"type":"array","title":"Results"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["query","results","total"],"title":"TranscriptSearchResponse"},"PublicHighlightResponse":{"properties":{"id":{"type":"string","title":"Id"},"timestamp_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timestamp Seconds"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"speaker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"PublicHighlightResponse"},"PreProcessingTemplateCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","minLength":1,"title":"Description","description":"Template body/instructions applied before intelligent formatting."},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type","description":"Optional built-in V2 document_type this template is primarily intended for."},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["name","description"],"title":"PreProcessingTemplateCreateRequest"},"V1BulkTranslateResponse":{"properties":{"total":{"type":"integer","title":"Total"},"success":{"type":"integer","title":"Success"},"failed":{"type":"integer","title":"Failed"},"results":{"items":{"$ref":"#/components/schemas/V1BulkTranslateResult"},"type":"array","title":"Results"}},"type":"object","required":["total","success","failed","results"],"title":"V1BulkTranslateResponse"},"PreProcessingTemplateUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Description"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","title":"PreProcessingTemplateUpdateRequest"},"V1BulkTranslateRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V1BulkTranslateItem"},"type":"array","maxItems":50,"minItems":1,"title":"Items","description":"List of jobs to translate (max 50)"},"stop_on_error":{"type":"boolean","title":"Stop On Error","description":"Stop processing on first error","default":false}},"type":"object","required":["items"],"title":"V1BulkTranslateRequest"},"SetProviderKeyRequest":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name: assemblyai, deepgram, soniox, elevenlabs, gladia, voxtral, alibaba, iflytek"},"credentials":{"additionalProperties":{"type":"string"},"type":"object","title":"Credentials","description":"Provider credentials. Most providers: {api_key: '...'}. iFlytek: {app_id: '...', api_secret: '...', api_key: '...'}"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Friendly label (e.g. 'Production Deepgram key')"}},"type":"object","required":["provider","credentials"],"title":"SetProviderKeyRequest"},"DocumentEnrichmentOptions":{"properties":{"mind_map":{"type":"boolean","title":"Mind Map","description":"Append a final mind map / topic map section to the generated document.","default":false},"mind_map_custom_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mind Map Custom Prompt","description":"Global custom prompt for the final mind map generation."},"mind_map_custom_prompt_overview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mind Map Custom Prompt Overview","description":"Custom prompt for the document-level overview mind map."},"mind_map_custom_prompt_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mind Map Custom Prompt Topic","description":"Custom prompt for topic-specific mind map generation."},"mind_map_custom_prompt_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mind Map Custom Prompt Section","description":"Custom prompt for per-section mini mind maps."},"mind_map_count":{"type":"integer","title":"Mind Map Count","description":"Number of mind maps. `0` (default) lets the AI decide, proportional to document size; `1` keeps a single document-level appendix; higher values force additional topical maps.","default":0},"exercises":{"type":"boolean","title":"Exercises","description":"Append exercises / quiz material at the end of the document.","default":false},"exercises_count":{"type":"integer","title":"Exercises Count","description":"Requested exercise count. `0` (default) lets the AI decide, proportional to document size.","default":0},"per_section_mind_map":{"type":"boolean","title":"Per Section Mind Map","description":"Insert a mini mind map after each major section.","default":false},"per_section_quiz":{"type":"boolean","title":"Per Section Quiz","description":"Insert a short quiz after each major section.","default":false},"exercises_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exercises Types","description":"Exercise types: multiple_choice, true_false, essay."},"exercises_custom_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exercises Custom Prompt","description":"Global custom prompt for the final exercise appendix."},"exercises_custom_prompt_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exercises Custom Prompt Section","description":"Custom prompt for per-section quiz generation."},"executive_summary":{"type":"boolean","title":"Executive Summary","description":"Insert an executive summary near the top of the final document.","default":false},"executive_summary_custom_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executive Summary Custom Prompt","description":"Custom prompt for the executive summary block."},"glossary":{"type":"boolean","title":"Glossary","description":"Append a glossary of technical terms at the end of the document.","default":false},"ai_illustrations":{"type":"boolean","title":"Ai Illustrations","description":"Append AI-generated educational illustrations (Nano Banana 2.1 by default; see ai_illustrations_image_model).","default":false},"ai_illustrations_use_pro":{"type":"boolean","title":"Ai Illustrations Use Pro","description":"Use Nano Banana Pro for AI-generated illustrations.","default":false},"ai_illustrations_image_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Illustrations Image Model","description":"Image model for AI illustrations: gemini-nano-banana-2.1 (default), meta/muse-image, openai/gpt-image-2.5-flare, microsoft/mai-image-2.6, openai/gpt-image-2, x-ai/grok-imagine-image-2.0, recraft/recraft-v4.1-vector or sourceful/riverflow-v2.5-pro. Each image is charged at the model's per-image price."},"use_pro_enrichment":{"type":"boolean","title":"Use Pro Enrichment","description":"Use a Pro-equivalent model for enrichment stages when supported by the selected formatter family.","default":false},"use_pro_tables":{"type":"boolean","title":"Use Pro Tables","description":"Escalate ONLY the dedicated table second pass (quadro-síntese generation) to the provider Pro tier (e.g. gemini-4-hydrogen). The document body keeps the economic base model.","default":false}},"type":"object","title":"DocumentEnrichmentOptions","description":"Optional study-material enrichment appended after the base formatter output."},"PreProcessingTemplateListResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/PreProcessingTemplateResponse"},"type":"array","title":"Templates"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["templates","total"],"title":"PreProcessingTemplateListResponse"},"V1TranslateResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"translated_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translated Content"},"translated_segments":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Translated Segments","description":"Timestamped segments, when translate_raw=true"},"target_language":{"type":"string","title":"Target Language"},"source_language":{"type":"string","title":"Source Language"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Translation model that ran"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"usage":{"anyOf":[{"$ref":"#/components/schemas/AIUsage"},{"type":"null"}]},"provider_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Used","description":"Short name of the engine that ran (see `model`)"},"srt_available":{"type":"boolean","title":"Srt Available","default":false},"vtt_available":{"type":"boolean","title":"Vtt Available","default":false}},"type":"object","required":["job_id","target_language","source_language"],"title":"V1TranslateResponse"},"DocumentResultResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"source_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Job Id"},"document_type":{"type":"string","title":"Document Type"},"status":{"type":"string","title":"Status"},"formatted_document":{"$ref":"#/components/schemas/FormattedDocumentResponse"},"raw_transcription":{"type":"string","title":"Raw Transcription"},"segments":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Segments"},"speakers":{"anyOf":[{},{"type":"null"}],"title":"Speakers"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"enrichment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Enrichment"}},"type":"object","required":["job_id","document_type","status","formatted_document","raw_transcription"],"title":"DocumentResultResponse"},"PublicJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["job_id","status"],"title":"PublicJobResponse"},"RouteAttempt":{"properties":{"model":{"type":"string","title":"Model","description":"Model id tried"},"status":{"type":"string","title":"Status","description":"succeeded, failed or skipped"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the attempt failed or was skipped"}},"type":"object","required":["model","status"],"title":"RouteAttempt"},"PreProcessingTemplateResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"created_at":{"anyOf":[{},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{},{"type":"null"}],"title":"Updated At"},"stage":{"type":"string","title":"Stage","default":"pre_processing"}},"type":"object","required":["id","name","title","description"],"title":"PreProcessingTemplateResponse"},"V1BulkTranslateItem":{"properties":{"job_id":{"type":"string","title":"Job Id","description":"Job ID to translate"},"target_language":{"type":"string","title":"Target Language","description":"Target language code"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Translation model id from GET /api/v1/models?type=translation, e.g. `deepl/deepl-pro`, `google/translate-nmt` or `google/gemini-4-hydrogen`. Default `auto`."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Translation engine by its short name (deepl, azure, google_nmt, google_tllm, gemini). Prefer `model`."}},"type":"object","required":["job_id","target_language"],"title":"V1BulkTranslateItem"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"V1BulkTranscribeResponse":{"properties":{"total":{"type":"integer","title":"Total"},"queued":{"type":"integer","title":"Queued"},"failed":{"type":"integer","title":"Failed"},"results":{"items":{"$ref":"#/components/schemas/V1BulkTranscribeResult"},"type":"array","title":"Results"}},"type":"object","required":["total","queued","failed","results"],"title":"V1BulkTranscribeResponse"},"V1BulkTranscribeRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V1BulkTranscribeItem"},"type":"array","maxItems":50,"minItems":1,"title":"Items","description":"List of files to transcribe (max 50)"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Transcription model id from GET /api/v1/models, e.g. `auto` (default), `soniox`, `assemblyai/universal-3-5-pro` or `whisper/large-v3-turbo`. Replaces provider/provider_variant."},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models","description":"Fallback list of model ids, tried in order when the previous one fails. May include `auto`. At most 5 ids. In multipart forms send a JSON array or comma-separated ids."},"routing":{"anyOf":[{"$ref":"#/components/schemas/RoutingPreferences"},{"type":"null"}],"description":"Routing preferences: order, allow_fallbacks, only, ignore, sort (price | accuracy | speed) and max_price_per_hour (USD). In multipart forms send it as a JSON string."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Receives one callback per job when it completes or fails"}},"type":"object","required":["items"],"title":"V1BulkTranscribeRequest"},"TranscriptSearchResult":{"properties":{"job_id":{"type":"string","title":"Job Id"},"chunk_idx":{"type":"integer","title":"Chunk Idx"},"char_start":{"type":"integer","title":"Char Start"},"char_end":{"type":"integer","title":"Char End"},"excerpt":{"type":"string","title":"Excerpt"},"score":{"type":"number","title":"Score"},"file_names":{"items":{"type":"string"},"type":"array","title":"File Names"},"result_version":{"type":"string","title":"Result Version"},"content_kind":{"type":"string","enum":["formatted","raw_verbatim"],"title":"Content Kind"},"coordinate_space":{"type":"string","const":"utf16","title":"Coordinate Space","default":"utf16"},"canonical_content_path":{"type":"string","title":"Canonical Content Path"}},"type":"object","required":["job_id","chunk_idx","char_start","char_end","excerpt","score","result_version","content_kind","canonical_content_path"],"title":"TranscriptSearchResult"},"V1BulkTranscribeItem":{"properties":{"file_url":{"type":"string","title":"File Url","description":"URL of the audio/video file"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name","description":"Filename hint"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","description":"RAW is the only accepted value","default":"RAW"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language code"},"diarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diarization","description":"Enable speaker diarization"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Overrides the request-level model for this file"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models","description":"Overrides the request-level fallback list for this file"}},"type":"object","required":["file_url"],"title":"V1BulkTranscribeItem"},"TranscribeByUrlRequest":{"properties":{"file_url":{"type":"string","title":"File Url","description":"Public URL of the audio/video file to transcribe"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name","description":"File name with its extension (e.g. call.mp3). Defaults to the name in file_url."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language code (e.g. 'pt', 'en', 'es'). Auto-detected if omitted."},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","description":"v1 is raw transcription only: RAW is the only accepted value. For formatted documents use POST /api/v2/documents/transcribe-and-format with document_type.","default":"RAW"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Transcription model id from GET /api/v1/models, e.g. `auto` (default), `soniox`, `assemblyai/universal-3-5-pro` or `whisper/large-v3-turbo`. Replaces provider/provider_variant."},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models","description":"Fallback list of model ids, tried in order when the previous one fails. May include `auto`. At most 5 ids. In multipart forms send a JSON array or comma-separated ids."},"routing":{"anyOf":[{"$ref":"#/components/schemas/RoutingPreferences"},{"type":"null"}],"description":"Routing preferences: order, allow_fallbacks, only, ignore, sort (price | accuracy | speed) and max_price_per_hour (USD). In multipart forms send it as a JSON string."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Engine family: auto, alibaba, assemblyai, deepgram, elevenlabs, gemini, gladia, iflytek, soniox, voxtral, whisper. Prefer `model`."},"provider_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Variant","description":"Exact model within the provider family, e.g. large-v3-turbo or universal-3-5-pro. Prefer `model`."},"asr_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asr Model","description":"Same as provider_variant. Prefer `model`."},"gemini_transcription_mode":{"type":"string","enum":["verbatim","smart"],"title":"Gemini Transcription Mode","description":"Gemini ASR mode. Smart removes disfluencies and cannot be combined with diarization.","default":"verbatim"},"gemini_word_timestamps":{"type":"boolean","title":"Gemini Word Timestamps","description":"Request Gemini Verbatim word timestamps when compatible.","default":true},"diarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diarization","description":"Enable speaker diarization"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL to receive a POST callback when the job completes or fails"},"area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area","description":"Knowledge area for vocabulary: juridico, medicina, ti, engenharia, financeiro, geral"},"output_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Format","description":"Output format preference: text, md, srt, vtt, json"},"entity_detection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Entity Detection","description":"Enable entity detection (people, orgs, locations, dates, values). Honored by gladia and elevenlabs."},"sentiment_analysis":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sentiment Analysis","description":"Enable sentiment analysis. Honored by gladia."},"auto_chapters":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Chapters","description":"Enable auto chapters. Honored by gladia."},"key_phrases":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Key Phrases","description":"Accepted for compatibility; currently has no effect."}},"additionalProperties":false,"type":"object","required":["file_url"],"title":"TranscribeByUrlRequest","description":"JSON body for URL-based transcription (used by Zapier, Make, etc.)."},"V1LaunchBotRequest":{"properties":{"meeting_url":{"type":"string","title":"Meeting Url","description":"Meeting URL (Zoom, Meet, or Teams)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Meeting title","default":"Meeting"},"bot_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Name","description":"Bot display name","default":"Transcriwise Bot"},"language":{"type":"string","title":"Language","description":"Transcription language code","default":"pt"},"live_provider":{"type":"string","title":"Live Provider","description":"Transcription engine of the bot. Live, during the meeting: elevenlabs (default), assemblyai, soniox, meeting_captions (the meeting platform's own captions). After the meeting ends, more accurate: assemblyai_async, deepgram_async, meeting_async.","default":"elevenlabs"}},"type":"object","required":["meeting_url"],"title":"V1LaunchBotRequest"},"AIUsage":{"properties":{"points":{"type":"integer","title":"Points","description":"AI points the request used"},"cost":{"type":"number","title":"Cost","description":"Amount charged to the API balance"},"currency":{"type":"string","title":"Currency","description":"Balance currency (USD or BRL)"}},"type":"object","required":["points","cost","currency"],"title":"AIUsage"},"ExportDocxRequest":{"properties":{"docx_theme_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Docx Theme Id","description":"ID of a saved DOCX visual theme"},"docx_theme_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Docx Theme Fields","description":"Dynamic field values for the theme"},"document_theme":{"type":"string","title":"Document Theme","description":"Built-in theme: classic, minimal, professional","default":"classic"},"filename":{"type":"string","title":"Filename","description":"Output filename","default":"transcription.docx"},"document_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Source","description":"Content source: base, template, or auto (default)"},"acknowledged_delivery_review_sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Acknowledged Delivery Review Sha256","description":"`content_sha256` from a 409 `study_delivery_review_required` whose `acknowledgment_allowed` is true: exports that exact content with its reservation. It never releases stale or inconsistent study material."}},"type":"object","title":"ExportDocxRequest"},"ExportFileResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"filename":{"type":"string","title":"Filename"},"download_url":{"type":"string","title":"Download Url"},"document_source":{"type":"string","title":"Document Source"}},"type":"object","required":["job_id","filename","download_url","document_source"],"title":"ExportFileResponse"},"V1BulkTranslateResult":{"properties":{"job_id":{"type":"string","title":"Job Id"},"ok":{"type":"boolean","title":"Ok"},"target_language":{"type":"string","title":"Target Language"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"usage":{"anyOf":[{"$ref":"#/components/schemas/AIUsage"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["job_id","ok","target_language"],"title":"V1BulkTranslateResult"},"ModelListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ModelEntry"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ModelListResponse"},"ProviderKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"provider":{"type":"string","title":"Provider"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"is_active":{"type":"boolean","title":"Is Active","default":true},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","provider"],"title":"ProviderKeyResponse"},"SummaryResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"key_points":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Key Points"},"action_items":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Action Items"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"}},"type":"object","required":["job_id"],"title":"SummaryResponse"},"V1BulkTranscribeResult":{"properties":{"file_url":{"type":"string","title":"File Url"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["file_url","status"],"title":"V1BulkTranscribeResult"},"ModelEntry":{"properties":{"id":{"type":"string","title":"Id","description":"Value for the `model` field"},"type":{"type":"string","enum":["asr","llm","translation"],"title":"Type"},"name":{"type":"string","title":"Name"},"provider":{"type":"string","title":"Provider"},"pricing":{"$ref":"#/components/schemas/ModelPricing"},"status":{"type":"string","enum":["available","unavailable"],"title":"Status","description":"unavailable: temporarily not accepting jobs"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases"},"endpoints":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Endpoints","description":"AI endpoints that accept this LLM"},"recommended_languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recommended Languages","description":"Languages the automatic route ranks this engine for"},"speed_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speed Tier","description":"Relative turnaround, 1 = fastest (used by routing.sort=speed)"}},"additionalProperties":true,"type":"object","required":["id","type","name","provider","pricing","status"],"title":"ModelEntry"},"RoutingPreferences":{"properties":{"order":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Order","description":"Engines tried first by the automatic route, in this order (provider names like `soniox` or model ids like `assemblyai/universal-2`)."},"allow_fallbacks":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Fallbacks","description":"Try the next candidate when an engine fails. Defaults to true for the automatic route and for `models[]`, false for a single pinned `model`. true on a pinned model falls back to the automatic route."},"only":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Only","description":"Use only these providers or model ids."},"ignore":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ignore","description":"Never use these providers or model ids."},"sort":{"anyOf":[{"type":"string","enum":["price","accuracy","speed"]},{"type":"null"}],"title":"Sort","description":"Order the automatic route by price (cheapest first), accuracy (benchmark ranking for the language) or speed (fastest turnaround first)."},"max_price_per_hour":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Price Per Hour","description":"Skip engines whose price is above this many USD per audio hour."}},"additionalProperties":false,"type":"object","title":"RoutingPreferences","description":"How the API picks and falls back between transcription engines."},"FormattedDocumentResponse":{"properties":{"template_used":{"type":"string","title":"Template Used"},"markdown_content":{"type":"string","title":"Markdown Content"}},"type":"object","required":["template_used","markdown_content"],"title":"FormattedDocumentResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ModelPricing":{"properties":{"unit":{"type":"string","title":"Unit","description":"audio_hour (ASR), tokens (LLM) or characters (translation)"}},"additionalProperties":true,"type":"object","required":["unit"],"title":"ModelPricing"},"CreateTranscriptionForm":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Audio or video file to transcribe"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language code (e.g. 'pt', 'en', 'es'). Auto-detected if omitted."},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","description":"v1 is raw transcription only: RAW is the only accepted value. For formatted documents use POST /api/v2/documents/transcribe-and-format with document_type.","default":"RAW"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Transcription model id from GET /api/v1/models, e.g. `auto` (default), `soniox`, `assemblyai/universal-3-5-pro` or `whisper/large-v3-turbo`. Replaces provider/provider_variant."},"models":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Models","description":"Fallback list of model ids, tried in order when the previous one fails. May include `auto`. At most 5 ids. In multipart forms send a JSON array or comma-separated ids."},"routing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing","description":"Routing preferences: order, allow_fallbacks, only, ignore, sort (price | accuracy | speed) and max_price_per_hour (USD). In multipart forms send it as a JSON string."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Engine family: auto, alibaba, assemblyai, deepgram, elevenlabs, gemini, gladia, iflytek, soniox, voxtral, whisper. Prefer `model`."},"provider_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Variant","description":"Exact model within the provider family, e.g. large-v3-turbo or universal-3-5-pro. Prefer `model`."},"asr_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asr Model","description":"Same as provider_variant. Prefer `model`."},"gemini_transcription_mode":{"type":"string","enum":["verbatim","smart"],"title":"Gemini Transcription Mode","description":"Gemini ASR mode: verbatim or smart","default":"verbatim"},"gemini_word_timestamps":{"type":"boolean","title":"Gemini Word Timestamps","default":true},"diarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diarization","description":"Enable speaker diarization"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL to receive a POST callback when the job completes or fails"},"entity_detection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Entity Detection","description":"Enable entity detection (honored by gladia and elevenlabs)"},"sentiment_analysis":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sentiment Analysis","description":"Enable sentiment analysis (honored by gladia)"},"auto_chapters":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Chapters","description":"Enable auto chapters (honored by gladia)"},"key_phrases":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Key Phrases","description":"Accepted for compatibility; currently has no effect"}},"type":"object","required":["file"],"title":"CreateTranscriptionForm"},"ApplyTemplateRequest":{"properties":{"template_id":{"type":"string","title":"Template Id","description":"Template ID to apply"},"language":{"type":"string","title":"Language","description":"Output language: auto, pt, en, es","default":"auto"},"length_mode":{"type":"string","title":"Length Mode","description":"Detail level: short, medium, long, very_long","default":"long"},"custom_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instruction","description":"Additional instruction for the AI"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"enum":["gemini-3.1-flash-lite","deepseek-v4.1-flash","gemini-3.5-flash-lite","gpt-6-luna","mimo-v2.6-flash","gemini-4-hydrogen","deepseek-v4-pro"],"title":"Model","description":"LLM for the template generation stage, one of the listed model ids.","examples":["gemini-4-hydrogen","deepseek-v4-pro","gpt-6-luna"]}},"type":"object","required":["template_id"],"title":"ApplyTemplateRequest"},"KBGenerateRequest":{"properties":{"type":{"type":"string","title":"Type","description":"Content type: mind_map, flashcards, study_guide, faq, questions"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of items to generate"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Output language"},"custom_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Prompt","description":"Custom instruction for generation"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM id from GET /api/v1/models?type=llm. Default `google/gemini-4-hydrogen`. Accepted: `google/gemini-3.1-flash-lite`, `google/gemini-4-hydrogen`, `deepseek/deepseek-v4-flash`, `openai/gpt-6-luna`."}},"type":"object","required":["type"],"title":"KBGenerateRequest"},"MindMapResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"title":{"type":"string","title":"Title"},"nodes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Nodes"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Edges"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM that generated the map"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"usage":{"anyOf":[{"$ref":"#/components/schemas/AIUsage"},{"type":"null"}]}},"type":"object","required":["job_id","title","nodes","edges"],"title":"MindMapResponse"},"MindMapRequest":{"properties":{"custom_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Prompt","description":"Custom instruction for mind map generation"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM id from GET /api/v1/models?type=llm. Default `google/gemini-3.1-flash-lite`. Accepted: `google/gemini-3.1-flash-lite`, `google/gemini-4-hydrogen`, `deepseek/deepseek-v4-flash`, `openai/gpt-6-luna`."}},"type":"object","title":"MindMapRequest"},"KBChatResponse":{"properties":{"reply":{"type":"string","title":"Reply"},"suggested_questions":{"items":{"type":"string"},"type":"array","title":"Suggested Questions"},"sources":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sources"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM that answered"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"usage":{"anyOf":[{"$ref":"#/components/schemas/AIUsage"},{"type":"null"}]}},"type":"object","required":["reply","suggested_questions","sources"],"title":"KBChatResponse"},"KBChatRequest":{"properties":{"message":{"type":"string","title":"Message","description":"Question to ask about the knowledge base"},"history":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"History","description":"Previous conversation [{role, content}]"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Response language (auto if omitted)"},"document_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Document Ids","description":"Limit search to specific job IDs within the KB"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM id from GET /api/v1/models?type=llm. Default `google/gemini-4-hydrogen`. Accepted: `google/gemini-3.1-flash-lite`, `google/gemini-4-hydrogen`, `deepseek/deepseek-v4-flash`, `openai/gpt-6-luna`."}},"type":"object","required":["message"],"title":"KBChatRequest"},"TemplateListResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/TemplateListItem"},"type":"array","title":"Templates"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["templates","total"],"title":"TemplateListResponse"},"ChatResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"reply":{"type":"string","title":"Reply"},"suggested_questions":{"items":{"type":"string"},"type":"array","title":"Suggested Questions"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM that answered"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"usage":{"anyOf":[{"$ref":"#/components/schemas/AIUsage"},{"type":"null"}]}},"type":"object","required":["job_id","reply","suggested_questions"],"title":"ChatResponse"},"ChatRequest":{"properties":{"message":{"type":"string","title":"Message","description":"Question about the transcription"},"history":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"History","description":"Previous conversation messages [{role, content}]"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Response language (auto-detected if omitted)"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"LLM id from GET /api/v1/models?type=llm. Default `google/gemini-4-hydrogen`. Accepted: `google/gemini-4-hydrogen`, `deepseek/deepseek-v4-flash`."}},"type":"object","required":["message"],"title":"ChatRequest"},"TemplateListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"preset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area"}},"type":"object","required":["id","name"],"title":"TemplateListItem"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key as Bearer token: `tw_` followed by 40 hex characters."}}},"security":[{"BearerAuth":[]}],"tags":[{"name":"public-api-v1","description":"API v1 — Raw transcription primitives with multi-provider routing, normalized transcript payloads, subtitles, and meeting capture."},{"name":"public-api-v2","description":"API v2 — Document Generation. Runs the same intelligent formatting pipeline used by the app over raw transcript sources, producing professional documents (meeting notes, legal drafts, hearings, apostilas, fidelity transcripts, and related artifacts). `document_type` selects the built-in preset, `template_id` resolves a saved pre-processing template inside the same formatter, `formatting.enrichment` adds study-material appendices, and `/apply-template` adds optional AI post-processing after the base document exists. Charged per document, with optional fixed surcharges for premium formatting models."}]}