> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt.
> For full documentation content in one file, see https://docs.sarvam.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# Batch - Get Status

GET https://api.sarvam.ai/speech-to-text-translate/job/v1/{job_id}/status

Retrieve the current status and details of a speech to text translate bulk job, including progress and file-level information.

**Rate Limiting Best Practice:** To prevent rate limit errors and ensure optimal server performance, we recommend implementing a minimum 5-millisecond delay between consecutive status polling requests. This helps maintain system stability while still providing timely status updates.

Reference: https://docs.sarvam.ai/api-reference-docs/speech-to-text-translate/stt-translate/job/status

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: ''
  version: 1.0.0
paths:
  /speech-to-text-translate/job/v1/{job_id}/status:
    get:
      operationId: get-status
      summary: Get Speech to Text Translate Bulk Job V1 Status
      description: >-
        Retrieve the current status and details of a speech to text translate
        bulk job, including progress and file-level information.


        **Rate Limiting Best Practice:** To prevent rate limit errors and ensure
        optimal server performance, we recommend implementing a minimum
        5-millisecond delay between consecutive status polling requests. This
        helps maintain system stability while still providing timely status
        updates.
      tags:
        - subpackage_speechToTextTranslateJob
      parameters:
        - name: job_id
          in: path
          description: The unique identifier of the job
          required: true
          schema:
            type: string
        - name: api-subscription-key
          in: header
          required: true
          schema:
            type: string
        - name: api-subscription-key
          in: header
          description: >-
            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)
          required: false
          schema:
            type: string
            default: ''
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStatusResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '429':
          description: Quota Exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '503':
          description: Service Overloaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
servers:
  - url: https://api.sarvam.ai
    description: Production
components:
  schemas:
    JobState:
      type: string
      enum:
        - Accepted
        - Pending
        - Running
        - Completed
        - Failed
      title: JobState
    StorageContainerType:
      type: string
      enum:
        - Azure
        - Local
        - Google
        - Azure_V1
      title: StorageContainerType
    TaskFileDetails:
      type: object
      properties:
        file_name:
          type: string
        file_id:
          type: string
      required:
        - file_name
        - file_id
      title: TaskFileDetails
    TaskState:
      type: string
      enum:
        - Success
        - API Error
        - Internal Server Error
      title: TaskState
    TaskDetail:
      type: object
      properties:
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/TaskFileDetails'
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/TaskFileDetails'
        state:
          $ref: '#/components/schemas/TaskState'
        error_message:
          type:
            - string
            - 'null'
        exception_name:
          type:
            - string
            - 'null'
      title: TaskDetail
    JobStatusResponse:
      type: object
      properties:
        job_state:
          $ref: '#/components/schemas/JobState'
          description: Job State
        created_at:
          type: string
          description: Created At
        updated_at:
          type: string
          description: Updated At
        job_id:
          type: string
          description: Job Id
        total_files:
          type: integer
          default: 0
          description: Total Files
        successful_files_count:
          type: integer
          default: 0
          description: Success Count
        failed_files_count:
          type: integer
          default: 0
          description: Failed Count
        storage_container_type:
          $ref: '#/components/schemas/StorageContainerType'
          description: Storage Container Type
        error_message:
          type: string
          default: ''
          description: Error Message
        job_details:
          type: array
          items:
            $ref: '#/components/schemas/TaskDetail'
          description: Job details at file level.
      required:
        - job_state
        - created_at
        - updated_at
        - job_id
        - storage_container_type
      title: JobStatusResponse
    ErrorCode:
      type: string
      enum:
        - invalid_request_error
        - internal_server_error
        - unprocessable_entity_error
        - insufficient_quota_error
        - invalid_api_key_error
        - authentication_error
        - rate_limit_exceeded_error
        - not_found_error
      title: ErrorCode
    ErrorDetails:
      type: object
      properties:
        message:
          type: string
          description: Message describing the error
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: >-
            Error code for the specific error that has occurred. Refer to the
            error code documentation for more details.
        request_id:
          type: string
          default: ''
          description: 'Unique identifier for the request. Format: date_UUID4'
      required:
        - message
        - code
      title: ErrorDetails
    ErrorMessage:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetails'
          description: Error details
      required:
        - error
      title: ErrorMessage
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-subscription-key

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "job_state": "Running",
  "created_at": "2024-06-10T09:15:30Z",
  "updated_at": "2024-06-10T09:45:00Z",
  "job_id": "a3f1c9d2-7b4e-4f8a-9c2d-1e5b7f8a1234",
  "storage_container_type": "Azure",
  "total_files": 5,
  "successful_files_count": 3,
  "failed_files_count": 1,
  "error_message": "",
  "job_details": [
    {
      "inputs": [
        {
          "file_name": "meeting_recording_01.wav",
          "file_id": "file-001"
        }
      ],
      "outputs": [
        {
          "file_name": "meeting_recording_01_transcript.txt",
          "file_id": "file-001-out"
        }
      ],
      "state": "Success",
      "error_message": null,
      "exception_name": null
    },
    {
      "inputs": [
        {
          "file_name": "interview_session_02.mp3",
          "file_id": "file-002"
        }
      ],
      "outputs": [
        {
          "file_name": "interview_session_02_transcript.txt",
          "file_id": "file-002-out"
        }
      ],
      "state": "Success",
      "error_message": null,
      "exception_name": null
    },
    {
      "inputs": [
        {
          "file_name": "conference_call_03.wav",
          "file_id": "file-003"
        }
      ],
      "outputs": [
        {
          "file_name": "conference_call_03_transcript.txt",
          "file_id": "file-003-out"
        }
      ],
      "state": "API Error",
      "error_message": "Audio format not supported",
      "exception_name": "UnsupportedAudioFormatException"
    }
  ]
}
```

**SDK Code**

```typescript
import { SarvamAIClient } from "sarvamai";

async function main() {
    const client = new SarvamAIClient({
        apiSubscriptionKey: "YOUR_API_KEY_HERE",
    });
    await client.speechToTextTranslateJob.getStatus("job_id");
}
main();

```

```python
from sarvamai import SarvamAI

client = SarvamAI(
    api_subscription_key="YOUR_API_KEY_HERE",
)

client.speech_to_text_translate_job.get_status(
    job_id="job_id",
)

```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sarvam.ai/speech-to-text-translate/job/v1/job_id/status"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("api-subscription-key", "<apiSubscriptionKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.sarvam.ai/speech-to-text-translate/job/v1/job_id/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-subscription-key"] = '<apiSubscriptionKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.sarvam.ai/speech-to-text-translate/job/v1/job_id/status")
  .header("api-subscription-key", "<apiSubscriptionKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sarvam.ai/speech-to-text-translate/job/v1/job_id/status', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'api-subscription-key' => '<apiSubscriptionKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.sarvam.ai/speech-to-text-translate/job/v1/job_id/status");
var request = new RestRequest(Method.GET);
request.AddHeader("api-subscription-key", "<apiSubscriptionKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "api-subscription-key": "<apiSubscriptionKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sarvam.ai/speech-to-text-translate/job/v1/job_id/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```