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

# Get session downloads URL



## OpenAPI

````yaml /openapi.json GET /api/session/{id}/downloads-url
openapi: 3.0.1
info:
  title: Hyperbrowser API
  version: 1.0.0
servers:
  - url: https://api.hyperbrowser.ai
    description: Production server
security: []
paths:
  /api/session/{id}/downloads-url:
    get:
      summary: Get session downloads URL
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Session downloads URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSessionDownloadsUrlResponse'
        '404':
          description: Session not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: javascript
          label: Get downloads URL
          source: |-
            import { Hyperbrowser } from '@hyperbrowser/sdk';

            const client = new Hyperbrowser({ apiKey: 'your-api-key' });

            await client.sessions.getDownloadsURL('session-id');
        - lang: python
          label: Get downloads URL
          source: |-
            from hyperbrowser import Hyperbrowser

            client = Hyperbrowser(api_key='your-api-key')

            client.sessions.get_downloads_url('session-id')
components:
  schemas:
    GetSessionDownloadsUrlResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/DownloadsStatus'
        downloadsUrl:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
      required:
        - status
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
    DownloadsStatus:
      type: string
      enum:
        - not_enabled
        - pending
        - in_progress
        - completed
        - failed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````