{
"openapi": "3.0.1",
"info": {
"title": "api",
"version": ""
},
"paths": {
"/v1/balance/": {
"get": {
"description": "Get account balance showing available balance and pending charges",
"operationId": "balance_getBalance",
"tags": [
"Balance"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Balance"
}
}
}
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/batch": {
"post": {
"description": "Create multiple transcriptions in a single batch request.\n\n**Choose a processing mode:**\n\n- **Express mode**: Submit up to 10 files at once with `audio_sources`. Express batches may take longer than individual transcription requests, but make it easier to submit multiple files together. Pricing for v1 is $1.50/hour.\n- **Standard mode**: Transcriptions processed within 24 hours. Production allows up to 1,000 files per manifest and 5,000 accepted files per UTC day per account. First upload a manifest via [Upload Batch Manifest File](/api-reference/batch-transcribe/upload-batch-file), then pass the `batch_file_id` here. Pricing for v1 batch standard is $1.00/hour.\n\nStandard batches have a daily file quota separate from individual v1\nsubmissions. Account file quotas are shared across API keys; the\n5-request-per-minute allowance is per key and includes rate-limited\ntranscription and batch operations. Limits may differ by API environment\nor configuration. See [API limits and errors](/api-limits-and-errors) for\ncounting rules, reset times, and handling HTTP 429.\n\nAll files in the batch share the same transcription settings (model, language, etc.) defined in `info`.\n\nSpeaker settings can be provided at the batch level or per item. Per-item `num_speakers` or `auto_detect_speakers` settings take precedence over the batch-level speaker settings in `info`. If an item omits both speaker fields, it inherits the batch-level setting. If neither level provides a speaker setting, the transcription defaults to one speaker. Do not provide both `num_speakers` and `auto_detect_speakers` in the same object.\n\nIf you include a `client_item_id` on each item, it must be unique within the batch. You can later resolve a `client_item_id` back to the canonical transcription ID with [Get Batch Transcription By Client Item ID](/api-reference/batch-transcribe/get-batch-transcription-by-client-item-id).",
"operationId": "batchTranscribe_createBatchTranscription",
"tags": [
"BatchTranscribe"
],
"parameters": [],
"responses": {
"200": {
"description": "Returns the batch ID and individual transcription IDs. Use [Get Batch Status](/api-reference/batch-transcribe/get-batch-status) to track progress.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchTranscriptionResponse"
},
"examples": {
"express_mode": {
"value": {
"batch_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"transcription_ids": [
"d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"e6f0d95a-d3c3-5ca5-c5c1-8aad8b0aad43"
],
"total_count": 2,
"status": "RECEIVED"
}
},
"standard_mode": {
"value": {
"batch_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"transcription_ids": [
"c7d8e9f0-a1b2-3456-cdef-789012345678",
"d8e9f0a1-b2c3-4567-def0-890123456789",
"e9f0a1b2-c3d4-5678-ef01-901234567890"
],
"total_count": 3,
"status": "RECEIVED"
}
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchTranscriptionRequest"
},
"examples": {
"express_mode": {
"value": {
"audio_sources": [
{
"audio_url": "https://example.com/audio1.mp3",
"title": "Rabbi Cohen's Shiur on Shabbos",
"client_item_id": "shiur_shabbos"
},
{
"audio_url": "https://example.com/audio2.mp3",
"title": "Rabbi Cohen's Shiur on Kashrus",
"client_item_id": "shiur_kashrus"
}
],
"info": {
"model": "v1",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1
},
"batch_title": "Rabbi Cohen Shiurim",
"processing_mode": "express"
}
},
"standard_mode": {
"value": {
"batch_file_id": "f1234567-89ab-cdef-0123-456789abcdef",
"info": {
"model": "v1",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1
},
"batch_title": "Weekly Shiurim Collection",
"processing_mode": "standard"
}
}
}
}
}
}
}
},
"/v1/transcriptions/batch-files": {
"post": {
"description": "Upload a batch manifest containing audio URLs for standard mode batch processing.\n\n**Workflow:**\n1. Upload your manifest here to get a `batch_file_id`\n2. Use that ID in [Create Batch Transcription](/api-reference/batch-transcribe/create-batch-transcription) with `processing_mode: \"standard\"`\n\nThe manifest is a list of audio sources (up to 1,000 in production), each with a URL and optional title or `client_item_id`. If you provide `client_item_id`, it must be unique within the manifest. You can provide it as a JSON array or JSONL format.\n\nUploading a manifest uses the shared 5-request-per-minute allowance for\nrate-limited transcription and batch operations on the same API key.\nFiles count toward the separate 5,000-file production daily standard-batch\nquota when a batch is accepted for processing. Limits may differ by API\nenvironment or configuration; see [API limits and errors](/api-limits-and-errors).",
"operationId": "batchTranscribe_uploadBatchFile",
"tags": [
"BatchTranscribe"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchFileUploadResponse"
},
"examples": {
"json_format": {
"value": {
"batch_file_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"item_count": 3,
"size_bytes": 256,
"created_at": "2024-01-15T09:30:00Z",
"status": "VALID"
}
},
"jsonl_format": {
"value": {
"batch_file_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"item_count": 2,
"size_bytes": 128,
"created_at": "2024-01-15T09:30:00Z",
"status": "VALID"
}
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"summary": "Upload Batch Manifest File",
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchFileUploadRequest"
},
"examples": {
"json_format": {
"value": {
"content_type": "json",
"json_items": [
{
"audio_url": "https://example.com/shiur1.mp3",
"title": "Parshas Bereishis - Rabbi Cohen",
"client_item_id": "bereishis"
},
{
"audio_url": "https://example.com/shiur2.mp3",
"title": "Parshas Noach - Rabbi Cohen",
"client_item_id": "noach"
},
{
"audio_url": "https://example.com/shiur3.mp3",
"title": "Parshas Lech Lecha - Rabbi Cohen",
"client_item_id": "lech_lecha"
}
],
"metadata": {
"title": "Rabbi Cohen Weekly Parsha Series",
"description": "Shiurim from Fall 2024"
}
}
},
"jsonl_format": {
"value": {
"content_type": "jsonl",
"jsonl": "{\"audio_url\": \"https://example.com/shiur1.mp3\", \"title\": \"Shiur 1\", \"client_item_id\": \"shiur_1\"}\n{\"audio_url\": \"https://example.com/shiur2.mp3\", \"title\": \"Shiur 2\", \"client_item_id\": \"shiur_2\"}"
}
}
}
}
}
}
},
"get": {
"description": "List all batch file manifests you've uploaded. Use this to find a `batch_file_id` for starting a standard mode batch.",
"operationId": "batchTranscribe_listBatchFiles",
"tags": [
"BatchTranscribe"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListBatchFilesResponse"
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/batch-files/from-rss": {
"post": {
"description": "Create a standard-mode batch manifest from a podcast RSS feed.\n\nThe feed is fetched and parsed for podcast episode audio enclosures. Each episode with an audio enclosure becomes one manifest item with `audio_url`, title, and a stable `client_item_id`. The returned `batch_file_id` can be used in [Create Batch Transcription](/api-reference/batch-transcribe/create-batch-transcription) with `processing_mode: \"standard\"`.\n\nBy default, this imports up to the standard batch manifest limit. Use `limit` to import fewer episodes. If the feed has more episodes than one manifest can hold, call this endpoint again with the previous response's `next_offset`.\n\nNeed to find the RSS URL for a podcast? Try the [RSS.com Podcast RSS Feed Finder](https://rss.com/tools/find-my-feed/) and use the feed URL it returns.",
"operationId": "batchTranscribe_createBatchFileFromRss",
"tags": [
"BatchTranscribe"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchFileCreateFromRssResponse"
},
"examples": {
"podcast_rss": {
"value": {
"batch_file_id": "c3d4e5f6-a789-4012-bcde-f12345678901",
"item_count": 100,
"size_bytes": 8192,
"created_at": "2024-01-15T09:30:00Z",
"status": "VALID",
"offset": 0,
"limit": 100,
"has_more": true,
"next_offset": 100
}
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"summary": "Create Batch Manifest From RSS",
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchFileCreateFromRssRequest"
},
"examples": {
"podcast_rss": {
"value": {
"rss_url": "https://example.com/podcast/feed.xml",
"limit": 100,
"offset": 0,
"metadata": {
"title": "Weekly Parsha Podcast",
"description": "Imported from RSS"
}
}
}
}
}
}
}
}
},
"/v1/transcriptions/batch-files/{batch_file_id}": {
"get": {
"description": "Get details about a specific batch file manifest, including its validation status. Check this after uploading to ensure your manifest is valid before starting a batch.\n\nTo find batches already created from this manifest, use [List Batches For Manifest](/api-reference/batch-transcribe/list-batch-file-batches).",
"operationId": "batchTranscribe_getBatchFile",
"tags": [
"BatchTranscribe"
],
"parameters": [
{
"name": "batch_file_id",
"in": "path",
"description": "The batch file ID returned from [Upload Batch File](/api-reference/batch-transcribe/upload-batch-file)",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchFileDetail"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/batch-files/{batch_file_id}/batches": {
"get": {
"description": "Find batches created from a specific uploaded manifest, newest first. Only manifests and batches owned by the authenticated user are returned.\n\nUse `total_count` to check whether this manifest has ever been used to create a batch. An unused manifest returns `total_count: 0` and an empty `batches` list. A missing manifest or one owned by another user returns 404.\n\nEach batch includes its current status and transcription counts. `RECEIVED` and `PROCESSING` indicate queued or active work; `COMPLETED` and `FAILED` indicate finished work. A completed batch can contain failed items. Use [Get Batch Status](/api-reference/batch-transcribe/get-batch-status) with a returned `batch_id` for individual transcription details.\n\nResults match the exact `batch_file_id`, not other uploads with identical contents. This is a read-only lookup, not an atomic duplicate-submission guard.",
"operationId": "batchTranscribe_listBatchFileBatches",
"tags": [
"BatchTranscribe"
],
"parameters": [
{
"name": "batch_file_id",
"in": "path",
"description": "The manifest ID returned by uploading a batch file or creating one from RSS.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"example": "f1234567-89ab-cdef-0123-456789abcdef",
"examples": {
"unused_manifest": {
"value": "f1234567-89ab-cdef-0123-456789abcdef"
},
"existing_batch": {
"value": "f1234567-89ab-cdef-0123-456789abcdef"
}
}
},
{
"name": "limit",
"in": "query",
"description": "Number of batches per page. Defaults to 20; must be between 1 and 100.",
"required": false,
"schema": {
"type": "integer",
"nullable": true
}
},
{
"name": "offset",
"in": "query",
"description": "Number of batches to skip. Defaults to 0; must be non-negative.",
"required": false,
"schema": {
"type": "integer",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListBatchFileBatchesResponse"
},
"examples": {
"unused_manifest": {
"value": {
"batch_file_id": "f1234567-89ab-cdef-0123-456789abcdef",
"total_count": 0,
"batches": [],
"limit": 20,
"offset": 0,
"has_more": false
}
},
"existing_batch": {
"value": {
"batch_file_id": "f1234567-89ab-cdef-0123-456789abcdef",
"total_count": 1,
"batches": [
{
"batch_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"created_at": "2024-01-15T09:30:00Z",
"title": "Weekly Shiurim",
"status": "PROCESSING",
"total_count": 3,
"completed_count": 1,
"failed_count": 0,
"pending_count": 2
}
],
"limit": 20,
"offset": 0,
"has_more": false
}
}
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"summary": "List Batches For Manifest",
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/batch/{batch_id}/status": {
"get": {
"description": "Check the progress of a batch transcription. Returns counts of completed, failed, and pending transcriptions, plus details for each individual transcription.\n\nIf a batch item was submitted with `client_item_id`, that value is echoed back in each transcription entry.",
"operationId": "batchTranscribe_getBatchStatus",
"tags": [
"BatchTranscribe"
],
"parameters": [
{
"name": "batch_id",
"in": "path",
"description": "The batch ID returned from [Create Batch Transcription](/api-reference/batch-transcribe/create-batch-transcription)",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"examples": {
"Example1": {
"value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchStatusResponse"
},
"examples": {
"Example1": {
"value": {
"batch_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "PROCESSING",
"total_count": 3,
"completed_count": 1,
"failed_count": 0,
"pending_count": 2,
"transcriptions": [
{
"id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"client_item_id": "shiur_1",
"title": "Shiur 1",
"created_at": "2024-01-15T09:30:00Z",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1,
"status": "COMPLETED",
"duration": 1802.5,
"model": "v1"
},
{
"id": "e6f0d95a-d3c3-5ca5-c5c1-8aad8b0aad43",
"client_item_id": "shiur_2",
"title": "Shiur 2",
"created_at": "2024-01-15T09:30:00Z",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1,
"status": "PROCESSING",
"model": "v1"
}
]
}
}
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/batch/{batch_id}/items/by-client-item-id": {
"get": {
"description": "Resolve a batch item's `client_item_id` to the resulting transcription.\n\n`client_item_id` values are unique only within a batch, so this lookup is scoped by `batch_id`.\n\nThe response is a standard [TranscriptionInfo](/api-reference/transcribe/get-transcription-status) object. Its `id` field is the canonical transcription ID for the batch item.",
"operationId": "batchTranscribe_getBatchTranscriptionByClientItemId",
"tags": [
"BatchTranscribe"
],
"parameters": [
{
"name": "batch_id",
"in": "path",
"description": "The batch ID returned from [Create Batch Transcription](/api-reference/batch-transcribe/create-batch-transcription)",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"examples": {
"Example1": {
"value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
},
{
"name": "client_item_id",
"in": "query",
"description": "The caller-defined client_item_id to resolve within this batch.",
"required": true,
"schema": {
"type": "string"
},
"example": "shiur_1",
"examples": {
"Example1": {
"value": "shiur_1"
}
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranscriptionInfo"
},
"examples": {
"Example1": {
"value": {
"id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"client_item_id": "shiur_1",
"title": "Shiur 1",
"created_at": "2024-01-15T09:30:00Z",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1,
"status": "COMPLETED",
"duration": 1802.5,
"model": "v1"
}
}
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"summary": "Get Batch Transcription By Client Item ID",
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/categories/": {
"post": {
"description": "Create a new category",
"operationId": "categories_createCategory",
"tags": [
"Categories"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Category"
}
}
}
},
"409": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateCategoryRequest"
}
}
}
}
},
"get": {
"description": "Get all categories for the authenticated user",
"operationId": "categories_listCategories",
"tags": [
"Categories"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Category"
}
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/categories/{category_id}": {
"get": {
"description": "Get a specific category by ID",
"operationId": "categories_getCategory",
"tags": [
"Categories"
],
"parameters": [
{
"name": "category_id",
"in": "path",
"description": "ID of the category",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Category"
}
}
}
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
},
"put": {
"description": "Update an existing category",
"operationId": "categories_updateCategory",
"tags": [
"Categories"
],
"parameters": [
{
"name": "category_id",
"in": "path",
"description": "ID of the category to update",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Category"
}
}
}
},
"404": {
"description": ""
},
"409": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCategoryRequest"
}
}
}
}
},
"delete": {
"description": "Delete a category (this will also remove all transcription associations)",
"operationId": "categories_deleteCategory",
"tags": [
"Categories"
],
"parameters": [
{
"name": "category_id",
"in": "path",
"description": "ID of the category to delete",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Returns success message",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DeleteCategoryResponse"
}
}
}
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/categories/{category_id}/transcriptions": {
"post": {
"description": "Add a transcription to a category",
"operationId": "categories_addTranscriptionToCategory",
"tags": [
"Categories"
],
"parameters": [
{
"name": "category_id",
"in": "path",
"description": "ID of the category",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Returns success message",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddTranscriptionToCategoryResponse"
}
}
}
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddTranscriptionToCategoryRequest"
}
}
}
}
},
"get": {
"description": "Get all transcriptions in a specific category",
"operationId": "categories_getCategoryTranscriptions",
"tags": [
"Categories"
],
"parameters": [
{
"name": "category_id",
"in": "path",
"description": "ID of the category",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CategoryTranscription"
}
}
}
}
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/categories/{category_id}/transcriptions/{transcription_id}": {
"delete": {
"description": "Remove a transcription from a category",
"operationId": "categories_removeTranscriptionFromCategory",
"tags": [
"Categories"
],
"parameters": [
{
"name": "category_id",
"in": "path",
"description": "ID of the category",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "transcription_id",
"in": "path",
"description": "ID of the transcription to remove",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "Returns success message",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoveTranscriptionFromCategoryResponse"
}
}
}
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/categories/by-transcription/{transcription_id}": {
"get": {
"description": "Get all categories for a specific transcription",
"operationId": "categories_getTranscriptionCategories",
"tags": [
"Categories"
],
"parameters": [
{
"name": "transcription_id",
"in": "path",
"description": "ID of the transcription",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Category"
}
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/documents/": {
"post": {
"description": "Create a durable document from plain text, Markdown, or a Word `.docx` file.\n\nProvide exactly one of `content` or `file`. Files must be base64 encoded. Text,\nMarkdown, and Word ingestion completes synchronously. The returned `id` is the\ndocument ID used by every document, translation, and folder endpoint.",
"operationId": "documents_createDocument",
"tags": [
"Documents"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Document"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"413": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentCreateRequest"
}
}
}
}
},
"get": {
"description": "List the authenticated API user's documents using cursor pagination.",
"operationId": "documents_listDocuments",
"tags": [
"Documents"
],
"parameters": [
{
"name": "cursor",
"in": "query",
"description": "Opaque cursor returned by the previous page.",
"required": false,
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "limit",
"in": "query",
"description": "Number of documents to return. Defaults to 50 and cannot exceed 100.",
"required": false,
"schema": {
"type": "integer",
"nullable": true
}
},
{
"name": "folder_id",
"in": "query",
"description": "Return only documents in this folder. Omit to list documents across all folders.",
"required": false,
"schema": {
"type": "string",
"format": "uuid",
"nullable": true
}
},
{
"name": "archived",
"in": "query",
"description": "Return archived or active documents. Defaults to false.",
"required": false,
"schema": {
"type": "boolean",
"nullable": true
}
},
{
"name": "type",
"in": "query",
"description": "Optionally filter by transcript or text document type.",
"required": false,
"schema": {
"$ref": "#/components/schemas/DocumentFilterType",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentListResponse"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/documents/{document_id}": {
"get": {
"description": "Retrieve an owned document. A transcription ID returned by an existing\ntranscription endpoint is already a document ID; no conversion is required.",
"operationId": "documents_getDocument",
"tags": [
"Documents"
],
"parameters": [
{
"name": "document_id",
"in": "path",
"description": "Stable document ID.",
"required": true,
"schema": {
"$ref": "#/components/schemas/DocumentId"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Document"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
},
"patch": {
"description": "Update document metadata. Omitted fields are unchanged. An explicitly null\n`folder_id` moves the document to root; a UUID moves it into that owned folder.",
"operationId": "documents_updateDocument",
"tags": [
"Documents"
],
"parameters": [
{
"name": "document_id",
"in": "path",
"description": "Stable document ID.",
"required": true,
"schema": {
"$ref": "#/components/schemas/DocumentId"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Document"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentUpdateRequest"
}
}
}
}
}
},
"/v1/documents/{document_id}/translations": {
"post": {
"description": "Start a document translation. Text and transcript documents use paragraph-level\ntranslation.\n\n**API price:** USD 0.25 per 1,000 billable words, deducted from your API balance.\nPricing is prorated to the word: 1,000 billable words costs USD 0.25 and 10,000\nbillable words costs USD 2.50. Cached current paragraphs are free; stale, missing,\nfailed, forced, or newly added paragraphs are billable.\n\nRepeated requests for the same document and translation configuration reuse\ncached work and the same billing identity, preventing duplicate charges.\n\nA document can have multiple translations. Each combination of target language and\ntranslation style is stored separately, so the same document can be translated\ninto both English and Hebrew without duplicating the source document.",
"operationId": "documents_createDocumentTranslation",
"tags": [
"Documents"
],
"parameters": [
{
"name": "document_id",
"in": "path",
"description": "Stable document ID.",
"required": true,
"schema": {
"$ref": "#/components/schemas/DocumentId"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentTranslationStatus"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"402": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentTranslationRequest"
}
}
}
}
}
},
"/v1/documents/{document_id}/translations/{target_language}": {
"get": {
"description": "Get the translation for a target language and style, including current status,\nremaining billable words, estimated API cost, and translated content.\nA user API key can read translations only for documents that its user owns.\n\nThe service rebuilds the document's current paragraphs or pages and compares\ntheir hashes with the hashes stored during translation. Changed source content\nis returned as stale and becomes billable again when translation is requested.",
"operationId": "documents_getDocumentTranslation",
"tags": [
"Documents"
],
"parameters": [
{
"name": "document_id",
"in": "path",
"description": "Stable document ID.",
"required": true,
"schema": {
"$ref": "#/components/schemas/DocumentId"
}
},
{
"name": "target_language",
"in": "path",
"description": "Target language used when the translation was created, or `auto` for automatic direction selection.",
"required": true,
"schema": {
"$ref": "#/components/schemas/DocumentTranslationTargetLanguage"
}
},
{
"name": "translation_style",
"in": "query",
"description": "Translation style ID. Built-ins are `default`, `learning_english` for an\nEnglish target, and `sefer_hebrew` for a Hebrew target. Omit this to use\n`default`. Custom style IDs come from `/v1/translation-styles`.",
"required": false,
"schema": {
"type": "string",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentTranslationStatus"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/folders/": {
"post": {
"description": "Create an owned document folder, optionally nested beneath another owned folder.",
"operationId": "folders_createFolder",
"tags": [
"Folders"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Folder"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"409": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FolderCreateRequest"
}
}
}
}
},
"get": {
"description": "List owned folders using cursor pagination.",
"operationId": "folders_listFolders",
"tags": [
"Folders"
],
"parameters": [
{
"name": "cursor",
"in": "query",
"description": "Opaque cursor returned by the previous page.",
"required": false,
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "limit",
"in": "query",
"description": "Number of folders to return. Defaults to 50 and cannot exceed 100.",
"required": false,
"schema": {
"type": "integer",
"nullable": true
}
},
{
"name": "parent_id",
"in": "query",
"description": "Return children of this folder. Omit to list all owned folders.",
"required": false,
"schema": {
"type": "string",
"format": "uuid",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FolderListResponse"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/folders/{folder_id}": {
"get": {
"description": "Retrieve an owned document folder.",
"operationId": "folders_getFolder",
"tags": [
"Folders"
],
"parameters": [
{
"name": "folder_id",
"in": "path",
"description": "Folder ID.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Folder"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
},
"patch": {
"description": "Rename or move a folder. Omitted fields are unchanged.\nAn explicitly null `parent_id` moves the folder to the root.",
"operationId": "folders_updateFolder",
"tags": [
"Folders"
],
"parameters": [
{
"name": "folder_id",
"in": "path",
"description": "Folder ID.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Folder"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"409": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FolderUpdateRequest"
}
}
}
}
},
"delete": {
"description": "Delete an empty owned folder. This operation is non-recursive and returns 409\nwhen the folder contains documents or child folders.",
"operationId": "folders_deleteFolder",
"tags": [
"Folders"
],
"parameters": [
{
"name": "folder_id",
"in": "path",
"description": "Folder ID.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FolderDeleteResponse"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"409": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/folders/{folder_id}/documents": {
"get": {
"description": "List owned documents directly contained by an owned folder.",
"operationId": "folders_listFolderDocuments",
"tags": [
"Folders"
],
"parameters": [
{
"name": "folder_id",
"in": "path",
"description": "Folder ID.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "cursor",
"in": "query",
"description": "Opaque cursor returned by the previous page.",
"required": false,
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "limit",
"in": "query",
"description": "Number of documents to return. Defaults to 50 and cannot exceed 100.",
"required": false,
"schema": {
"type": "integer",
"nullable": true
}
},
{
"name": "archived",
"in": "query",
"description": "Return archived or active documents. Defaults to false.",
"required": false,
"schema": {
"type": "boolean",
"nullable": true
}
},
{
"name": "type",
"in": "query",
"description": "Optionally filter by document type.",
"required": false,
"schema": {
"$ref": "#/components/schemas/DocumentFilterType",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocumentListResponse"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/health/": {
"get": {
"operationId": "health_getHealth",
"tags": [
"Health"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthResponse"
}
}
}
}
},
"summary": "Get health status"
}
},
"/v1/link/extract": {
"post": {
"operationId": "link_extract",
"tags": [
"Link"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkResponse"
}
}
}
},
"400": {
"description": ""
},
"404": {
"description": ""
},
"500": {
"description": ""
}
},
"summary": "Extract download link from a given URL",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LinkRequest"
}
}
}
}
}
},
"/v1/link/sites": {
"get": {
"operationId": "link_get-supported-sites",
"tags": [
"Link"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Site"
}
}
}
}
}
},
"summary": "Get supported sites"
}
},
"/v1/maishiv/knowledge-base": {
"post": {
"description": "Add an owned document to the user's knowledge base, shared with the website.\nAll accounts can add unlimited documents; website subscription tiers do not\nimpose a knowledge-base file-count limit. API retrievals are billed separately.",
"operationId": "maishiv_addToKnowledgeBase",
"tags": [
"Maishiv"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddKnowledgeBaseDocumentResponse"
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddKnowledgeBaseDocumentRequest"
}
}
}
}
},
"get": {
"description": "Get all document IDs currently in the knowledge base.",
"operationId": "maishiv_listKnowledgeBaseDocs",
"tags": [
"Maishiv"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/maishiv/knowledge-base/search": {
"post": {
"description": "Retrieve up to n passages from the authenticated user's Maishiv knowledge base,\nwithout generating an answer. Only owned documents are returned. Times are\nnullable seconds and are provided only for a unique, reliable audio alignment.\nSet filter_sources to true to apply an AI relevance check to the retrieved\npassages. Fewer than n passages may qualify, including zero.\nEach completed search costs $0.01 from the user's prepaid API balance,\nregardless of n or the number of matches. Zero-match searches are billable.\nInvalid requests, missing knowledge bases, and failed searches are not charged.\nWebsite subscriptions and daily question allowances do not apply.",
"operationId": "maishiv_searchKnowledgeBaseChunks",
"tags": [
"Maishiv"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/KnowledgeBaseSearchChunk"
}
}
}
}
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"401": {
"description": ""
},
"402": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"502": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"503": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"504": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchKnowledgeBaseChunksRequest"
}
}
}
}
}
},
"/v1/maishiv/knowledge-base/{document_id}": {
"delete": {
"description": "Remove a document from the knowledge base.",
"operationId": "maishiv_removeFromKnowledgeBase",
"tags": [
"Maishiv"
],
"parameters": [
{
"name": "document_id",
"in": "path",
"description": "ID of the document to remove from the knowledge base.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RemoveKnowledgeBaseDocumentResponse"
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/ocr/": {
"post": {
"description": "Upload a base64-encoded PDF or image and start OCR. The returned `document_id`\nis the only public identifier: it works with this OCR endpoint and every\n`/documents/{document_id}` endpoint.\n\nChoose Standard, Enhanced, or Handwriting OCR with `mode` (defaults to `standard`).\nPDFs and images up to 20 MB (before base64 encoding) are supported.\nPDF pages are counted server-side and images count as one page. Prices are\n$0.025, $0.125, and $0.25 per page respectively, matching the purchased-credit rates. The estimated API\nbalance charge is reserved before OCR starts; only successfully extracted\npages are charged, and the unused reservation is released. Poll\n`GET /v1/ocr/{document_id}` for progress and page HTML.",
"operationId": "ocr_createOcrDocument",
"tags": [
"Ocr"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrDocumentResponse"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"402": {
"description": ""
},
"404": {
"description": ""
},
"413": {
"description": ""
},
"503": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrDocumentCreateRequest"
}
}
}
}
}
},
"/v1/ocr/{document_id}": {
"get": {
"description": "Get OCR processing status and extracted pages for an owned OCR document.",
"operationId": "ocr_getOcrDocument",
"tags": [
"Ocr"
],
"parameters": [
{
"name": "document_id",
"in": "path",
"description": "OCR document ID returned by public OCR creation.",
"required": true,
"schema": {
"$ref": "#/components/schemas/DocumentId"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrDocumentStatus"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/ocr/jobs/{job_id}/index": {
"get": {
"description": "Get OCR index status and stored result.",
"operationId": "ocr_getOcrIndex",
"tags": [
"Ocr"
],
"parameters": [
{
"name": "job_id",
"in": "path",
"description": "OCR job id.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "index_id",
"in": "query",
"description": "Select a specific index; omitted requests resolve the document's default index.",
"required": false,
"schema": {
"type": "string",
"format": "uuid",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrIndexStatus"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/ocr/jobs/{job_id}/index/{index_id}/pages": {
"patch": {
"description": "Correct printed labels or entry citations in one completed index without modifying OCR or billing.",
"operationId": "ocr_editOcrIndexPages",
"tags": [
"Ocr"
],
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "index_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrIndexStatus"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrIndexPagesEditRequest"
}
}
}
}
}
},
"/v1/ocr/jobs/{job_id}/pages/{page_num}/printed-number": {
"get": {
"description": "Get the document-wide printed page mapping and its current revision.",
"operationId": "ocr_getOcrPrintedPage",
"tags": [
"Ocr"
],
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "page_num",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrPrintedPage"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
},
"patch": {
"description": "Correct or undo a document-wide printed number and update saved indexes, preserving index-specific overrides.",
"operationId": "ocr_editOcrPrintedPage",
"tags": [
"Ocr"
],
"parameters": [
{
"name": "job_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "page_num",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrPrintedPage"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OcrPrintedPageEditRequest"
}
}
}
}
}
},
"/v1/partners/catalog/recordings/{source_id}": {
"put": {
"description": "Register or withdraw a recording using the dedicated ShiurBank server credential.\nSend a strictly increasing version when the catalog state changes. An identical\nretry of the current version is safe. Registration does not start transcription.",
"operationId": "partners_putPartnerCatalogRecording",
"tags": [
"Partners"
],
"parameters": [
{
"name": "source_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerCatalogRecording"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerCatalogRecordingRequest"
}
}
}
}
}
},
"/v1/partners/recordings/{source_id}/intents": {
"post": {
"description": "Begin one-step transcription and public sharing for an independently verified\ncatalog recording. Returns a Sofer-owned recording-specific confirmation URL.\nOAuth connection alone never authorizes billing or publication. Confirming\natomically claims this integration/recording before spending the listener's\nallowance. Keep the same key across retries. Audio/title come from Sofer's\nverified catalog, never from this request.",
"operationId": "partners_createPartnerRecordingIntent",
"tags": [
"Partners"
],
"parameters": [
{
"name": "source_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerRecordingIntent"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerRecordingIntentRequest"
}
}
}
}
}
},
"/v1/partners/recordings/{source_id}/status": {
"get": {
"description": "Recording-scoped shared status for connected listeners. Never returns the\ninitiator, private job ID, document link, transcript or billing information.\nWaiting listeners cannot cancel or otherwise control the initiating job.",
"operationId": "partners_getPartnerRecordingStatus",
"tags": [
"Partners"
],
"parameters": [
{
"name": "source_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerRecordingStatus"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/partners/transcriptions/{transcription_id}/publication": {
"put": {
"description": "Explicitly publish or withdraw a canonical text snapshot of your own completed\npartner-originated job. Never publishes unrelated library documents. Require a\nseparate user confirmation explaining public text display and independent copies\nwith retained audio and existing word timestamps.\nexpected_revision is 0 for first publication; retain the key on retries.",
"operationId": "partners_setPartnerPublication",
"tags": [
"Partners"
],
"parameters": [
{
"name": "transcription_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerPublication"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerPublicationRequest"
}
}
}
}
}
},
"/v1/partners/resources/{source_id}": {
"get": {
"description": "Server-to-server display of the current explicitly published canonical text.\nRequires a dedicated read-only integration bearer credential, NOT a listener\nOAuth token. Credential is scoped to one integration; never place it in a browser.\nThe response contains plain text and the published revision's word timestamps\nwhen available. Escape text and words when rendering HTML.",
"operationId": "partners_getPartnerResource",
"tags": [
"Partners"
],
"parameters": [
{
"name": "source_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerResource"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/partners/resources/{source_id}/copies": {
"post": {
"description": "Add the displayed canonical revision as an independent transcript with durable audio\nand existing word timestamps in the\nconnected listener's account. Requires listener OAuth, not the display key.\nDoes not run transcription, translation, outlines or Maishiv ingestion.\nOne copy per listener/resource/revision; retries return it, or 410 if deleted.\nA changed current revision returns 409. Later revisions never overwrite edits.",
"operationId": "partners_copyPartnerResource",
"tags": [
"Partners"
],
"parameters": [
{
"name": "source_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerResourceCopy"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerCopyRequest"
}
}
}
}
}
},
"/v1/partners/transcriptions": {
"post": {
"description": "Submit user-selected audio using a connected Sofer account's website allowance.\nRequires a registered partner OAuth access token, not a Sofer API key or ID token.\nThe transcript is saved in the connected user's Sofer account.\nKeep the same idempotency_key and request when retrying. An uncertain submission\nreturns SUBMISSION_UNCONFIRMED and must not be submitted with a new key.",
"operationId": "partners_createPartnerTranscription",
"tags": [
"Partners"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerTranscriptionJob"
}
}
}
},
"401": {
"description": ""
},
"402": {
"description": ""
},
"403": {
"description": ""
},
"409": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerTranscriptionRequest"
}
}
}
}
}
},
"/v1/partners/transcriptions/{transcription_id}": {
"get": {
"description": "Check a job created by this partner for the connected user. Returns status and\na link to open the transcript in Sofer. Does not grant access to transcript text\nor any documents submitted through other applications.",
"operationId": "partners_getPartnerTranscription",
"tags": [
"Partners"
],
"parameters": [
{
"name": "transcription_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PartnerTranscriptionJob"
}
}
}
},
"401": {
"description": ""
},
"403": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/timestamps/outline": {
"post": {
"description": "Outline of topics discussed by timestamp, generated end-to-end from a transcription ID.\n\nThis endpoint will:\n1) Fetch the transcript and word-level timestamps for the given transcription\n2) Generate chapter topics (title + starting_phrase) using an LLM from the transcript text\n3) Align each topic's starting phrase to timestamps",
"operationId": "timestamps_outline",
"tags": [
"Timestamps"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OutlineTopic"
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OutlineRequest"
}
}
}
}
}
},
"/v1/timestamps/update-timestamps": {
"post": {
"description": "Update the timestamps based on edited text.",
"operationId": "timestamps_updateTimestamps",
"tags": [
"Timestamps"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Timestamp"
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateTimestampsRequest"
}
}
}
}
}
},
"/v1/transcriptions/": {
"post": {
"description": "Create a new transcription.\n\nProduction individual v1 submissions are limited to 50 files per UTC hour\nand 300 files per UTC day, shared across the account's API keys. Failed\njobs still count as accepted submissions. Rate-limited transcription and\nbatch operations also share a 5-request-per-minute allowance per API key.\nFor bulk collections, use standard batch processing with its separate\ndaily quota and lower v1 pricing. Limits may differ by API environment or\naccount configuration. Support can assign custom hourly and daily file\nallowances; quota errors report the effective account limit. See\n[API limits and errors](/api-limits-and-errors).",
"operationId": "transcribe_createTranscription",
"tags": [
"Transcribe"
],
"parameters": [],
"responses": {
"200": {
"description": "The unique identifier for the newly created transcription.\nUse this ID to check the status of the transcription or to retrieve the transcription result.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranscriptionId"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranscriptionRequest"
}
}
}
}
},
"get": {
"description": "Get all transcriptions for the authenticated user",
"operationId": "transcribe_listTranscriptions",
"tags": [
"Transcribe"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranscriptionSummary"
}
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/{transcription_id}/status": {
"get": {
"description": "Get transcription status",
"operationId": "transcribe_getTranscriptionStatus",
"tags": [
"Transcribe"
],
"parameters": [
{
"name": "transcription_id",
"in": "path",
"description": "ID of the transcription. Use the ID returned from the Create Transcription endpoint.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"example": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"examples": {
"Example1": {
"value": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
}
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranscriptionInfo"
},
"examples": {
"Example1": {
"value": {
"id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"title": "My Shiur Transcription",
"created_at": "2024-01-15T09:30:00Z",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1,
"status": "COMPLETED",
"duration": 1802.5,
"model": "v1"
}
}
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/transcriptions/{transcription_id}": {
"get": {
"description": "Get transcription",
"operationId": "transcribe_getTranscription",
"tags": [
"Transcribe"
],
"parameters": [
{
"name": "transcription_id",
"in": "path",
"description": "ID of the transcription. Use the ID returned from the Create Transcription endpoint.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"example": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"examples": {
"Example1": {
"value": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
}
}
},
{
"name": "filter_hebrew_word_format",
"in": "query",
"description": "Optionally choose a Hebrew-word rendering for the response. If set to `en`,\nHebrew characters are removed and timestamps exclude words tagged only with\n`he`. If set to `he`, italicized transliterations are removed and timestamps\nexclude words tagged only with `en`. If set to `hybrid`, the stored mixed\nrendering is returned without `en`/`he` filtering; it does not duplicate every\nHebrew word in both formats.",
"required": false,
"schema": {
"type": "string",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Transcription"
},
"examples": {
"Example1": {
"value": {
"text": "Welcome to today's shiur שיעור. We will discuss the halacha הלכה regarding...",
"timestamps": [
{
"word": "Welcome",
"hebrew_word_format": null,
"start": 0,
"end": 0.5,
"speaker": "1"
},
{
"word": "shiur",
"hebrew_word_format": [
"en"
],
"start": 2.1,
"end": 2.8,
"speaker": "1"
}
],
"info": {
"id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
"title": "My Shiur Transcription",
"created_at": "2024-01-15T09:30:00Z",
"primary_language": "en",
"hebrew_word_format": [
"en",
"he"
],
"num_speakers": 1,
"status": "COMPLETED",
"duration": 1802.5,
"model": "v1"
}
}
}
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/translation-styles/": {
"get": {
"description": "List the built-in translation styles and the authenticated API user's custom\nstyles. Optionally filter the result by a compatible target language.",
"operationId": "translationStyles_listTranslationStyles",
"tags": [
"TranslationStyles"
],
"parameters": [
{
"name": "target_language",
"in": "query",
"description": "Return only styles compatible with this target language.",
"required": false,
"schema": {
"$ref": "#/components/schemas/TranslationStyleTargetLanguage",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyleListResponse"
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
},
"post": {
"description": "Create a reusable custom translation style. The instructions are safety-validated\nand must only describe translation wording, tone, register, terminology,\ntransliteration, quote handling, or similar style choices. Instructions cannot\noverride the target language, change document structure, summarize, add content,\nselect a model, or alter output-format and safety rules.\n\nUse the returned `id` directly as `translation_style` when creating a translation.",
"operationId": "translationStyles_createTranslationStyle",
"tags": [
"TranslationStyles"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyle"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"503": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyleCreateRequest"
}
}
}
}
}
},
"/v1/translation-styles/{translation_style_id}": {
"get": {
"description": "Retrieve a built-in style or an owned custom translation style.",
"operationId": "translationStyles_getTranslationStyle",
"tags": [
"TranslationStyles"
],
"parameters": [
{
"name": "translation_style_id",
"in": "path",
"description": "Built-in or custom translation style ID.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyle"
}
}
}
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
},
"patch": {
"description": "Rename an owned custom style or replace its instructions. Changed instructions\nare safety-validated again and invalidate translations cached under this style.\nBuilt-in styles cannot be modified, and a custom style's target language is immutable.",
"operationId": "translationStyles_updateTranslationStyle",
"tags": [
"TranslationStyles"
],
"parameters": [
{
"name": "translation_style_id",
"in": "path",
"description": "Custom translation style ID.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyle"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"503": {
"description": ""
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyleUpdateRequest"
}
}
}
}
},
"delete": {
"description": "Delete an owned custom translation style. Built-in styles cannot be deleted.",
"operationId": "translationStyles_deleteTranslationStyle",
"tags": [
"TranslationStyles"
],
"parameters": [
{
"name": "translation_style_id",
"in": "path",
"description": "Custom translation style ID.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranslationStyleDeleteResponse"
}
}
}
},
"400": {
"description": ""
},
"401": {
"description": ""
},
"404": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
]
}
},
"/v1/utils/duration": {
"post": {
"description": "Returns the audio duration in seconds for a provided URL or base64-encoded file.\n\nProvide either `audio_url` or `audio_file` (base64). If both are provided, the request is invalid.",
"operationId": "utils_getDuration",
"tags": [
"Utils"
],
"parameters": [],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DurationResponse"
}
}
}
},
"401": {
"description": ""
},
"429": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
},
"security": [
{
"BearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DurationRequest"
}
}
}
}
}
}
},
"components": {
"schemas": {
"Balance": {
"title": "Balance",
"type": "object",
"properties": {
"total_balance": {
"type": "integer",
"description": "The total balance in the account, not subtracting pending charges, represented in cents."
},
"available_balance": {
"type": "integer",
"description": "The available balance after accounting for pending charges, represented in cents. This is the amount that can be used for new transcriptions."
},
"pending_balance": {
"type": "integer",
"description": "The amount of pending charges from transcriptions that are in progress or queued, represented in cents."
},
"all_time_deposits": {
"type": "integer",
"description": "The total amount ever deposited into the account, represented in cents."
},
"all_time_spend": {
"type": "integer",
"description": "The total amount ever spent on completed transcriptions, represented in cents."
}
},
"required": [
"total_balance",
"available_balance",
"pending_balance",
"all_time_deposits",
"all_time_spend"
]
},
"CreateCategoryRequest": {
"title": "CreateCategoryRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the category"
},
"color_hex": {
"type": "string",
"nullable": true,
"description": "Hex color code for the category (e.g.,"
},
"description": {
"type": "string",
"nullable": true,
"description": "Optional description to help categorize transcripts."
},
"auto_tag_enabled": {
"type": "boolean",
"nullable": true,
"description": "Whether to automatically tag transcripts that match this category."
}
},
"required": [
"name"
]
},
"UpdateCategoryRequest": {
"title": "UpdateCategoryRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "New name for the category"
},
"color_hex": {
"type": "string",
"nullable": true,
"description": "New hex color code for the category (e.g.,"
},
"description": {
"type": "string",
"nullable": true,
"description": "New description for the category"
},
"auto_tag_enabled": {
"type": "boolean",
"nullable": true,
"description": "Whether to automatically tag transcripts that match this category"
}
}
},
"AddTranscriptionToCategoryRequest": {
"title": "AddTranscriptionToCategoryRequest",
"type": "object",
"properties": {
"transcription_id": {
"type": "string",
"format": "uuid",
"description": "ID of the transcription to add to the category"
},
"position": {
"type": "integer",
"nullable": true,
"description": "Optional position within the category for ordering"
}
},
"required": [
"transcription_id"
]
},
"Category": {
"title": "Category",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Unique identifier for the category"
},
"name": {
"type": "string",
"description": "Name of the category"
},
"color_hex": {
"type": "string",
"description": "Hex color code for the category"
},
"description": {
"type": "string",
"nullable": true,
"description": "Optional description to help categorize transcripts"
},
"auto_tag_enabled": {
"type": "boolean",
"nullable": true,
"description": "Whether auto-tagging is enabled for this category"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the category was created"
},
"transcription_count": {
"type": "integer",
"nullable": true,
"description": "Number of transcriptions in this category"
}
},
"required": [
"id",
"name",
"color_hex",
"created_at"
]
},
"CategoryTranscription": {
"title": "CategoryTranscription",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "ID of the transcription"
},
"title": {
"type": "string",
"description": "Title of the transcription"
},
"status": {
"type": "string",
"description": "Current status of the transcription"
},
"position": {
"type": "integer",
"nullable": true,
"description": "Position of this transcription within the category"
}
},
"required": [
"id",
"title",
"status"
]
},
"DeleteCategoryResponse": {
"title": "DeleteCategoryResponse",
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Success message"
},
"deleted_id": {
"type": "string",
"format": "uuid",
"description": "ID of the deleted category"
}
},
"required": [
"message",
"deleted_id"
]
},
"AddTranscriptionToCategoryResponse": {
"title": "AddTranscriptionToCategoryResponse",
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Success message"
},
"category_id": {
"type": "string",
"format": "uuid",
"description": "ID of the category"
},
"transcription_id": {
"type": "string",
"format": "uuid",
"description": "ID of the transcription"
}
},
"required": [
"message",
"category_id",
"transcription_id"
]
},
"RemoveTranscriptionFromCategoryResponse": {
"title": "RemoveTranscriptionFromCategoryResponse",
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Success message"
},
"category_id": {
"type": "string",
"format": "uuid",
"description": "ID of the category"
},
"transcription_id": {
"type": "string",
"format": "uuid",
"description": "ID of the transcription"
}
},
"required": [
"message",
"category_id",
"transcription_id"
]
},
"DocumentId": {
"title": "DocumentId",
"type": "string",
"format": "uuid",
"description": "Stable identifier for a durable document."
},
"DocumentTranslationTargetLanguage": {
"title": "DocumentTranslationTargetLanguage",
"type": "string",
"enum": [
"auto",
"en",
"he",
"yi"
],
"description": "Requested translation language, plus `auto` for automatic English/Hebrew direction selection."
},
"DocumentFilterType": {
"title": "DocumentFilterType",
"type": "string",
"enum": [
"transcript",
"text"
],
"description": "Publicly filterable document types."
},
"DocumentFormat": {
"title": "DocumentFormat",
"type": "string",
"enum": [
"text",
"markdown",
"docx"
],
"description": "Source format for a directly uploaded text document."
},
"DocumentCreateRequest": {
"title": "DocumentCreateRequest",
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Display title. Defaults to the file name without its extension or Untitled Document."
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional owned folder. Null or omitted creates the document at root."
},
"format": {
"$ref": "#/components/schemas/DocumentFormat",
"nullable": true,
"description": "Source format. Defaults to text for content and is inferred from file_name for files."
},
"content": {
"type": "string",
"nullable": true,
"description": "UTF-8 plain-text or Markdown content. Provide this or file, but not both."
},
"file": {
"type": "string",
"nullable": true,
"description": "Base64-encoded `.txt`, `.md`, or `.docx` file. Provide this or content, but not both."
},
"file_name": {
"type": "string",
"nullable": true,
"description": "Original file name. Used to infer format and title when those values are omitted."
}
}
},
"DocumentUpdateRequest": {
"title": "DocumentUpdateRequest",
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "New display title. Omit to leave unchanged."
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Omit to leave unchanged, send null to move to root, or send an owned folder UUID."
},
"archived": {
"type": "boolean",
"nullable": true,
"description": "Archive or restore the document. Archived documents are moved to root."
}
}
},
"Document": {
"title": "Document",
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/DocumentId",
"description": "Stable document ID."
},
"type": {
"type": "string",
"description": "Document source type."
},
"title": {
"type": "string",
"description": "Display title."
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Containing folder, or null for root."
},
"status": {
"type": "string",
"description": "Current document or processing status."
},
"archived": {
"type": "boolean",
"description": "Whether the document is archived."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Creation time."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Last update time, when available."
},
"text": {
"type": "string",
"nullable": true,
"description": "Visible plain text for completed text and transcript documents when available."
},
"html": {
"type": "string",
"nullable": true,
"description": "Editor-compatible HTML for completed documents when available."
}
},
"required": [
"id",
"type",
"title",
"status",
"archived",
"created_at"
]
},
"DocumentListResponse": {
"title": "DocumentListResponse",
"type": "object",
"properties": {
"documents": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Document"
},
"description": "Documents in this page."
},
"next_cursor": {
"type": "string",
"nullable": true,
"description": "Opaque cursor for the next page, or null when this is the last page."
}
},
"required": [
"documents"
]
},
"DocumentTranslationRequest": {
"title": "DocumentTranslationRequest",
"type": "object",
"properties": {
"target_language": {
"$ref": "#/components/schemas/DocumentTranslationTargetLanguage",
"nullable": true,
"description": "Translation target language. Use `en`, `he`, or `yi`; omit it to use automatic\nEnglish/Hebrew direction selection. Custom styles and language-specific\nbuilt-ins require their explicit compatible target language."
},
"translation_style": {
"type": "string",
"nullable": true,
"description": "Translation style ID. Built-ins are `default` for a clear natural translation,\n`learning_english` for polished Torah-learning English, `torah_yiddish` for\nnatural beis-medrash Yiddish, and `sefer_hebrew` for\ntraditional sefer-style Hebrew. Custom style IDs come from `/v1/translation-styles`.\nOmit this to use `default`. `learning_english` requires target language `en`,\n`torah_yiddish` requires `yi`, `sefer_hebrew` requires `he`, and each custom style declares its compatible language."
},
"force": {
"type": "boolean",
"nullable": true,
"description": "Regenerate the translation even if cached content already exists."
}
}
},
"DocumentTranslationSegment": {
"title": "DocumentTranslationSegment",
"type": "object",
"properties": {
"segment_id": {
"type": "string",
"description": "Stable paragraph or page ID used to pair source and translated content."
},
"segment_index": {
"type": "integer",
"description": "One-based paragraph or page order in the document."
},
"source_hash": {
"type": "string",
"description": "Hash of the exact source content used for this translation. It is compared with the current source hash to detect edits."
},
"source_text": {
"type": "string",
"nullable": true,
"description": "Exact visible source paragraph. OCR page responses may omit this because the page structure is represented in HTML."
},
"source_language": {
"type": "string",
"nullable": true,
"description": "Detected source language."
},
"target_language": {
"type": "string",
"nullable": true,
"description": "Translation target language."
},
"start_time": {
"type": "number",
"format": "double",
"nullable": true,
"description": "Source start time in seconds when the document is a transcription."
},
"end_time": {
"type": "number",
"format": "double",
"nullable": true,
"description": "Source end time in seconds when the document is a transcription."
},
"speaker": {
"type": "string",
"nullable": true,
"description": "Speaker label when the document is a transcription."
},
"content": {
"type": "string",
"nullable": true,
"description": "Sanitized translated HTML. HTML preserves paragraph direction, emphasis, source quotations, and OCR page layout that plain text would lose."
},
"status": {
"type": "string",
"description": "Segment translation status."
},
"error": {
"type": "string",
"nullable": true,
"description": "Error message if this segment failed."
},
"is_stale": {
"type": "boolean",
"description": "True when the current source hash differs from `source_hash`; requesting translation again updates only stale or missing segments unless `force` is true."
}
},
"required": [
"segment_id",
"segment_index",
"source_hash",
"status",
"is_stale"
]
},
"DocumentTranslationStatus": {
"title": "DocumentTranslationStatus",
"type": "object",
"properties": {
"document_id": {
"$ref": "#/components/schemas/DocumentId",
"description": "Stable source document ID."
},
"target_language": {
"$ref": "#/components/schemas/DocumentTranslationTargetLanguage",
"description": "Requested translation language. With `auto`, each segment reports its concrete language in its own `target_language` field."
},
"translation_style": {
"type": "string",
"description": "Translation style ID used for this independently stored target-language translation."
},
"status": {
"type": "string",
"description": "Overall translation status."
},
"total_segments": {
"type": "integer",
"nullable": true,
"description": "Total paragraphs or pages in the translation job."
},
"completed_segments": {
"type": "integer",
"description": "Number of successfully translated paragraphs or pages."
},
"failed_segments": {
"type": "integer",
"description": "Number of failed paragraphs or pages."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When the translation job was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When the translation job was last updated."
},
"error": {
"type": "string",
"nullable": true,
"description": "Overall job error, if any."
},
"source_word_count": {
"type": "integer",
"description": "Total visible words across the document's current paragraphs or pages, including content that already has a current translation."
},
"billable_word_count": {
"type": "integer",
"description": "Words in missing, failed, forced, or stale segments that still need translation. Cached current segments are excluded, so this can be zero even when `source_word_count` is not."
},
"estimated_api_cost_cents": {
"type": "number",
"format": "double",
"description": "Estimated API balance reservation for the current `billable_word_count`, in cents, at USD 0.25 per 1,000 words. For example, `25` means USD 0.25 and `250` means USD 2.50. This is an estimate of remaining work, not a historical invoice, and normally becomes zero after all current segments are translated."
},
"segments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DocumentTranslationSegment"
},
"description": "Paragraph- or page-level results for this target language and translation style."
}
},
"required": [
"document_id",
"target_language",
"translation_style",
"status",
"completed_segments",
"failed_segments",
"source_word_count",
"billable_word_count",
"estimated_api_cost_cents",
"segments"
]
},
"StartDriveImportStagingRequest": {
"title": "StartDriveImportStagingRequest",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"format": "uuid",
"description": "Site user that owns the import."
},
"submit_callback_url": {
"type": "string",
"nullable": true,
"description": "Trusted site origin to notify when a confirmed one-time import finishes staging."
}
},
"required": [
"user_id"
]
},
"StartDriveImportStagingResponse": {
"title": "StartDriveImportStagingResponse",
"type": "object",
"properties": {
"accepted": {
"type": "boolean"
},
"run_id": {
"type": "string",
"nullable": true
},
"message": {
"type": "string",
"nullable": true
}
},
"required": [
"accepted"
]
},
"FolderCreateRequest": {
"title": "FolderCreateRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Folder name. Names are case-insensitively unique among siblings."
},
"parent_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional owned parent folder. Null or omitted creates a root folder."
}
},
"required": [
"name"
]
},
"FolderUpdateRequest": {
"title": "FolderUpdateRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "New folder name. Omit to leave unchanged."
},
"parent_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Omit to leave unchanged, null to move to root, or an owned folder UUID."
}
}
},
"Folder": {
"title": "Folder",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Folder ID."
},
"name": {
"type": "string",
"description": "Display name."
},
"parent_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Parent folder ID, or null for a root folder."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Creation time."
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "Last update time."
}
},
"required": [
"id",
"name",
"created_at",
"updated_at"
]
},
"FolderListResponse": {
"title": "FolderListResponse",
"type": "object",
"properties": {
"folders": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Folder"
},
"description": "Folders in this page."
},
"next_cursor": {
"type": "string",
"nullable": true,
"description": "Opaque cursor for the next page, or null when this is the last page."
}
},
"required": [
"folders"
]
},
"FolderDeleteResponse": {
"title": "FolderDeleteResponse",
"type": "object",
"properties": {
"deleted": {
"type": "boolean",
"description": "True when the folder was deleted."
},
"folder_id": {
"type": "string",
"format": "uuid",
"description": "Deleted folder ID."
}
},
"required": [
"deleted",
"folder_id"
]
},
"HealthResponse": {
"title": "HealthResponse",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "Health status"
}
},
"required": [
"status"
]
},
"AutoGenerateTitleRequest": {
"title": "AutoGenerateTitleRequest",
"type": "object",
"properties": {
"mode": {
"$ref": "#/components/schemas/TitleUpdateMode",
"nullable": true,
"description": "Whether to replace the current title or append the generated title to it."
},
"separator": {
"type": "string",
"nullable": true,
"description": "Separator used between the existing title and generated title when mode is append."
}
}
},
"TitleUpdateMode": {
"title": "TitleUpdateMode",
"type": "string",
"enum": [
"overwrite",
"append"
]
},
"AutoGenerateTitleResponse": {
"title": "AutoGenerateTitleResponse",
"type": "object",
"properties": {
"transcription_id": {
"type": "string",
"format": "uuid",
"description": "ID of the updated transcription."
},
"mode": {
"$ref": "#/components/schemas/TitleUpdateMode",
"description": "How the generated title was applied."
},
"previous_title": {
"type": "string",
"nullable": true,
"description": "Title before generation."
},
"generated_title": {
"type": "string",
"description": "Title generated from the transcript text."
},
"title": {
"type": "string",
"description": "Final title saved to the transcription."
},
"model": {
"type": "string",
"description": "Gemini model used to generate the title."
}
},
"required": [
"transcription_id",
"mode",
"generated_title",
"title",
"model"
]
},
"LinkRequest": {
"title": "LinkRequest",
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to extract a downloadable link from. This link must originate from a supported site. You can use the get supported sites endpoint to get a list of supported sites."
}
},
"required": [
"url"
]
},
"LinkResponse": {
"title": "LinkResponse",
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title of the file"
},
"download_url": {
"type": "string",
"description": "Download URL of the file"
},
"file_format": {
"type": "string",
"description": "Format of the file"
},
"file_name": {
"type": "string",
"description": "Name of the file"
}
},
"required": [
"title",
"download_url",
"file_format",
"file_name"
]
},
"Site": {
"title": "Site",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the site"
},
"url": {
"type": "string",
"description": "URL of the site"
}
},
"required": [
"name",
"url"
]
},
"SearchKnowledgeBaseChunksRequest": {
"title": "SearchKnowledgeBaseChunksRequest",
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search query, trimmed before use; must contain 1 to 8000 characters after trimming."
},
"n": {
"type": "integer",
"nullable": true,
"description": "Maximum passages to return; an integer from 1 to 50. Defaults to 10 when omitted or null."
},
"filter_sources": {
"type": "boolean",
"nullable": true,
"description": "Keep only passages that directly help answer the query. Defaults to false when omitted or null."
}
},
"required": [
"query"
]
},
"KnowledgeBaseSearchChunk": {
"title": "KnowledgeBaseSearchChunk",
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Retrieved passage, including passages without reliable audio timing."
},
"transcript_id": {
"type": "string",
"description": "ID of the authorized source document (including non-audio documents)."
},
"start_time": {
"type": "number",
"format": "double",
"nullable": true,
"description": "Start in seconds, or null when audio alignment is unavailable or ambiguous."
},
"end_time": {
"type": "number",
"format": "double",
"nullable": true,
"description": "End in seconds, or null when audio alignment is unavailable or ambiguous."
}
},
"required": [
"text",
"transcript_id"
]
},
"AddKnowledgeBaseDocumentRequest": {
"title": "AddKnowledgeBaseDocumentRequest",
"type": "object",
"properties": {
"document_id": {
"type": "string",
"description": "ID of the document to add to the knowledge base."
}
},
"required": [
"document_id"
]
},
"AddKnowledgeBaseDocumentResponse": {
"title": "AddKnowledgeBaseDocumentResponse",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "True if the document was successfully added."
},
"message": {
"type": "string",
"nullable": true,
"description": "Optional message describing the outcome (e.g., already exists)."
}
},
"required": [
"success"
]
},
"RemoveKnowledgeBaseDocumentResponse": {
"title": "RemoveKnowledgeBaseDocumentResponse",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "True if the document was successfully removed or was not present."
},
"message": {
"type": "string",
"nullable": true,
"description": "Optional message describing the outcome (e.g., not found)."
}
},
"required": [
"success"
]
},
"OcrMode": {
"title": "OcrMode",
"type": "string",
"enum": [
"standard",
"enhanced",
"handwriting"
]
},
"OcrPrintedPage": {
"title": "OcrPrintedPage",
"type": "object",
"properties": {
"page_num": {
"type": "integer"
},
"printed_page_label": {
"type": "string",
"nullable": true
},
"revision": {
"type": "string",
"format": "uuid"
},
"can_undo": {
"type": "boolean"
},
"updated_index_count": {
"type": "integer"
}
},
"required": [
"page_num",
"revision",
"can_undo",
"updated_index_count"
]
},
"OcrPrintedPageEditRequest": {
"title": "OcrPrintedPageEditRequest",
"type": "object",
"properties": {
"expected_revision": {
"type": "string",
"format": "uuid"
},
"printed_page_label": {
"type": "string",
"nullable": true,
"description": "Empty string marks an unnumbered page. Omit only when undo is true."
},
"undo": {
"type": "boolean",
"nullable": true
}
},
"required": [
"expected_revision"
]
},
"OcrDocumentCreateRequest": {
"title": "OcrDocumentCreateRequest",
"type": "object",
"properties": {
"mode": {
"$ref": "#/components/schemas/OcrMode",
"nullable": true,
"description": "OCR type. Defaults to standard ($0.025/page). Enhanced costs $0.125/page; Handwriting costs $0.25/page and does not include image-to-text highlighting. Only successfully extracted pages are charged."
},
"title": {
"type": "string",
"nullable": true,
"description": "Display title. Defaults to the file name without its extension."
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional owned document folder. Null or omitted creates the OCR document at root."
},
"file": {
"type": "string",
"description": "Base64-encoded PDF or image bytes."
},
"file_name": {
"type": "string",
"description": "Original file name including extension."
},
"content_type": {
"type": "string",
"description": "Supported MIME type (application/pdf, image/bmp, image/gif, image/jpeg, image/png, image/tiff, or image/webp). Images count as one page; encrypted PDFs are unsupported."
}
},
"required": [
"file",
"file_name",
"content_type"
]
},
"OcrDocumentResponse": {
"title": "OcrDocumentResponse",
"type": "object",
"properties": {
"document_id": {
"$ref": "#/components/schemas/DocumentId",
"description": "Stable OCR document ID. There is no separate public OCR job ID."
},
"status": {
"type": "string",
"description": "Initial OCR status, normally PENDING."
},
"num_pages": {
"type": "integer",
"description": "Number of pages counted server-side and reserved for billing."
},
"estimated_api_cost_cents": {
"type": "number",
"format": "double",
"description": "API balance amount reserved for the estimated page count."
}
},
"required": [
"document_id",
"status",
"num_pages",
"estimated_api_cost_cents"
]
},
"OcrDocumentStatus": {
"title": "OcrDocumentStatus",
"type": "object",
"properties": {
"document_id": {
"$ref": "#/components/schemas/DocumentId",
"description": "Stable OCR document ID. Internally this is also the current OCR job key."
},
"title": {
"type": "string",
"description": "Document title."
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Containing document folder, or null for root."
},
"file_name": {
"type": "string",
"nullable": true,
"description": "Original file name."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Document creation time."
},
"num_pages": {
"type": "integer",
"nullable": true,
"description": "Total number of pages detected."
},
"completed_pages": {
"type": "integer",
"description": "Pages successfully processed so far."
},
"failed_pages": {
"type": "integer",
"description": "Pages that failed processing so far."
},
"status": {
"type": "string",
"description": "OCR status such as PENDING, PROCESSING, COMPLETED, or FAILED."
},
"error": {
"type": "string",
"nullable": true,
"description": "User-facing failure reason, when available. A failed document may still contain successfully extracted pages."
},
"pages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrPage"
},
"description": "OCR output by page."
}
},
"required": [
"document_id",
"title",
"completed_pages",
"failed_pages",
"status",
"pages"
]
},
"OcrJobCreateRequest": {
"title": "OcrJobCreateRequest",
"type": "object",
"properties": {
"job_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional job id. Provide this when you pre-allocate a storage path using the job id."
},
"storage_path": {
"type": "string",
"description": "Path to the uploaded file within the OCR storage bucket."
},
"file_name": {
"type": "string",
"nullable": true,
"description": "Original file name."
},
"content_type": {
"type": "string",
"nullable": true,
"description": "MIME type of the uploaded file (e.g., application/pdf, image/png)."
},
"file_kind": {
"type": "string",
"nullable": true,
"description": "Optional hint for file type (pdf or image)."
},
"model": {
"type": "string",
"nullable": true,
"description": "Internal site OCR mode. Use standard (1 credit/page), legacy_enhanced (Enhanced, 5 credits/page), or handwriting (Handwriting beta, 10 credits/page). Site requests require a matching site credit reservation. Public callers select a mode through the document-upload endpoint and use their API balance."
}
},
"required": [
"storage_path"
]
},
"OcrJobResponse": {
"title": "OcrJobResponse",
"type": "object",
"properties": {
"job_id": {
"type": "string",
"format": "uuid",
"description": "OCR job id."
},
"file_name": {
"type": "string",
"nullable": true,
"description": "Original file name."
}
},
"required": [
"job_id"
]
},
"OcrIndexCreateRequest": {
"title": "OcrIndexCreateRequest",
"type": "object",
"properties": {
"index_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional client-generated identity for a separate index or a retry. Omit to use the document's default creation flow. Retrying an existing identity retains its original settings."
},
"index_language": {
"type": "string",
"nullable": true,
"description": "Language to use for the generated index. Supported values are \"hebrew\" and \"english\"."
},
"focus": {
"type": "string",
"nullable": true,
"description": "Optional topics, themes, figures, or questions the generated index should emphasize."
},
"audience": {
"type": "string",
"nullable": true,
"description": "Optional intended audience for the index."
},
"style": {
"type": "string",
"nullable": true,
"description": "Optional style guidance for headings, terminology, and level of detail."
},
"instructions": {
"type": "string",
"nullable": true,
"description": "Additional freeform editorial guidance for the indexer."
},
"document_ai_usage_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Deprecated. Caller-provided billing is rejected; reservations are created atomically by the server."
},
"billable_page_count": {
"type": "integer",
"nullable": true,
"description": "Deprecated. Caller-provided billing is rejected; billable pages are counted by the server."
}
}
},
"OcrPage": {
"title": "OcrPage",
"type": "object",
"properties": {
"page_num": {
"type": "integer",
"description": "1-indexed page number."
},
"content": {
"type": "string",
"nullable": true,
"description": "OCR output for the page (HTML)."
}
},
"required": [
"page_num"
]
},
"OcrIndexPageAnchor": {
"title": "OcrIndexPageAnchor",
"type": "object",
"properties": {
"page_num": {
"type": "integer",
"description": "1-indexed physical page number in the OCR document."
},
"sequence_number": {
"type": "integer",
"description": "Stable internal sequence number for locator ordering."
},
"display_label": {
"type": "string",
"description": "Reader-facing page label used in the generated index. Printed labels are used as-is; physical fallbacks are prefixed with \"PDF \"."
},
"printed_page_label": {
"type": "string",
"nullable": true,
"description": "Visible printed page/folio label detected from the page, when available."
},
"header_title": {
"type": "string",
"nullable": true,
"description": "Running header or section title associated with the page, when detected."
},
"label_source": {
"type": "string",
"description": "Source of the reader-facing page label."
},
"pdf_page_number": {
"type": "integer",
"nullable": true,
"description": "Optional underlying PDF page number when the source originated from a PDF."
},
"kind": {
"type": "string",
"description": "Page classification used by the indexer."
}
},
"required": [
"page_num",
"sequence_number",
"display_label",
"label_source",
"kind"
]
},
"OcrIndexCitationEdit": {
"title": "OcrIndexCitationEdit",
"type": "object",
"properties": {
"entry_index": {
"type": "integer"
},
"subentry_index": {
"type": "integer",
"nullable": true
},
"page_nums": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Exact physical source pages for this entry, not printed labels. Empty removes its citations."
}
},
"required": [
"entry_index",
"page_nums"
]
},
"OcrIndexPageLabelEdit": {
"title": "OcrIndexPageLabelEdit",
"type": "object",
"properties": {
"page_num": {
"type": "integer"
},
"printed_page_label": {
"type": "string",
"description": "Corrected printed label for this source page throughout this index. Empty means unnumbered."
}
},
"required": [
"page_num",
"printed_page_label"
]
},
"OcrIndexPagesEditRequest": {
"title": "OcrIndexPagesEditRequest",
"type": "object",
"properties": {
"expected_updated_at": {
"type": "string",
"format": "date-time",
"description": "Last observed revision. Conflicting or in-progress edits are rejected with HTTP 409."
},
"citations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrIndexCitationEdit"
},
"nullable": true
},
"page_labels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrIndexPageLabelEdit"
},
"nullable": true
}
},
"required": [
"expected_updated_at"
]
},
"OcrIndexSubentry": {
"title": "OcrIndexSubentry",
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "Reader-facing subentry label."
},
"subheading": {
"type": "string",
"nullable": true,
"description": "Optional displayed subsection heading used to group detailed subentries."
},
"locators": {
"type": "array",
"items": {
"type": "string"
},
"description": "Compressed locator strings for the subentry."
},
"page_labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Exact page labels underlying the locators."
},
"page_nums": {
"type": "array",
"items": {
"type": "integer"
},
"nullable": true,
"description": "Explicit physical destinations after manual editing. Null retains legacy label-based citations."
}
},
"required": [
"label",
"locators",
"page_labels"
]
},
"OcrIndexEntry": {
"title": "OcrIndexEntry",
"type": "object",
"properties": {
"heading": {
"type": "string",
"description": "Reader-facing index heading."
},
"locators": {
"type": "array",
"items": {
"type": "string"
},
"description": "Compressed locator strings for the heading."
},
"page_labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Exact page labels underlying the locators."
},
"page_nums": {
"type": "array",
"items": {
"type": "integer"
},
"nullable": true,
"description": "Explicit physical destinations after manual editing. Null retains legacy label-based citations."
},
"subentries": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrIndexSubentry"
},
"description": "Optional subentries under the heading."
},
"see": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cross-references of the form \"See ...\"."
},
"see_also": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cross-references of the form \"See also ...\"."
}
},
"required": [
"heading",
"locators",
"page_labels",
"subentries",
"see",
"see_also"
]
},
"OcrIndexResult": {
"title": "OcrIndexResult",
"type": "object",
"properties": {
"entries": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrIndexEntry"
},
"description": "Final structured index entries."
}
},
"required": [
"entries"
]
},
"OcrIndexStatus": {
"title": "OcrIndexStatus",
"type": "object",
"properties": {
"index_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Stable identity of this index, independent of the source document."
},
"attempt_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Current execution attempt. Workflow retries retain this identity."
},
"index_language": {
"type": "string",
"nullable": true,
"description": "Saved target language; unknown for legacy indexes without recorded settings."
},
"generation_settings": {
"type": "object",
"additionalProperties": true,
"nullable": true,
"description": "Resolved generation settings saved for this index."
},
"job_id": {
"type": "string",
"format": "uuid",
"description": "OCR job id."
},
"status": {
"type": "string",
"description": "Index job status (NOT_STARTED, PENDING, PROCESSING, COMPLETED, FAILED, STALE)."
},
"progress_percent": {
"type": "integer",
"nullable": true,
"description": "Best-effort progress percentage for the current build, when available."
},
"source_kind": {
"type": "string",
"nullable": true,
"description": "Source kind used by the indexer."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Index row creation time."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Last update time for the index row."
},
"completed_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Completion time for the index build, when available."
},
"error": {
"type": "string",
"nullable": true,
"description": "User-facing error message when the build fails."
},
"report_markdown": {
"type": "string",
"nullable": true,
"description": "Build report summarizing the indexing run."
},
"index_text": {
"type": "string",
"nullable": true,
"description": "Plain-text rendering of the generated index."
},
"page_map": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrIndexPageAnchor"
},
"nullable": true,
"description": "Stored page-anchor map for locator resolution."
},
"index": {
"$ref": "#/components/schemas/OcrIndexResult",
"nullable": true,
"description": "Structured final index when available."
}
},
"required": [
"job_id",
"status"
]
},
"OcrTranslationRequest": {
"title": "OcrTranslationRequest",
"type": "object",
"properties": {
"target_mode": {
"type": "string",
"nullable": true,
"description": "Translation target mode. Use \"auto\" to translate Hebrew pages to English and English pages to Hebrew."
},
"translation_style": {
"type": "string",
"nullable": true,
"description": "Translation style id. Built-ins include learning_english and sefer_hebrew; saved user guides use custom:."
},
"force": {
"type": "boolean",
"nullable": true,
"description": "Regenerate translated pages even when cached pages are current."
},
"requested_by": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Site user who initiated this translation. Internal requests only."
}
}
},
"OcrTranslationPage": {
"title": "OcrTranslationPage",
"type": "object",
"properties": {
"page_num": {
"type": "integer",
"description": "1-indexed page number."
},
"source_hash": {
"type": "string",
"description": "SHA-256 hash of the OCR content used for this translation."
},
"source_language": {
"type": "string",
"nullable": true,
"description": "Detected source language for this page."
},
"target_language": {
"type": "string",
"nullable": true,
"description": "Target language for this page."
},
"content": {
"type": "string",
"nullable": true,
"description": "Translated OCR HTML for the page."
},
"status": {
"type": "string",
"description": "Page translation status."
},
"error": {
"type": "string",
"nullable": true,
"description": "Page-level translation error, if any."
},
"is_stale": {
"type": "boolean",
"description": "True when the current OCR content no longer matches the translated source hash."
}
},
"required": [
"page_num",
"source_hash",
"status",
"is_stale"
]
},
"OcrTranslationStatus": {
"title": "OcrTranslationStatus",
"type": "object",
"properties": {
"job_id": {
"type": "string",
"format": "uuid",
"description": "OCR job id."
},
"target_mode": {
"type": "string",
"description": "Translation target mode."
},
"translation_style": {
"type": "string",
"description": "Translation style id."
},
"status": {
"type": "string",
"description": "Translation job status. NOT_STARTED means no translation has been requested for this target mode."
},
"model": {
"type": "string",
"nullable": true,
"description": "Model used for translation."
},
"total_pages": {
"type": "integer",
"nullable": true,
"description": "Total pages expected for translation."
},
"completed_pages": {
"type": "integer",
"description": "Number of pages translated successfully."
},
"failed_pages": {
"type": "integer",
"description": "Number of pages that failed translation."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Translation job creation time."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Translation job last update time."
},
"error": {
"type": "string",
"nullable": true,
"description": "Job-level translation error, if any."
},
"source_word_count": {
"type": "integer",
"description": "Total source words in the current OCR document."
},
"billable_word_count": {
"type": "integer",
"description": "Source words that still require model translation for this request."
},
"credits_required": {
"type": "integer",
"description": "Document AI credits required at 10 credits per 1,000 words, rounded up to a whole credit."
},
"estimated_api_cost_cents": {
"type": "number",
"format": "double",
"description": "Estimated API balance charge in cents, at $0.25 per 1,000 billable words."
},
"pages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrTranslationPage"
},
"description": "Translation output by page."
}
},
"required": [
"job_id",
"target_mode",
"translation_style",
"status",
"completed_pages",
"failed_pages",
"source_word_count",
"billable_word_count",
"credits_required",
"estimated_api_cost_cents",
"pages"
]
},
"OcrJobStatus": {
"title": "OcrJobStatus",
"type": "object",
"properties": {
"job_id": {
"type": "string",
"format": "uuid",
"description": "OCR job id."
},
"file_name": {
"type": "string",
"nullable": true,
"description": "Original file name."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Job creation time."
},
"num_pages": {
"type": "integer",
"nullable": true,
"description": "Total number of pages detected."
},
"status": {
"type": "string",
"description": "Job status (PENDING, PROCESSING, COMPLETED)."
},
"pages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OcrPage"
},
"description": "OCR output by page."
}
},
"required": [
"job_id",
"status",
"pages"
]
},
"PartnerCatalogRecordingState": {
"title": "PartnerCatalogRecordingState",
"type": "string",
"enum": [
"eligible",
"withdrawn"
]
},
"PartnerCatalogRecordingRequest": {
"title": "PartnerCatalogRecordingRequest",
"type": "object",
"properties": {
"version": {
"type": "integer",
"description": "Positive recording version. Increase it for metadata or eligibility changes."
},
"title": {
"type": "string"
},
"language": {
"$ref": "#/components/schemas/PartnerTranscriptionLanguage"
},
"page_url": {
"type": "string"
},
"state": {
"$ref": "#/components/schemas/PartnerCatalogRecordingState",
"description": "Eligible attests that the recording meets the agreed ShiurBank permissions. Withdrawn disables it."
}
},
"required": [
"version",
"title",
"language",
"page_url",
"state"
]
},
"PartnerCatalogRecording": {
"title": "PartnerCatalogRecording",
"type": "object",
"properties": {
"source_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer"
},
"state": {
"$ref": "#/components/schemas/PartnerCatalogRecordingState"
}
},
"required": [
"source_id",
"version",
"state"
]
},
"PartnerRecordingIntentRequest": {
"title": "PartnerRecordingIntentRequest",
"type": "object",
"properties": {
"idempotency_key": {
"type": "string"
}
},
"required": [
"idempotency_key"
]
},
"PartnerRecordingIntent": {
"title": "PartnerRecordingIntent",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"source_id": {
"type": "string"
},
"status": {
"type": "string"
},
"confirmation_url": {
"type": "string"
}
},
"required": [
"id",
"source_id",
"status",
"confirmation_url"
]
},
"PartnerRecordingStatus": {
"title": "PartnerRecordingStatus",
"type": "object",
"properties": {
"source_id": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"source_id",
"status"
]
},
"PartnerPublicationRequest": {
"title": "PartnerPublicationRequest",
"type": "object",
"properties": {
"published": {
"type": "boolean"
},
"expected_revision": {
"type": "integer"
},
"idempotency_key": {
"type": "string"
}
},
"required": [
"published",
"expected_revision",
"idempotency_key"
]
},
"PartnerPublication": {
"title": "PartnerPublication",
"type": "object",
"properties": {
"resource_id": {
"type": "string",
"format": "uuid"
},
"source_id": {
"type": "string"
},
"revision": {
"type": "integer"
},
"published": {
"type": "boolean"
}
},
"required": [
"resource_id",
"source_id",
"revision",
"published"
]
},
"PartnerResource": {
"title": "PartnerResource",
"type": "object",
"properties": {
"resource_id": {
"type": "string",
"format": "uuid"
},
"source_id": {
"type": "string"
},
"source_url": {
"type": "string",
"nullable": true
},
"revision": {
"type": "integer"
},
"published_at": {
"type": "string",
"format": "date-time"
},
"title": {
"type": "string"
},
"text": {
"type": "string"
},
"timestamps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PartnerWordTimestamp"
},
"nullable": true,
"description": "Word timings for the published text, or null when stored timings cannot be matched to it."
},
"primary_language": {
"type": "string",
"nullable": true
},
"provenance": {
"type": "string",
"const": "sofer_partner_transcription",
"description": "The canonical text was explicitly published from a Sofer job originating in this integration."
}
},
"required": [
"resource_id",
"source_id",
"revision",
"published_at",
"title",
"text",
"provenance"
]
},
"PartnerWordTimestamp": {
"title": "PartnerWordTimestamp",
"type": "object",
"properties": {
"word": {
"type": "string"
},
"start": {
"type": "number",
"format": "double",
"description": "Start time in seconds from the beginning of the audio."
},
"end": {
"type": "number",
"format": "double",
"description": "End time in seconds from the beginning of the audio."
}
},
"required": [
"word",
"start",
"end"
]
},
"PartnerCopyRequest": {
"title": "PartnerCopyRequest",
"type": "object",
"properties": {
"expected_revision": {
"type": "integer"
},
"idempotency_key": {
"type": "string"
}
},
"required": [
"expected_revision",
"idempotency_key"
]
},
"PartnerResourceCopy": {
"title": "PartnerResourceCopy",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"url": {
"type": "string"
},
"resource_id": {
"type": "string",
"format": "uuid"
},
"source_id": {
"type": "string"
},
"revision": {
"type": "integer"
}
},
"required": [
"id",
"url",
"resource_id",
"source_id",
"revision"
]
},
"PartnerTranscriptionRequest": {
"title": "PartnerTranscriptionRequest",
"type": "object",
"properties": {
"audio_url": {
"type": "string",
"description": "Direct public HTTPS audio download URL. A temporary signed URL is supported."
},
"title": {
"type": "string"
},
"language": {
"$ref": "#/components/schemas/PartnerTranscriptionLanguage"
},
"source_id": {
"type": "string",
"description": "Stable recording ID in the partner's system, used for attribution."
},
"source_url": {
"type": "string",
"nullable": true,
"description": "Public HTTPS page URL identifying the original recording. Never include credentials."
},
"idempotency_key": {
"type": "string",
"description": "Unique request identifier, scoped to this partner and user. Retain it across retries."
}
},
"required": [
"audio_url",
"title",
"language",
"source_id",
"idempotency_key"
]
},
"PartnerTranscriptionLanguage": {
"title": "PartnerTranscriptionLanguage",
"type": "string",
"enum": [
"en",
"he",
"yi",
"fr"
]
},
"PartnerTranscriptionJob": {
"title": "PartnerTranscriptionJob",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string"
},
"url": {
"type": "string"
},
"source_id": {
"type": "string"
}
},
"required": [
"id",
"status",
"url",
"source_id"
]
},
"Confidence": {
"title": "Confidence",
"type": "string",
"enum": [
"HIGH",
"MEDIUM",
"LOW",
"NONE"
]
},
"OutlineRequest": {
"title": "OutlineRequest",
"type": "object",
"properties": {
"transcription_id": {
"$ref": "#/components/schemas/TranscriptionId",
"description": "ID of the transcription to process end-to-end"
},
"monotone": {
"type": "boolean",
"nullable": true,
"description": "If true, each topic is searched after the previous topic's start (with a small backoff)"
},
"conclusion_bias": {
"type": "boolean",
"nullable": true,
"description": "If true and a title includes the word \"conclusion\", search in the last third of the audio"
}
},
"required": [
"transcription_id"
]
},
"OutlineTopic": {
"title": "OutlineTopic",
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title of the topic"
},
"starting_phrase": {
"type": "string",
"description": "Starting phrase that was searched for"
},
"start_time_sec": {
"type": "integer",
"format": "float",
"nullable": true,
"description": "Start time in seconds for the best-aligned phrase (if found)"
},
"matched_text": {
"type": "string",
"description": "The transcript text segment best matching the starting phrase"
},
"score_norm": {
"type": "number",
"format": "double",
"description": "Normalized alignment score in [0,1]"
},
"confidence": {
"$ref": "#/components/schemas/Confidence",
"description": "Confidence bucket derived from the normalized score"
},
"token_span": {
"type": "array",
"items": {
"type": "integer"
},
"nullable": true,
"description": "Optional span of token indices [start, end) for the best match"
},
"matched_content": {
"type": "integer",
"nullable": true,
"description": "Number of matched content tokens (excludes stopwords/fillers)"
},
"content_coverage": {
"type": "integer",
"format": "float",
"nullable": true,
"description": "Fraction of content tokens in the phrase that were matched"
},
"longest_content_run_soft": {
"type": "integer",
"nullable": true,
"description": "Longest soft contiguous run of content-token matches"
},
"longest_content_run_strict": {
"type": "integer",
"nullable": true,
"description": "Longest strict contiguous run of content-token matches"
}
},
"required": [
"title",
"starting_phrase",
"matched_text",
"score_norm",
"confidence"
]
},
"UpdateTimestampsRequest": {
"title": "UpdateTimestampsRequest",
"type": "object",
"properties": {
"old_timestamps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Timestamp"
},
"description": "The original timestamps associated with the text before editing. These will be used as reference points to align the new timestamps."
},
"edited_text": {
"type": "string",
"description": "The modified version of the transcription text that needs updated timestamp alignments. This should be the complete text after your edits."
},
"language_to_update": {
"$ref": "#/components/schemas/Language",
"nullable": true,
"description": "If hebrew_word_format included both 'en' and 'he' (and therefor, for the same word there is both an English and a Hebrew version),this specifies which language version of the timestamps to update. Must be either 'en' for English or 'he' for Hebrew timestamps."
}
},
"required": [
"old_timestamps",
"edited_text"
]
},
"TranscriptionRequest": {
"title": "TranscriptionRequest",
"type": "object",
"properties": {
"audio_url": {
"type": "string",
"nullable": true,
"description": "A direct audio download URL or a page URL from an officially supported site.\nSupported site links are automatically resolved using the Link API's extraction logic,\nand the original URL is saved on the transcription. See [Get supported sites](/api-reference/link/get-supported-sites)\nfor the current list. If extraction fails, the request returns the corresponding Link API error.\nDirect download URLs continue to work without extraction. Other streaming or preview links are not supported.\nAutomatic extraction is available only for single transcriptions, not batch requests.\nEither audio_url or audio_file must be provided, but not both."
},
"audio_file": {
"type": "string",
"nullable": true,
"description": "Base64 encoded audio file content. Either audio_url or audio_file must be provided, but not both.\n\n## Base64 Encoding Example\n\n**Python:**\n```python\nimport base64\nfrom soferai import SoferAI\n\n# Initialize client\nclient = SoferAI(api_key=\"your_api_key_here\")\n\n# Read and encode audio file\nwith open(\"audio.mp3\", \"rb\") as f:\n base64_audio = base64.b64encode(f.read()).decode('utf-8')\n\n# Create transcription request\nresponse = client.transcribe.create_transcription(\n audio_file=base64_audio,\n info={\n \"model\": \"v1\",\n \"primary_language\": \"en\",\n \"hebrew_word_format\": [\"he\"],\n \"title\": \"My Shiur Transcription\"\n }\n)\n\nprint(f\"Transcription ID: {response}\")\n```"
},
"info": {
"$ref": "#/components/schemas/TranscriptionRequestInfo",
"description": "Transcription parameters"
}
},
"required": [
"info"
]
},
"BatchTranscriptionRequest": {
"title": "BatchTranscriptionRequest",
"type": "object",
"description": "Request body for creating a batch transcription. Use either `batch_file_id` (standard mode) or `audio_sources` (express mode), not both.\n\nSpeaker settings can be provided at the batch level in `info` or per item in `audio_sources` / a batch manifest. Per-item `num_speakers` or `auto_detect_speakers` settings take precedence over the batch-level speaker settings. If an item omits both speaker fields, it inherits the batch-level setting. If neither level provides a speaker setting, the transcription defaults to one speaker.",
"properties": {
"processing_mode": {
"$ref": "#/components/schemas/ProcessingMode",
"nullable": true,
"description": "Choose how the batch is processed:\n- `standard` (default): Lower cost, processed within 24 hours. Production allows up to 1,000 files per manifest and 5,000 files per UTC day per account. Use with `batch_file_id`. Pricing for v1 batch standard is $1.00/hour. Limits may differ by environment or configuration; see [API limits and errors](/api-limits-and-errors).\n- `express`: Submit up to 10 files at once with `audio_sources`. Express batches may take longer than individual transcription requests, but make it easier to submit multiple files together. Pricing for v1 is $1.50/hour."
},
"batch_file_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "**For standard mode only.** ID of a previously uploaded batch manifest.\n\nGet this by calling [Upload Batch Manifest File](/api-reference/batch-transcribe/upload-batch-file) first."
},
"audio_sources": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BatchAudioSource"
},
"nullable": true,
"description": "**For express mode only.** List of audio URLs to transcribe (max 10).\n\nEach item needs an `audio_url` and can optionally include a `title`, `client_item_id`, `num_speakers`, or `auto_detect_speakers`.\n\nPer-item `num_speakers` or `auto_detect_speakers` settings take precedence over the batch-level speaker settings in `info`.\n\nIf you provide `client_item_id`, it must be unique within the batch and can be used later to look up the resulting transcription."
},
"info": {
"$ref": "#/components/schemas/BatchTranscriptionRequestInfo",
"description": "Transcription settings applied to all files in the batch (model, language, etc.).\n\nBatch-level speaker settings are defaults. Per-item `num_speakers` or `auto_detect_speakers` settings in `audio_sources` or a batch manifest take precedence for that item."
},
"batch_title": {
"type": "string",
"nullable": true,
"description": "Default title prefix for transcriptions. Individual items can override this. Items without titles become \"{batch_title} - Item 1\", \"{batch_title} - Item 2\", etc."
}
},
"required": [
"info"
]
},
"BatchTranscriptionResponse": {
"title": "BatchTranscriptionResponse",
"type": "object",
"description": "Response after successfully creating a batch transcription.",
"properties": {
"batch_id": {
"type": "string",
"format": "uuid",
"description": "Use this ID to check batch progress via [Get Batch Status](/api-reference/batch-transcribe/get-batch-status)",
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"transcription_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranscriptionId"
},
"description": "IDs for each transcription in the batch. Use these to retrieve individual results via [Get Transcription](/api-reference/transcribe/get-transcription)"
},
"total_count": {
"type": "integer",
"description": "Number of transcriptions created",
"example": 2
},
"status": {
"$ref": "#/components/schemas/BatchStatus",
"description": "Initial batch status (typically `RECEIVED`)"
}
},
"required": [
"batch_id",
"transcription_ids",
"total_count",
"status"
]
},
"BatchStatusResponse": {
"title": "BatchStatusResponse",
"type": "object",
"description": "Detailed progress of a batch transcription.",
"properties": {
"batch_id": {
"type": "string",
"format": "uuid",
"description": "ID of this batch",
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"status": {
"$ref": "#/components/schemas/BatchStatus",
"description": "Overall batch status"
},
"total_count": {
"type": "integer",
"description": "Total transcriptions in batch",
"example": 3
},
"completed_count": {
"type": "integer",
"description": "Successfully completed",
"example": 1
},
"failed_count": {
"type": "integer",
"description": "Failed transcriptions",
"example": 0
},
"pending_count": {
"type": "integer",
"description": "Still processing or queued",
"example": 2
},
"transcriptions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranscriptionInfo"
},
"description": "Status details for each transcription in the batch"
}
},
"required": [
"batch_id",
"status",
"total_count",
"completed_count",
"failed_count",
"pending_count",
"transcriptions"
]
},
"BatchStatus": {
"title": "BatchStatus",
"type": "string",
"enum": [
"RECEIVED",
"PROCESSING",
"COMPLETED",
"FAILED"
],
"description": "Overall status of a batch transcription job."
},
"BatchSummary": {
"title": "BatchSummary",
"type": "object",
"description": "Current progress of a batch created from a manifest, without individual transcription payloads.",
"properties": {
"batch_id": {
"type": "string",
"format": "uuid"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"title": {
"type": "string",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/BatchStatus"
},
"total_count": {
"type": "integer",
"description": "Total transcriptions expected in this batch, including items still being initialized."
},
"completed_count": {
"type": "integer",
"description": "Successfully completed transcriptions."
},
"failed_count": {
"type": "integer",
"description": "Failed or cancelled transcriptions, including insufficient-funds failures."
},
"pending_count": {
"type": "integer",
"description": "Transcriptions still queued, processing, or being initialized."
}
},
"required": [
"batch_id",
"created_at",
"status",
"total_count",
"completed_count",
"failed_count",
"pending_count"
]
},
"ListBatchFileBatchesResponse": {
"title": "ListBatchFileBatchesResponse",
"type": "object",
"properties": {
"batch_file_id": {
"type": "string",
"format": "uuid",
"example": "f1234567-89ab-cdef-0123-456789abcdef"
},
"total_count": {
"type": "integer",
"description": "Total matching batches across all pages. Zero means no batches have been created from this manifest.",
"example": 0
},
"batches": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BatchSummary"
},
"description": "Matching batches ordered by creation time descending, then batch ID descending to break ties."
},
"limit": {
"type": "integer",
"example": 20
},
"offset": {
"type": "integer",
"example": 0
},
"has_more": {
"type": "boolean",
"example": false
},
"next_offset": {
"type": "integer",
"nullable": true,
"description": "Offset for the next page, omitted when there are no more results."
}
},
"required": [
"batch_file_id",
"total_count",
"batches",
"limit",
"offset",
"has_more"
]
},
"ProcessingMode": {
"title": "ProcessingMode",
"type": "string",
"enum": [
"standard",
"express"
],
"description": "Determines cost and processing speed for batch transcriptions."
},
"BatchFileContentType": {
"title": "BatchFileContentType",
"type": "string",
"enum": [
"json",
"jsonl"
],
"description": "Format of the batch manifest payload."
},
"BatchFileStatus": {
"title": "BatchFileStatus",
"type": "string",
"enum": [
"PENDING_VALIDATION",
"VALID",
"INVALID"
],
"description": "Validation status of an uploaded batch manifest."
},
"BatchFileMetadata": {
"title": "BatchFileMetadata",
"type": "object",
"description": "Optional metadata for organizing batch files.",
"properties": {
"title": {
"type": "string",
"nullable": true,
"description": "Name for this batch manifest"
},
"description": {
"type": "string",
"nullable": true,
"description": "Notes or description"
}
}
},
"BatchFileUploadRequest": {
"title": "BatchFileUploadRequest",
"type": "object",
"description": "Upload a manifest of audio URLs for standard mode batch processing.\nUse either `json_items` (JSON array) or `jsonl` (newline-delimited), not both.\nProduction allows up to 1,000 audio sources per manifest. Each item can optionally include a `client_item_id`, which must be unique within the manifest. Standard batches also share a 5,000-file quota per UTC day per account. Limits may differ by environment or configuration; see [API limits and errors](/api-limits-and-errors).",
"properties": {
"content_type": {
"$ref": "#/components/schemas/BatchFileContentType",
"description": "Format of your manifest data"
},
"json_items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BatchManifestAudioSource"
},
"nullable": true,
"description": "**For JSON format.** Array of audio sources to transcribe (up to 1,000 in production). See [API limits and errors](/api-limits-and-errors) for daily quotas and configuration differences."
},
"jsonl": {
"type": "string",
"nullable": true,
"description": "**For JSONL format.** One audio source per line as JSON, separated by newlines (up to 1,000 lines in production). See [API limits and errors](/api-limits-and-errors) for daily quotas and configuration differences.\n\nExample: `{\"audio_url\": \"https://...\"}\\n{\"audio_url\": \"https://...\"}`"
},
"metadata": {
"$ref": "#/components/schemas/BatchFileMetadata",
"nullable": true,
"description": "Optional title and description for this manifest"
}
},
"required": [
"content_type"
]
},
"BatchFileCreateFromRssRequest": {
"title": "BatchFileCreateFromRssRequest",
"type": "object",
"description": "Create a batch manifest by importing audio enclosures from a podcast RSS feed.",
"properties": {
"rss_url": {
"type": "string",
"description": "Public RSS feed URL to fetch and parse for podcast episode audio enclosures.",
"example": "https://example.com/podcast/feed.xml"
},
"limit": {
"type": "integer",
"nullable": true,
"description": "Optional maximum number of episodes to import. Defaults to the standard batch manifest limit."
},
"offset": {
"type": "integer",
"nullable": true,
"description": "Number of podcast episode audio enclosures to skip before importing. Use `next_offset` from the previous response to fetch the next page."
},
"metadata": {
"$ref": "#/components/schemas/BatchFileMetadata",
"nullable": true,
"description": "Optional title and description for this manifest. If omitted, the podcast title from the feed is used when available."
}
},
"required": [
"rss_url"
]
},
"BatchFileCreateFromRssResponse": {
"title": "BatchFileCreateFromRssResponse",
"type": "object",
"description": "Response after creating a batch manifest from a podcast RSS feed.",
"properties": {
"batch_file_id": {
"type": "string",
"format": "uuid",
"description": "Use this ID when calling [Create Batch Transcription](/api-reference/batch-transcribe/create-batch-transcription) with standard mode",
"example": "c3d4e5f6-a789-4012-bcde-f12345678901"
},
"item_count": {
"type": "integer",
"description": "Number of audio sources imported into this manifest",
"example": 100
},
"size_bytes": {
"type": "integer",
"description": "Size of the manifest in bytes",
"example": 8192
},
"checksum": {
"type": "string",
"nullable": true,
"description": "SHA256 checksum of the manifest"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Upload timestamp",
"example": "2024-01-15T09:30:00Z"
},
"status": {
"$ref": "#/components/schemas/BatchFileStatus",
"description": "Validation status. Wait for `VALID` before starting a batch."
},
"validation_errors": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "If status is `INVALID`, lists what's wrong with the manifest"
},
"offset": {
"type": "integer",
"description": "Number of audio enclosures skipped before this import started",
"example": 0
},
"limit": {
"type": "integer",
"description": "Maximum number of audio enclosures requested for this import",
"example": 100
},
"has_more": {
"type": "boolean",
"description": "Whether the feed contains more audio enclosures after this page",
"example": true
},
"next_offset": {
"type": "integer",
"nullable": true,
"description": "Offset to pass to import the next page. Omitted when `has_more` is false."
}
},
"required": [
"batch_file_id",
"item_count",
"size_bytes",
"created_at",
"status",
"offset",
"limit",
"has_more"
]
},
"BatchFileUploadResponse": {
"title": "BatchFileUploadResponse",
"type": "object",
"description": "Response after uploading a batch manifest.",
"properties": {
"batch_file_id": {
"type": "string",
"format": "uuid",
"description": "Use this ID when calling [Create Batch Transcription](/api-reference/batch-transcribe/create-batch-transcription) with standard mode",
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"item_count": {
"type": "integer",
"description": "Number of audio sources in the manifest",
"example": 3
},
"size_bytes": {
"type": "integer",
"description": "Size of the manifest in bytes",
"example": 256
},
"checksum": {
"type": "string",
"nullable": true,
"description": "SHA256 checksum of the manifest"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Upload timestamp",
"example": "2024-01-15T09:30:00Z"
},
"status": {
"$ref": "#/components/schemas/BatchFileStatus",
"description": "Validation status. Wait for `VALID` before starting a batch."
},
"validation_errors": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "If status is `INVALID`, lists what's wrong with the manifest"
}
},
"required": [
"batch_file_id",
"item_count",
"size_bytes",
"created_at",
"status"
]
},
"BatchFileSummary": {
"title": "BatchFileSummary",
"type": "object",
"description": "Summary of an uploaded batch manifest.",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Batch file ID"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Upload timestamp"
},
"item_count": {
"type": "integer",
"description": "Number of audio sources"
},
"size_bytes": {
"type": "integer",
"description": "Manifest size in bytes"
},
"status": {
"$ref": "#/components/schemas/BatchFileStatus",
"description": "Validation status"
},
"checksum": {
"type": "string",
"nullable": true,
"description": "SHA256 checksum"
},
"title": {
"type": "string",
"nullable": true,
"description": "Title from metadata"
}
},
"required": [
"id",
"created_at",
"item_count",
"size_bytes",
"status"
]
},
"BatchFileDetail": {
"title": "BatchFileDetail",
"type": "object",
"description": "Full details of an uploaded batch manifest.",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Batch file ID"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Upload timestamp"
},
"item_count": {
"type": "integer",
"description": "Number of audio sources"
},
"size_bytes": {
"type": "integer",
"description": "Manifest size in bytes"
},
"status": {
"$ref": "#/components/schemas/BatchFileStatus",
"description": "Validation status"
},
"checksum": {
"type": "string",
"nullable": true,
"description": "SHA256 checksum"
},
"title": {
"type": "string",
"nullable": true,
"description": "Title from metadata"
},
"description": {
"type": "string",
"nullable": true,
"description": "Description from metadata"
},
"validation_errors": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "If status is `INVALID`, lists what's wrong"
}
},
"required": [
"id",
"created_at",
"item_count",
"size_bytes",
"status"
]
},
"ListBatchFilesResponse": {
"title": "ListBatchFilesResponse",
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BatchFileSummary"
},
"description": "Your uploaded batch manifests"
},
"next_cursor": {
"type": "string",
"nullable": true,
"description": "Pagination cursor (if more results exist)"
}
},
"required": [
"files"
]
},
"Language": {
"title": "Language",
"type": "string",
"enum": [
"en",
"he",
"yi",
"fr"
]
},
"LettersLanguage": {
"title": "LettersLanguage",
"type": "string",
"enum": [
"en",
"he",
"hybrid"
]
},
"TransliterationStyle": {
"title": "TransliterationStyle",
"type": "string",
"enum": [
"sephardi",
"ashkenazi"
],
"description": "Pronunciation used when Hebrew and Aramaic words are written in English letters."
},
"TranscriptionId": {
"title": "TranscriptionId",
"$ref": "#/components/schemas/DocumentId",
"description": "Legacy alias for the durable document ID. No conversion is required."
},
"Status": {
"title": "Status",
"type": "string",
"enum": [
"RECEIVED",
"PENDING",
"PROCESSING",
"COMPLETED",
"CANCELLED",
"FAILED",
"UPLOADED",
"INSUFFICIENT_FUNDS"
]
},
"TranscriptionRequestInfo": {
"title": "TranscriptionRequestInfo",
"type": "object",
"properties": {
"model": {
"type": "string",
"nullable": true,
"description": "Model to be used for the transcription. Default is \"v1\".\n- v1: Our latest and most accurate model, especially for audio with longer stretches of Hebrew.\nPriced at 1.50 USD per hour of audio transcribed.\n- v0: Not generally recommended. Cheaper, but less accurate.\nPriced at 1.00 USD per hour."
},
"id": {
"$ref": "#/components/schemas/TranscriptionId",
"nullable": true,
"description": "ID of the transcription. Any valid UUID version is accepted and preserved. If omitted, a UUIDv4 will be generated. An existing ID returns a conflict for external API requests."
},
"title": {
"type": "string",
"nullable": true,
"description": "Title for the transcription, Default is \"Untitled\""
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional owned document folder. Null or omitted creates the transcript at root."
},
"primary_language": {
"$ref": "#/components/schemas/Language",
"nullable": true,
"description": "Specifies the primary language spoken in the audio content. Default is English.\n- en: English\n- he: Hebrew\n- yi: Yiddish\n- fr: French"
},
"hebrew_word_format": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LettersLanguage"
},
"nullable": true,
"description": "Relevant only when `primary_language` is `en`. This setting controls how Hebrew,\nYiddish, and Aramaic speech is rendered.\n- Omit it or specify `[\"hybrid\"]` (the default) to mix the two: phrases of three\n words or fewer are transliterated into italicized English letters, and longer\n phrases are written in Hebrew letters.\n- Specify `[\"he\"]` to write all such speech in Hebrew letters.\n- Specify `[\"en\"]` to transliterate all such speech into italicized English letters.\n- Specify `[\"en\", \"he\"]` to provide every Hebrew word in both formats, with the\n transliteration in `` tags.\n- When the primary language is not English, omit this field or specify `[\"he\"]`;\n `[\"he\"]` is the only supported format.\nUse `transliteration_style` to choose Sephardi or Ashkenazi pronunciation for the\nwords written in English letters."
},
"transliteration_style": {
"$ref": "#/components/schemas/TransliterationStyle",
"nullable": true,
"description": "Pronunciation for Hebrew and Aramaic words written in English letters:\n`sephardi` (e.g. Shabbat, mitzvot) or `ashkenazi` (e.g. Shabbos, mitzvos).\nOmit it to use the account's saved preference, or Sephardi when none is saved.\n\nIt applies only when `primary_language` is `en` and `hebrew_word_format` produces\nEnglish-letter words:\n- `[\"hybrid\"]` (the default): applies to the short phrases written in English letters.\n Longer phrases are in Hebrew letters and are unaffected.\n- `[\"en\"]`: applies to every Hebrew, Yiddish, and Aramaic word.\n- `[\"en\", \"he\"]`: applies to the English-letter half of each pair.\n- `[\"he\"]`, or any primary language other than English: ignored, since nothing is\n written in English letters."
},
"num_speakers": {
"type": "integer",
"nullable": true,
"description": "Expected number of speakers in the audio. Default is 1. This field is mutually exclusive with `auto_detect_speakers`. If a number more than 1 is passed, it will be used for speaker labeling and adds **$0.30/hour**."
},
"auto_detect_speakers": {
"type": "boolean",
"nullable": true,
"description": "Automatically detect the number of speakers in the audio. This field is mutually exclusive with `num_speakers`. If both are provided, the API returns a 400 error. Auto-detection adds **$0.30/hour**."
}
}
},
"BatchTranscriptionRequestInfo": {
"title": "BatchTranscriptionRequestInfo",
"type": "object",
"properties": {
"model": {
"type": "string",
"nullable": true,
"description": "Model to be used for the transcription. Default is \"v1\".\n- v1: Our latest and most accurate model, especially for audio with longer stretches of Hebrew.\nPriced at 1.50 USD per hour of audio transcribed.\n- v0: Not generally recommended. Cheaper, but less accurate.\nPriced at 1.00 USD per hour."
},
"title": {
"type": "string",
"nullable": true,
"description": "Title for the transcription, Default is \"Untitled\""
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional owned document folder applied to every transcript created by this batch."
},
"primary_language": {
"$ref": "#/components/schemas/Language",
"nullable": true,
"description": "Specifies the primary language spoken in the audio content. Default is English.\n- en: English\n- he: Hebrew\n- yi: Yiddish\n- fr: French"
},
"hebrew_word_format": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LettersLanguage"
},
"nullable": true,
"description": "Relevant only when `primary_language` is `en`. This setting controls how Hebrew,\nYiddish, and Aramaic speech is rendered across the batch.\n- Omit it or specify `[\"hybrid\"]` (the default) to mix the two: phrases of three\n words or fewer are transliterated into italicized English letters, and longer\n phrases are written in Hebrew letters.\n- Specify `[\"he\"]` to write all such speech in Hebrew letters.\n- Specify `[\"en\"]` to transliterate all such speech into italicized English letters.\n- Specify `[\"en\", \"he\"]` to provide every Hebrew word in both formats, with the\n transliteration in `` tags.\n- When the primary language is not English, omit this field or specify `[\"he\"]`;\n `[\"he\"]` is the only supported format.\nUse `transliteration_style` to choose Sephardi or Ashkenazi pronunciation for the\nwords written in English letters."
},
"transliteration_style": {
"$ref": "#/components/schemas/TransliterationStyle",
"nullable": true,
"description": "Pronunciation for Hebrew and Aramaic words written in English letters across the batch:\n`sephardi` (e.g. Shabbat, mitzvot) or `ashkenazi` (e.g. Shabbos, mitzvos).\nOmit it to use the account's saved preference, or Sephardi when none is saved.\n\nIt applies only when `primary_language` is `en` and `hebrew_word_format` produces\nEnglish-letter words:\n- `[\"hybrid\"]` (the default): applies to the short phrases written in English letters.\n Longer phrases are in Hebrew letters and are unaffected.\n- `[\"en\"]`: applies to every Hebrew, Yiddish, and Aramaic word.\n- `[\"en\", \"he\"]`: applies to the English-letter half of each pair.\n- `[\"he\"]`, or any primary language other than English: ignored, since nothing is\n written in English letters."
},
"num_speakers": {
"type": "integer",
"nullable": true,
"description": "Expected number of speakers in the audio. Default is 1. This field is mutually exclusive with `auto_detect_speakers`. If a number more than 1 is passed, it will be used for speaker labeling and adds **$0.30/hour**."
},
"auto_detect_speakers": {
"type": "boolean",
"nullable": true,
"description": "Automatically detect the number of speakers in the audio. This field is mutually exclusive with `num_speakers`. If both are provided, the API returns a 400 error. Auto-detection adds **$0.30/hour**."
}
}
},
"TranscriptionInfo": {
"title": "TranscriptionInfo",
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/TranscriptionId",
"description": "ID of the transcription"
},
"client_item_id": {
"type": "string",
"nullable": true,
"description": "Caller-defined per-item identifier for batch items. This is `null` for single transcriptions and for batch items submitted without a `client_item_id`."
},
"title": {
"type": "string",
"description": "Title of the transcription",
"example": "Shiur 1"
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Containing document folder, or null for root."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the transcription was created",
"example": "2024-01-15T09:30:00Z"
},
"primary_language": {
"$ref": "#/components/schemas/Language",
"nullable": true,
"description": "The primary language of the audio content. This is null when an upload has not yet been configured for transcription."
},
"hebrew_word_format": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LettersLanguage"
},
"nullable": true,
"description": "Indicates how Hebrew words are transcribed in the response when the primary language is English.\n- `hybrid` uses italicized English transliteration for short phrases and Hebrew letters for longer phrases.\n- Hebrew words are in Hebrew letters if \"he\" is specified.\n- Hebrew words are transliterated into English letters if \"en\" is specified.\n- If both \"he\" and \"en\" are specified, both versions are provided back-to-back for each Hebrew word.\nTransliterated Hebrew words are surrounded by tags in the response text.\nThis is null when no Hebrew-word format has been configured for the upload."
},
"num_speakers": {
"type": "integer",
"nullable": true,
"description": "Number of speakers in the audio. This can be `null` while auto-detection is pending or if no count was determined."
},
"status": {
"$ref": "#/components/schemas/Status",
"description": "Current status of the transcription"
},
"duration": {
"type": "integer",
"format": "float",
"nullable": true,
"description": "Duration of the audio in seconds. If None, it means the duration was not calculated yet."
},
"model": {
"type": "string",
"nullable": true,
"description": "Model used for the transcription. V1 is the latest and most accurate model, especially for audio with longer stretches of Hebrew. V0 is suitable for audio with fewer Hebrew words."
}
},
"required": [
"id",
"title",
"created_at",
"status"
]
},
"Transcription": {
"title": "Transcription",
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "This field contains the transcription text. For English-primary audio, the default `hybrid` format uses italicized English transliteration for short Hebrew phrases and Hebrew letters for longer phrases. With only `en` or `he`, Hebrew words use that format. If both `en` and `he` are requested, Hebrew words appear in both formats with the English transliteration in italics. If the primary language is Hebrew, the text is in Hebrew. If the primary language is French, the text is in French with Hebrew, Yiddish, and Aramaic words in Hebrew letters.",
"example": "Welcome to today's shiur שיעור. We will discuss the halacha הלכה regarding..."
},
"timestamps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranscriptionTimestamp"
},
"nullable": true,
"description": "Word timestamps. Private Yiddish beta timing is optional for eligible new individual and Express uploads, and may arrive after COMPLETED. Unsupported words stay in text and are omitted from this sparse list. Standard batch remains text-only for Yiddish. Timing is read from the canonical stored timestamps; accepted older HTML-only beta results remain readable. Null/untimed storage entries are never returned as zero-second times."
},
"word_timing_status": {
"type": "string",
"nullable": true,
"description": "Private Yiddish beta enrichment status, when applicable: PENDING, PARTIAL or UNAVAILABLE. Timing failure does not change transcription completion or billing. PARTIAL does not imply measured accuracy or complete coverage; inspect each timestamp's timing_kind."
},
"info": {
"$ref": "#/components/schemas/TranscriptionInfo",
"description": "Additional information about the transcription"
}
},
"required": [
"text",
"info"
]
},
"TranscriptionTranslationRequest": {
"title": "TranscriptionTranslationRequest",
"type": "object",
"properties": {
"target_mode": {
"type": "string",
"nullable": true,
"description": "Translation target. Use auto to translate Hebrew/Yiddish/Aramaic-heavy segments to English and English-heavy segments to Hebrew."
},
"translation_style": {
"type": "string",
"nullable": true,
"description": "Translation style id. Built-ins include learning_english and sefer_hebrew; saved user guides use custom:."
},
"force": {
"type": "boolean",
"nullable": true,
"description": "Regenerate the translation even if cached segments already exist."
},
"requested_by": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Site user who initiated this translation. Internal requests only."
}
}
},
"TranscriptionTranslationSegment": {
"title": "TranscriptionTranslationSegment",
"type": "object",
"properties": {
"segment_id": {
"type": "string",
"description": "Stable paragraph-level segment ID used to pair original and translated text."
},
"segment_index": {
"type": "integer",
"description": "One-based segment order in the transcription."
},
"source_hash": {
"type": "string",
"description": "Hash of the source segment text used to generate this translation."
},
"source_text": {
"type": "string",
"nullable": true,
"description": "Exact visible source paragraph text paired with this translated paragraph."
},
"source_language": {
"type": "string",
"nullable": true,
"description": "Detected source language for the segment."
},
"target_language": {
"type": "string",
"nullable": true,
"description": "Target language used for the segment."
},
"start_time": {
"type": "number",
"format": "double",
"nullable": true,
"description": "Start timestamp in seconds for the source paragraph, when available."
},
"end_time": {
"type": "number",
"format": "double",
"nullable": true,
"description": "End timestamp in seconds for the source paragraph, when available."
},
"speaker": {
"type": "string",
"nullable": true,
"description": "Speaker label for the paragraph, when available."
},
"content": {
"type": "string",
"nullable": true,
"description": "Translated HTML for this paragraph."
},
"status": {
"type": "string",
"description": "Segment translation status."
},
"error": {
"type": "string",
"nullable": true,
"description": "Error message if this segment failed."
},
"is_stale": {
"type": "boolean",
"description": "Whether the translation was generated from an older source hash."
}
},
"required": [
"segment_id",
"segment_index",
"source_hash",
"status",
"is_stale"
]
},
"TranscriptionTranslationStatus": {
"title": "TranscriptionTranslationStatus",
"type": "object",
"properties": {
"transcription_id": {
"type": "string",
"format": "uuid",
"description": "ID of the source transcription."
},
"target_mode": {
"type": "string",
"description": "Translation target mode."
},
"translation_style": {
"type": "string",
"description": "Translation style id."
},
"status": {
"type": "string",
"description": "Overall translation status."
},
"model": {
"type": "string",
"nullable": true,
"description": "Model used for translation."
},
"total_segments": {
"type": "integer",
"nullable": true,
"description": "Total paragraph segments in the translation job."
},
"completed_segments": {
"type": "integer",
"description": "Number of successfully translated segments."
},
"failed_segments": {
"type": "integer",
"description": "Number of failed segments."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When the translation job was created."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "When the translation job was last updated."
},
"error": {
"type": "string",
"nullable": true,
"description": "Overall job error, if any."
},
"source_word_count": {
"type": "integer",
"description": "Total source words in the current document."
},
"billable_word_count": {
"type": "integer",
"description": "Source words that still require model translation for this request."
},
"credits_required": {
"type": "integer",
"description": "Document AI credits required on the Sofer.AI site, at 10 credits per 1,000 words rounded up to a whole credit."
},
"estimated_api_cost_cents": {
"type": "number",
"format": "double",
"description": "Estimated API balance charge in cents, at $0.25 per 1,000 billable words."
},
"segments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranscriptionTranslationSegment"
},
"description": "Paragraph-level translated segments."
}
},
"required": [
"transcription_id",
"target_mode",
"translation_style",
"status",
"completed_segments",
"failed_segments",
"source_word_count",
"billable_word_count",
"credits_required",
"estimated_api_cost_cents",
"segments"
]
},
"TranscriptionTimestamp": {
"title": "TranscriptionTimestamp",
"oneOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"$ref": "#/components/schemas/BetaTimestamp"
}
]
},
"BetaTimestamp": {
"title": "BetaTimestamp",
"type": "object",
"properties": {
"timing_kind": {
"type": "string",
"description": "Timing provenance for the private Yiddish beta. screened_candidate_anchor is a model timing candidate, not human-verified accuracy. interpolated_between_anchors is an equal-duration estimate inside a short supported gap, not a measured boundary."
}
},
"required": [
"timing_kind"
],
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
}
]
},
"Timestamp": {
"title": "Timestamp",
"type": "object",
"properties": {
"word": {
"type": "string",
"description": "Word"
},
"hebrew_word_format": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LettersLanguage"
},
"nullable": true,
"description": "Specifies the format of Hebrew words in the transcription. Hebrew words are denoted as \"he\" for Hebrew letters or \"en\" for English transliteration. Non-Hebrew words are represented by null."
},
"start": {
"type": "number",
"format": "double",
"description": "Start time of the timestamp"
},
"end": {
"type": "number",
"format": "double",
"description": "End time of the timestamp"
},
"speaker": {
"type": "string",
"nullable": true,
"description": "If speaker labeling was requested, indicates which speaker number spoke this word (Pro feature)"
}
},
"required": [
"word",
"start",
"end"
]
},
"BatchAudioSource": {
"title": "BatchAudioSource",
"type": "object",
"description": "A single audio file in a batch request.\n\nPer-item speaker settings take precedence over the batch-level speaker settings in `info`.",
"properties": {
"audio_url": {
"type": "string",
"description": "Direct download URL to the audio file (MP3, WAV, etc.)"
},
"title": {
"type": "string",
"nullable": true,
"description": "Title for this transcription. Falls back to batch_title or auto-generated \"Item 1\", \"Item 2\", etc."
},
"client_item_id": {
"type": "string",
"nullable": true,
"description": "Caller-defined identifier for this batch item. Must be unique within the batch. Use this to map the item back to the resulting transcription later."
},
"num_speakers": {
"type": "integer",
"nullable": true,
"description": "Expected number of speakers for this specific file. Mutually exclusive with `auto_detect_speakers`. If provided, this overrides the batch-level speaker setting for this item. Values greater than 1 add **$0.30/hour**."
},
"auto_detect_speakers": {
"type": "boolean",
"nullable": true,
"description": "Automatically detect the number of speakers for this specific file. Mutually exclusive with `num_speakers`. If provided, this overrides the batch-level speaker setting for this item. Auto-detection adds **$0.30/hour**."
}
},
"required": [
"audio_url"
]
},
"BatchManifestAudioSource": {
"title": "BatchManifestAudioSource",
"type": "object",
"description": "A single audio file in a batch manifest upload.\n\nPer-item speaker settings take precedence over the batch-level speaker settings provided when creating the batch transcription.",
"properties": {
"audio_url": {
"type": "string",
"description": "Direct download URL to the audio file (MP3, WAV, etc.)"
},
"title": {
"type": "string",
"nullable": true,
"description": "Title for this transcription. Falls back to batch_title or auto-generated \"Item 1\", \"Item 2\", etc."
},
"client_item_id": {
"type": "string",
"nullable": true,
"description": "Caller-defined identifier for this batch item. Must be unique within the manifest. Use this to map the item back to the resulting transcription later."
},
"num_speakers": {
"type": "integer",
"nullable": true,
"description": "Expected number of speakers for this specific file. Mutually exclusive with `auto_detect_speakers`. If provided, this overrides the batch-level speaker setting for this item. Values greater than 1 add **$0.30/hour**."
},
"auto_detect_speakers": {
"type": "boolean",
"nullable": true,
"description": "Automatically detect the number of speakers for this specific file. Mutually exclusive with `num_speakers`. If provided, this overrides the batch-level speaker setting for this item. Auto-detection adds **$0.30/hour**."
}
},
"required": [
"audio_url"
]
},
"TranscriptionSummary": {
"title": "TranscriptionSummary",
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/TranscriptionId",
"description": "ID of the transcription"
},
"title": {
"type": "string",
"description": "Title of the transcription"
},
"folder_id": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Containing document folder, or null for root."
},
"status": {
"$ref": "#/components/schemas/Status",
"description": "Current status of the transcription"
}
},
"required": [
"id",
"title",
"status"
]
},
"CreateTransformationJobRequest": {
"title": "CreateTransformationJobRequest",
"type": "object",
"properties": {
"request_id": {
"type": "string",
"format": "uuid"
},
"transcript_id": {
"type": "string"
},
"prompt_template": {
"type": "string"
}
},
"required": [
"request_id",
"transcript_id",
"prompt_template"
]
},
"TransformationJobStatus": {
"title": "TransformationJobStatus",
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed"
]
},
"TransformationJobResponse": {
"title": "TransformationJobResponse",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"transcript_id": {
"type": "string"
},
"prompt_template": {
"type": "string"
},
"status": {
"$ref": "#/components/schemas/TransformationJobStatus"
},
"output_text": {
"type": "string",
"nullable": true
},
"error": {
"type": "string",
"nullable": true
},
"used_token": {
"type": "boolean"
},
"transcript_truncated": {
"type": "boolean"
}
},
"required": [
"id",
"transcript_id",
"prompt_template",
"status",
"used_token",
"transcript_truncated"
]
},
"GenerateTranscriptSummaryRequest": {
"title": "GenerateTranscriptSummaryRequest",
"type": "object",
"properties": {
"transcription_id": {
"type": "string",
"format": "uuid",
"description": "ID of the transcription to summarize"
}
},
"required": [
"transcription_id"
]
},
"TranscriptSummaryResponse": {
"title": "TranscriptSummaryResponse",
"type": "object",
"properties": {
"summary": {
"type": "string",
"description": "Markdown summary of the transcription"
}
},
"required": [
"summary"
]
},
"TranslationStyleTargetLanguage": {
"title": "TranslationStyleTargetLanguage",
"type": "string",
"enum": [
"en",
"he",
"yi"
],
"description": "Language a custom style is designed for."
},
"TranslationStyleKind": {
"title": "TranslationStyleKind",
"type": "string",
"enum": [
"built_in",
"custom"
]
},
"TranslationStyle": {
"title": "TranslationStyle",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Value to pass as `translation_style` when creating a translation."
},
"name": {
"type": "string",
"description": "Display name."
},
"description": {
"type": "string",
"nullable": true,
"description": "Short description of the style."
},
"target_languages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranslationStyleTargetLanguage"
},
"description": "Languages this style can be used with."
},
"kind": {
"$ref": "#/components/schemas/TranslationStyleKind",
"description": "Whether this is a built-in or user-created style."
},
"instructions": {
"type": "string",
"nullable": true,
"description": "The authenticated user's custom style instructions. Omitted for built-in styles."
},
"verified": {
"type": "boolean",
"description": "Whether the style instructions passed safety and scope validation."
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Creation time for a custom style."
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Last update time for a custom style."
}
},
"required": [
"id",
"name",
"target_languages",
"kind",
"verified"
]
},
"TranslationStyleListResponse": {
"title": "TranslationStyleListResponse",
"type": "object",
"properties": {
"styles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TranslationStyle"
},
"description": "Built-in and owned custom translation styles."
}
},
"required": [
"styles"
]
},
"TranslationStyleCreateRequest": {
"title": "TranslationStyleCreateRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Display name, up to 60 characters."
},
"target_language": {
"$ref": "#/components/schemas/TranslationStyleTargetLanguage",
"description": "Language translations using this style will produce."
},
"instructions": {
"type": "string",
"description": "Style-only instructions, up to 4,000 characters. HTML is not accepted; use paired asterisks for emphasis."
}
},
"required": [
"name",
"target_language",
"instructions"
]
},
"TranslationStyleUpdateRequest": {
"title": "TranslationStyleUpdateRequest",
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "New display name. Omit to leave unchanged."
},
"instructions": {
"type": "string",
"nullable": true,
"description": "Replacement style-only instructions. Omit to leave unchanged."
}
}
},
"TranslationStyleDeleteResponse": {
"title": "TranslationStyleDeleteResponse",
"type": "object",
"properties": {
"deleted": {
"type": "boolean",
"description": "True when the custom style was deleted."
},
"translation_style_id": {
"type": "string",
"description": "Deleted custom translation style ID."
}
},
"required": [
"deleted",
"translation_style_id"
]
},
"DurationRequest": {
"title": "DurationRequest",
"type": "object",
"properties": {
"audio_url": {
"type": "string",
"nullable": true,
"description": "Direct URL to a downloadable audio file."
},
"audio_file": {
"type": "string",
"nullable": true,
"description": "Base64-encoded audio file content. Do not include a data URI prefix."
}
}
},
"DurationResponse": {
"title": "DurationResponse",
"type": "object",
"properties": {
"duration_seconds": {
"type": "number",
"format": "double",
"description": "Duration of the audio in seconds. Returns 0 if the duration cannot be determined."
}
},
"required": [
"duration_seconds"
]
}
},
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
},
"servers": [
{
"url": "https://api.sofer.ai",
"description": "Production"
},
{
"url": "https://api-staging.sofer.ai",
"description": "Staging"
},
{
"url": "http://localhost:8001",
"description": "Development"
}
]
}