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

# Export RTStream

> Export an RTStream recording as a VideoDB video asset

Export a recording from a real-time stream as a VideoDB video asset. This creates a standard video that can be indexed, searched, and edited.

<Note>
  * The exported video gets a standard video ID (`m-` prefix)
  * Includes stream URL and player URL for immediate playback
  * The recording must exist (stream must have `store` enabled or have recorded data)
</Note>

<CardGroup cols={2}>
  <Card title="Get Video" icon="video" href="/api-reference/videos/get_video">
    Access the exported video
  </Card>

  <Card title="Streams & Exports Guide" icon="download" href="/pages/act/output-and-delivery/streams-and-exports">
    Learn about exports
  </Card>
</CardGroup>


## OpenAPI

````yaml POST /rtstream/{stream_id}/export
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:
  /rtstream/{stream_id}/export:
    post:
      tags:
        - RTStream
      summary: Export RTStream recording as VideoDB asset
      parameters:
        - name: stream_id
          in: path
          required: true
          schema:
            type: string
            example: rts-12345
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  example: Exported Recording
      responses:
        '200':
          description: Recording exported
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      video_id:
                        type: string
                        example: m-12345
                      name:
                        type: string
                        example: Exported Recording
                      stream_url:
                        type: string
                        example: https://stream.videodb.io/v/12345
                      player_url:
                        type: string
                        example: https://console.videodb.io/player/12345
                      duration:
                        type: number
                        example: 123.45
        '400':
          description: No recordings available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
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)

````