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

# Get Download Status

> Get detailed status and information for a specific download job

Check the status of a specific download job and retrieve the final download URL when ready. Poll this endpoint to track progress.

<CodeGroup>
  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.videodb.io/download/download-abc123",
      headers={"x-access-token": "your_api_key"}
  )

  result = response.json()
  data = result.get('data', {})
  print(f"Status: {data.get('status')}")
  print(f"Name: {data.get('name')}")

  if data.get('status') == 'done':
      print(f"Download URL: {data.get('download_url')}")
  elif data.get('status') == 'error':
      print(f"Error: {data.get('error')}")
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
      "https://api.videodb.io/download/download-abc123",
      {
          method: "GET",
          headers: {
              "x-access-token": "your_api_key"
          }
      }
  );

  const result = await response.json();
  const data = result.data || {};
  console.log(`Status: ${data.status}`);
  console.log(`Name: ${data.name}`);

  if (data.status === 'done') {
      console.log(`Download URL: ${data.download_url}`);
  } else if (data.status === 'error') {
      console.log(`Error: ${data.error}`);
  }
  ```
</CodeGroup>

<Note>
  * Status values: `processing` (in progress), `done` (ready to download), `error` (failed)
  * Download URLs are only available when status is `done`
  * URLs expire 24 hours after generation—regenerate if needed
  * Includes metadata: creation time, filename, completion status
</Note>

<CardGroup cols={2}>
  <Card title="Create Download" icon="plus" href="/api-reference/downloads/create_download">
    Start a new download job
  </Card>

  <Card title="Update Download" icon="pen" href="/api-reference/downloads/update_download">
    Retry a failed download
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /download/{download_id}
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /download/{download_id}:
    get:
      summary: Get download status/details
      parameters:
        - name: download_id
          in: path
          required: true
          schema:
            type: string
            example: download-12345
      responses:
        '200':
          description: Download status
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/AsyncResponse'
                  - type: object
                    properties:
                      success:
                        type: boolean
                        example: true
                      data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: download-12345
                          name:
                            type: string
                            example: video_download.mp4
                          status:
                            type: string
                            enum:
                              - processing
                              - done
                              - error
                            example: done
                          created_at:
                            type: string
                            format: date-time
                          download_url:
                            type: string
                            example: https://example.com/download/video.mp4
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AsyncResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        status:
          type: string
          enum:
            - processing
            - done
            - failed
          example: processing
        data:
          type: object
          properties:
            id:
              type: string
              example: job-123
            output_url:
              type: string
              example: https://api.videodb.io/async-response/job-123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````