> ## 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 Async Response

> Retrieve results from asynchronous operations

Retrieves the results of long-running asynchronous operations such as transcoding, processing, or indexing. Use this endpoint to poll the status and final results of async requests that were initiated with a callback or that return a response ID.

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

  response_id = "async-response-id-123"

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

  result = response.json()
  print(f"Status: {result.get('status')}")
  print(f"Result: {result.get('result')}")
  ```

  ```javascript Node.js theme={null}
  const responseId = "async-response-id-123";

  const response = await fetch(
    `https://api.videodb.io/async-response/${responseId}`,
    {
      method: "GET",
      headers: {
        "x-access-token": "your_api_key"
      }
    }
  );

  const result = await response.json();
  console.log("Status:", result.status);
  console.log("Result:", result.result);
  ```
</CodeGroup>

<Note>
  * `response_id` is returned by async operations and included in the URL path
  * Check the `status` field to determine if processing is complete
  * Results are available once status is "completed" or "done"
  * Typical status values: "pending", "processing", "completed", "failed"
</Note>

<CardGroup cols={2}>
  <Card title="Health Check" icon="heart-pulse" href="/api-reference/utilities/health_check">
    Verify API status
  </Card>

  <Card title="Chat Completions" icon="message-circle" href="/api-reference/utilities/create_chat">
    Generate AI chat responses
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /async-response/{response_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:
  /async-response/{response_id}:
    get:
      summary: Get async operation result
      parameters:
        - name: response_id
          in: path
          required: true
          schema:
            type: string
            example: job-12345
      responses:
        '200':
          description: Operation result
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  status:
                    type: string
                    enum:
                      - processing
                      - done
                      - failed
                    example: done
                  data:
                    type: object
                    description: Result data varies by operation type
        '404':
          description: Response not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          example: Error message
        error_code:
          type: string
          example: ERROR_CODE
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````