> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorstudio.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Download batch results

> Stream all results for a batch as a downloadable NDJSON or JSON file.

Downloads all results for a batch as a stream.

## Query params

* `status` (optional)
* `format` (default: `ndjson`): `ndjson` or `json`
* `raw` (default: `false`): return raw per-job records instead of merged per-file results
* `chunks` (optional bool): include chunk payloads in merged output
* `speech_information` (optional bool): include segment-level speech information in merged output

## Example (NDJSON export)

```bash theme={"system"}
curl -L -o "batch_results.ndjson" \
  "https://api.soket.ai/transcribe/download/batch/$BATCH_ID?format=ndjson" \
  -H "Authorization: Bearer $JWT_TOKEN"
```

## Example (JSON export with filter)

```bash theme={"system"}
curl -L -o "batch_completed.json" \
  "https://api.soket.ai/transcribe/download/batch/$BATCH_ID?status=completed&format=json" \
  -H "Authorization: Bearer $JWT_TOKEN"
```


## OpenAPI

````yaml GET /download/batch/{batch_id}
openapi: 3.0.3
info:
  title: Dhrith ASR API
  version: 1.0.0
  description: >-
    Upload audio, submit batches, track progress, and fetch merged transcription
    results.
servers:
  - url: https://api.soket.ai/transcribe
    description: Batch transcription, status, results, and download
  - url: https://api.soket.ai
    description: File upload and management
security:
  - bearerAuth: []
paths:
  /download/batch/{batch_id}:
    get:
      summary: Download batch results
      description: Stream all results for a batch as a downloadable NDJSON or JSON file.
      operationId: downloadBatchResults
      parameters:
        - name: batch_id
          in: path
          required: true
          schema:
            type: string
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - completed
              - failed
              - processing
        - name: format
          in: query
          required: false
          schema:
            type: string
            enum:
              - ndjson
              - json
            default: ndjson
        - name: raw
          in: query
          required: false
          schema:
            type: boolean
            default: false
        - name: chunks
          in: query
          required: false
          schema:
            type: boolean
        - name: speech_information
          in: query
          required: false
          schema:
            type: boolean
          description: Include segment-level speech information in merged output
      responses:
        '200':
          description: Download response
          content:
            application/x-ndjson:
              schema:
                type: string
            application/json:
              schema:
                type: array
                items:
                  type: object
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Batch not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        detail:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````