> 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.

# Export Status

GET https://api.sarvam.ai/dubbing/jobs/{job_id}/export-status

Retrieve the per-output export status for a dubbing job. Returns `data.exports[]`, one entry per `(target_language, export_type)` combination, each with its own `status` and signed `download_url`.

**This is the source of truth for downloads.** Before downloading, confirm an entry's `status == "completed"` and use its `download_url`.

> Signed download URLs are time-limited (~24h). Re-fetch this endpoint for a fresh URL rather than caching long-term.

Reference: https://docs.sarvam.ai/api-reference/creative-agents-dubbing/export-status

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: ''
  version: 1.0.0
paths:
  /jobs/{job_id}/export-status:
    get:
      operationId: get-export-status
      summary: Get Dubbing Export Status
      description: >-
        Retrieve the per-output export status for a dubbing job. Returns
        `data.exports[]`, one entry per `(target_language, export_type)`
        combination, each with its own `status` and signed `download_url`.


        **This is the source of truth for downloads.** Before downloading,
        confirm an entry's `status == "completed"` and use its `download_url`.


        > Signed download URLs are time-limited (~24h). Re-fetch this endpoint
        for a fresh URL rather than caching long-term.
      tags:
        - dubbing
      parameters:
        - name: job_id
          in: path
          description: The `job_id` returned by `POST /jobs`.
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Number of recent export entries to return (1–100).
          required: false
          schema:
            type: integer
            default: 5
        - name: api-subscription-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sarvam_Creative_API_DubbingExportStatusResponse
        '401':
          description: Unauthorized. Send a valid `api-subscription-key`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
servers:
  - url: https://api.sarvam.ai/dubbing
    description: Creative
components:
  schemas:
    Sarvam_Creative_API_DubbingExportType:
      type: string
      enum:
        - video
        - audio
        - mp3
        - srt
      description: >-
        Export format. `audio` is uncompressed `.wav`; `mp3` is the same track
        re-encoded.
      title: Sarvam_Creative_API_DubbingExportType
    Sarvam_Creative_API_DubbingExportItemStatus:
      type: string
      enum:
        - in_progress
        - completed
        - failed
      title: Sarvam_Creative_API_DubbingExportItemStatus
    Sarvam_Creative_API_DubbingExportItem:
      type: object
      properties:
        id:
          type: string
          description: Export record ID.
        export_type:
          $ref: '#/components/schemas/Sarvam_Creative_API_DubbingExportType'
        target_language:
          type: string
          description: The target language (BCP-47) of this export.
        status:
          $ref: '#/components/schemas/Sarvam_Creative_API_DubbingExportItemStatus'
        created_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the export was triggered.
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the export finished (if completed).
        is_stale:
          type: boolean
          default: false
          description: >-
            True if translate chunks for this language were modified after the
            export completed, so the output no longer reflects the latest edits.
        download_url:
          type:
            - string
            - 'null'
          description: >-
            Signed, time-limited (~24h) download URL. Present once `status` is
            `completed`.
      title: Sarvam_Creative_API_DubbingExportItem
    Sarvam_Creative_API_DubbingExportStatusData:
      type: object
      properties:
        exports:
          type: array
          items:
            $ref: '#/components/schemas/Sarvam_Creative_API_DubbingExportItem'
          description: One entry per (target_language, export_type).
      title: Sarvam_Creative_API_DubbingExportStatusData
    Sarvam_Creative_API_DubbingExportStatusResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status, e.g. `success`.
        message:
          type: string
        data:
          $ref: '#/components/schemas/Sarvam_Creative_API_DubbingExportStatusData'
      title: Sarvam_Creative_API_DubbingExportStatusResponse
    Sarvam_Model_API_ErrorCode:
      type: string
      enum:
        - invalid_request_error
        - internal_server_error
        - unprocessable_entity_error
        - insufficient_quota_error
        - invalid_api_key_error
        - authentication_error
        - not_found_error
        - rate_limit_exceeded_error
      title: Sarvam_Model_API_ErrorCode
    Sarvam_Model_API_ErrorDetails:
      type: object
      properties:
        request_id:
          type:
            - string
            - 'null'
        message:
          type: string
          description: Message describing the error
        code:
          $ref: '#/components/schemas/Sarvam_Model_API_ErrorCode'
          description: >-
            Error code for the specific error that has occurred. Refer to the
            error code documentation for more details.
      required:
        - request_id
        - message
        - code
      title: Sarvam_Model_API_ErrorDetails
    Sarvam_Model_API_ErrorMessage:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Sarvam_Model_API_ErrorDetails'
          description: Error details
      required:
        - error
      title: Sarvam_Model_API_ErrorMessage
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-subscription-key

```

## Examples



**Response**

```json
{
  "status": "success",
  "message": "Export statuses retrieved successfully",
  "data": {
    "exports": [
      {
        "id": "exp_1a2b3c4d",
        "export_type": "video",
        "target_language": "hi-IN",
        "status": "completed",
        "is_stale": false,
        "download_url": "https://api.sarvam.ai/dubbing/exports/dub_5cb7faa6/hi-IN/video?sig=..."
      },
      {
        "id": "exp_5e6f7g8h",
        "export_type": "srt",
        "target_language": "hi-IN",
        "status": "completed",
        "is_stale": false,
        "download_url": "https://api.sarvam.ai/dubbing/exports/dub_5cb7faa6/hi-IN/srt?sig=..."
      }
    ]
  }
}
```

**SDK Code**

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

async function main() {
    const client = new SarvamAIClient({
        apiSubscriptionKey: "YOUR_API_KEY_HERE",
    });
    await client.dubbing.getExportStatus("dub_5cb7faa6", {
        limit: 5,
    });
}
main();

```

```python
from sarvamai import SarvamAI

client = SarvamAI(
    api_subscription_key="YOUR_API_KEY_HERE",
)

client.dubbing.get_export_status(
    job_id="dub_5cb7faa6",
    limit=5,
)

```

```go
package main

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

func main() {

	url := "https://api.sarvam.ai/dubbing/jobs/dub_5cb7faa6/export-status?limit=5"

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

	req.Header.Add("api-subscription-key", "<apiSubscriptionKey>")

	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/dubbing/jobs/dub_5cb7faa6/export-status?limit=5")

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

request = Net::HTTP::Get.new(url)
request["api-subscription-key"] = '<apiSubscriptionKey>'

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/dubbing/jobs/dub_5cb7faa6/export-status?limit=5")
  .header("api-subscription-key", "<apiSubscriptionKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sarvam.ai/dubbing/jobs/dub_5cb7faa6/export-status?limit=5', [
  'headers' => [
    'api-subscription-key' => '<apiSubscriptionKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.sarvam.ai/dubbing/jobs/dub_5cb7faa6/export-status?limit=5");
var request = new RestRequest(Method.GET);
request.AddHeader("api-subscription-key", "<apiSubscriptionKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["api-subscription-key": "<apiSubscriptionKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sarvam.ai/dubbing/jobs/dub_5cb7faa6/export-status?limit=5")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```