API reference: Transcription
The Transcription endpoints (7 operations), generated from the OpenAPI document (https://faraatarjomeh.com/api/v1/openapi.json). For task-level walkthroughs use the guides; for error handling use /api/v1/docs/errors. The full reference: /api/v1/docs/reference.
At a glance#
- Auth on every call:
Authorization: Bearer $FARA_API_KEY scope:readfor GET/HEAD,writefor the rest- spends Fara: the call holds or charges Fara; get the price first and send
Idempotency-Key - Path parameters in the examples are shell variables (
$JOB_ID,$ID…) - Errors:
application/problem+jsonwith a stablecode(not repeated per endpoint below)
Index#
- Transcription: GET /api/v1/transcription/pricing, GET /api/v1/transcription/jobs, POST /api/v1/transcription/jobs, GET /api/v1/transcription/jobs/{id}, DELETE /api/v1/transcription/jobs/{id}, POST /api/v1/transcription/jobs/{id}/cancel, GET /api/v1/transcription/jobs/{id}/download
Transcription#
Recording to text, with optional translation.
GET /api/v1/transcription/pricing#
Get transcription pricing
- operationId
getTranscriptionPricing· scoperead· free
Response 200
Responses
200Pricing. (application/json)- Errors:
401,403,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X GET "https://faraatarjomeh.com/api/v1/transcription/pricing" \
-H "Authorization: Bearer $FARA_API_KEY"GET /api/v1/transcription/jobs#
List transcription jobs
- operationId
listTranscriptionJobs· scoperead· free
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
limit |
query | integer | no | Items to return (at most 50). — default: 20; min 1; max 50 |
offset |
query | integer | no | Items to skip. — default: 0; min 0 |
externalId |
query | string | no | Early access: only jobs created with this externalId. |
idempotencyKey |
query | string | no | Early access: the job a create request with this Idempotency-Key made (kept 24 hours). Empty list when that request created nothing; 409 IDEMPOTENCY_KEY_IN_USE while it is still running. |
q |
query | string | no | Search by name. Matches the name given to the job or its original file name, ignoring case. Plain text, at most 100 characters; blank means no search. — max length 100 |
Response 200
Responses
200Jobs. (application/json)- Errors:
401,403,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X GET "https://faraatarjomeh.com/api/v1/transcription/jobs" \
-H "Authorization: Bearer $FARA_API_KEY"POST /api/v1/transcription/jobs#
Turn a recording into text
- operationId
createTranscriptionJob· scopewrite· spends Fara · sendIdempotency-Key
Optionally translates the text too. Fara is held from the audio length when the job is created, charged at the actual cost when done, and released on failure or cancel. A file over 200 MB answers 400 BAD_REQUEST (its message may say 100MB). For a larger file, or a connection that may break, send it as a chunked upload (POST /api/v1/uploads with purpose: transcription) and create the job with a JSON body holding uploadId: the upload errors (UPLOAD_NOT_FOUND, UPLOAD_EXPIRED, UPLOAD_INCOMPLETE, UPLOAD_ALREADY_USED, UPLOAD_CHECKSUM_MISMATCH) come from this call. A refused create leaves the upload open, so it can be used again. Early access (accounts with meetings_api_v2; others get 403 FEATURE_NOT_ENABLED). Early-access accounts may send externalId, metadata, or a JSON body with audioUrl instead of a file.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
Idempotency-Key |
header | string | no | see /api/v1/docs/conventions#idempotency |
Request body multipart/form-data (required)
Request body application/json (required)
TranscriptionCreateJsonRequest
Response 201
Responses
201Created. (application/json)- Errors:
400,401,402,403,404,409,410,422,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X POST "https://faraatarjomeh.com/api/v1/transcription/jobs" \
-H "Authorization: Bearer $FARA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'GET /api/v1/transcription/jobs/{id}#
Get a transcription job
- operationId
getTranscriptionJob· scoperead· free
Note: this answer is the job itself, not wrapped in { job }.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes | Job id. |
Response 200
Responses
200The job. (application/json)- Errors:
401,403,404,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X GET "https://faraatarjomeh.com/api/v1/transcription/jobs/$ID" \
-H "Authorization: Bearer $FARA_API_KEY"DELETE /api/v1/transcription/jobs/{id}#
Delete a transcription job permanently
- operationId
deleteTranscriptionJob· scopewrite· free · sendIdempotency-Key
Removes the audio, transcript and files from our servers. Ledger rows stay. Only finished jobs: a running job answers 409 JOB_NOT_FINISHED. Open to every account. Afterwards the job answers 404.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes | Job id. |
Idempotency-Key |
header | string | no | see /api/v1/docs/conventions#idempotency |
Responses
204Deleted.- Errors:
400,401,403,404,409,422,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X DELETE "https://faraatarjomeh.com/api/v1/transcription/jobs/$ID" \
-H "Authorization: Bearer $FARA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"POST /api/v1/transcription/jobs/{id}/cancel#
Cancel a transcription job
- operationId
cancelTranscriptionJob· scopewrite· free · sendIdempotency-Key
Releases the held Fara.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes | Job id. |
Idempotency-Key |
header | string | no | see /api/v1/docs/conventions#idempotency |
Response 200
Responses
200Cancelled. (application/json)- Errors:
400,401,403,404,409,422,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X POST "https://faraatarjomeh.com/api/v1/transcription/jobs/$ID/cancel" \
-H "Authorization: Bearer $FARA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"GET /api/v1/transcription/jobs/{id}/download#
Download the transcript or its translation
- operationId
downloadTranscript· scoperead· free
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string | yes | Job id. |
file |
query | string | no | The transcript or the translation. — one of: source, translation; default: "source" |
format |
query | string | no | Plain text, SubRip subtitles, or a PDF or Word document (one block per speaker turn, with times). — one of: txt, srt, pdf, docx; default: "txt" |
Responses
200The file. (text/plain,application/x-subrip,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document)- Errors:
400,401,403,404,409,429,503— problem+json, see /api/v1/docs/errors
Example
curl -sS -X GET "https://faraatarjomeh.com/api/v1/transcription/jobs/$ID/download" \
-H "Authorization: Bearer $FARA_API_KEY"Schemas#
Named request and response objects used above. Nested objects are flattened as parent.child; arrays as parent[].child.
MediaCreateResponse#
| Field | Type | Required | Notes |
|---|---|---|---|
jobId |
string | yes | |
cost |
object | no | Price of the job; faraCharged is the Fara held. |
durationSeconds |
number | no | |
outputOptions |
object | no | Meetings: outputLanguage (or null for the meeting's own language), output and mindmap as they will be used. |
externalId |
string | no | Early access: as sent. |
metadata |
object | no | Early access: as sent. |
OkResponse#
| Field | Type | Required | Notes |
|---|---|---|---|
ok |
boolean | yes |
TranscriptionCreateJsonRequest#
Send uploadId (a finished chunked upload) or, with early access, audioUrl.
| Field | Type | Required | Notes |
|---|---|---|---|
uploadId |
string | no | A finished chunked upload (upl_..., see POST /api/v1/uploads) to make the job from, in place of a file. Any account. Nothing is held or charged for the upload itself; one upload makes one job. |
audioUrl |
string | no | An https link we download the recording from, instead of uploading it (for example a presigned storage link). Any account. Same size limit as an upload; up to 3 redirects; private addresses are refused. Send it in a JSON body with no file and no uploadId. |
sourceLanguage |
string | no | auto or a 2-3 letter language code. Default auto. |
targetLanguage |
string | no | Translate the transcript into this language, or none. See GET /api/v1/transcription/pricing. |
externalId |
string | no | Early access: your own reference for this job (up to 200 characters). Echoed in the job, its webhook events and its ledger rows. |
metadata |
object | no | Early access: up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Multipart forms send it as a JSON string. Echoed in the job and its webhook events. |
TranscriptionCreateRequest#
| Field | Type | Required | Notes |
|---|---|---|---|
audio |
file | no | Audio file: mp3, m4a/mp4, wav, webm, ogg, or flac (up to 200 MB). |
sourceLanguage |
string | no | auto or a 2-3 letter language code. Default auto. |
targetLanguage |
string | no | Translate the transcript into this language, or none. See GET /api/v1/transcription/pricing. |
externalId |
string | no | Early access: your own reference for this job (up to 200 characters). Echoed in the job, its webhook events and its ledger rows. |
metadata |
object | no | Early access: up to 20 keys of your own (strings, numbers, booleans; 4 KB as JSON). Multipart forms send it as a JSON string. Echoed in the job and its webhook events. |
audioUrl |
string | no | An https link we download the recording from, instead of uploading it (for example a presigned storage link). Any account. Same size limit as an upload; up to 3 redirects; private addresses are refused. Send it in a JSON body with no file and no uploadId. |
TranscriptionJob#
| Field | Type | Required | Notes |
|---|---|---|---|
_id |
string | yes | Job id. |
displayName |
string | null | no | The name the customer gave the job (null: the original name is shown). — may be null |
status |
string | yes | pending, active, and the end states completed, failed, cancelled. |
stage |
string | no | |
progress |
number | no | |
originalFilename |
string | no | |
durationSeconds |
number | no | |
sourceLanguage |
string | no | |
targetLanguage |
string | no | |
detectedLanguage |
string | null | no | may be null |
speakerCount |
integer | null | no | may be null |
translationSkipped |
boolean | no | |
sourcePreview |
string | no | First 600 characters of the transcript. Only on GET /api/v1/transcription/jobs/{id}. |
translationPreview |
string | no | First 600 characters of the translation. |
cost |
object | null | no | Price of a media job, in Fara. — may be null |
cost.faraCharged |
number | no | Fara for this job: the held amount while running, the actual charge once finished. |
cost.minutesBilled |
number | no | Billed minutes, for media jobs. |
cost.heldFara |
number | no | Fara held when the job started. |
cost.refundedFara |
number | no | Part of the hold returned after the actual charge. |
customerErrorCode |
string | null | no | Why the job failed, as a stable code. Null while the job is fine. — one of: NO_TEXT_LAYER, FILE_TOO_LARGE, TOO_MANY_PAGES, MEDIA_TOO_LONG, TOOK_TOO_LONG, PARTIAL_SECTIONS, INSUFFICIENT_CREDITS, SPEND_LIMIT_REACHED, SERVICE_BUSY, YOUTUBE_UNAVAILABLE, NO_SPEECH_FOUND, VOICE_CONSENT_REQUIRED, RETRY_LIMIT_REACHED, UNDER_REVIEW, OUTLINE_NO_MATERIAL, DOCUMENT_NO_MATERIAL, OUTLINE_EMPTY, RECOVERY_LIMIT, UNSUPPORTED_FILE_TYPE, DOCUMENT_PROTECTED, INVALID_DOCUMENT, DOCUMENT_CONVERSION_INCOMPLETE, DOCUMENT_CONVERSION_FAILED, GENERIC, null; may be null |
createdAt |
string | null | no | may be null |
updatedAt |
string | null | no | may be null |
TranscriptionJobList#
| Field | Type | Required | Notes |
|---|---|---|---|
jobs |
object[] | yes | |
jobs[]._id |
string | yes | Job id. |
jobs[].displayName |
string | null | no | The name the customer gave the job (null: the original name is shown). — may be null |
jobs[].status |
string | yes | pending, active, and the end states completed, failed, cancelled. |
jobs[].stage |
string | no | |
jobs[].progress |
number | no | |
jobs[].originalFilename |
string | no | |
jobs[].durationSeconds |
number | no | |
jobs[].sourceLanguage |
string | no | |
jobs[].targetLanguage |
string | no | |
jobs[].detectedLanguage |
string | null | no | may be null |
jobs[].speakerCount |
integer | null | no | may be null |
jobs[].translationSkipped |
boolean | no | |
jobs[].sourcePreview |
string | no | First 600 characters of the transcript. Only on GET /api/v1/transcription/jobs/{id}. |
jobs[].translationPreview |
string | no | First 600 characters of the translation. |
jobs[].cost |
object | null | no | Price of a media job, in Fara. — may be null |
jobs[].cost.faraCharged |
number | no | Fara for this job: the held amount while running, the actual charge once finished. |
jobs[].cost.minutesBilled |
number | no | Billed minutes, for media jobs. |
jobs[].cost.heldFara |
number | no | Fara held when the job started. |
jobs[].cost.refundedFara |
number | no | Part of the hold returned after the actual charge. |
jobs[].customerErrorCode |
string | null | no | Why the job failed, as a stable code. Null while the job is fine. — one of: NO_TEXT_LAYER, FILE_TOO_LARGE, TOO_MANY_PAGES, MEDIA_TOO_LONG, TOOK_TOO_LONG, PARTIAL_SECTIONS, INSUFFICIENT_CREDITS, SPEND_LIMIT_REACHED, SERVICE_BUSY, YOUTUBE_UNAVAILABLE, NO_SPEECH_FOUND, VOICE_CONSENT_REQUIRED, RETRY_LIMIT_REACHED, UNDER_REVIEW, OUTLINE_NO_MATERIAL, DOCUMENT_NO_MATERIAL, OUTLINE_EMPTY, RECOVERY_LIMIT, UNSUPPORTED_FILE_TYPE, DOCUMENT_PROTECTED, INVALID_DOCUMENT, DOCUMENT_CONVERSION_INCOMPLETE, DOCUMENT_CONVERSION_FAILED, GENERIC, null; may be null |
jobs[].createdAt |
string | null | no | may be null |
jobs[].updatedAt |
string | null | no | may be null |
TranscriptionPricing#
| Field | Type | Required | Notes |
|---|---|---|---|
faraPerMin |
number | no | |
faraPerMinWithTranslation |
number | no | |
maxDurationSeconds |
integer | no | |
audioMaxBytes |
integer | no | |
targetLanguages |
string[] | no | Allowed targetLanguage values; none means no translation. |