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

# Create Session Token

> Create a temporary token for capture session authentication

Create a temporary authentication token for capture sessions. Use this to generate short-lived tokens for client-side SDK authentication without exposing your API key.

<Note>
  * Tokens are short-lived and expire after the specified duration (default: 24 hours)
  * `user_id` identifies the end user for partner tracking
  * Use these tokens in client-side applications instead of your main API key
</Note>

<CardGroup cols={2}>
  <Card title="Create Session" icon="plus" href="/api-reference/capture/create_session">
    Create a capture session
  </Card>

  <Card title="Privacy Controls" icon="shield" href="/pages/ingest/capture-sdks/privacy-controls">
    Capture privacy controls
  </Card>
</CardGroup>


## OpenAPI

````yaml POST /capture/session/token
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:
  /capture/session/token:
    post:
      tags:
        - Capture
      summary: Create capture session token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: string
                  description: End user identifier for partner tracking
                  example: user-123
                expires_in:
                  type: integer
                  description: Token validity in seconds
                  default: 86400
                  example: 86400
      responses:
        '200':
          description: Session token created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      token:
                        type: string
                        example: st-xxx
                      expires_at:
                        type: number
                        example: 1700000000
                      expires_in:
                        type: integer
                        example: 86400
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````