Batch - Download Results

View as Markdown
Generate presigned download URLs for the translated transcription output files of a completed speech to text translate bulk job. **Required body fields:** `job_id` and `files` (array of output filenames such as `"0.json"`). Obtain filenames from the job status response after the job completes. **Method:** POST only (GET returns 405).

Authentication

api-subscription-keystring
API Key authentication via header

Headers

api-subscription-keystringOptionalDefaults to
Your unique subscription key for authenticating requests to the Sarvam AI Speech-to-Text API. [Here are the steps to get your api key](https://docs.sarvam.ai/api-reference-docs/authentication#obtaining-your-api-subscription-key)

Query parameters

ptu_idinteger or nullOptional

Request

This endpoint expects an object.
job_idstringRequired
UUID of the bulk job returned from job initiation.
fileslist of stringsRequired

Required. Output filenames to download (e.g. “0.json”). Get these from the job status response: job_details[].outputs[].file_name after the job completes.

Response

Successful Response
job_idstring
job_stateenum
download_urlsmap from strings to objects
storage_container_typeenum

Errors

400
Bad Request Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error