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

# Create Livekit Participant Token

> Exchange a valid Ontora interview session token for a scoped LiveKit token.



## OpenAPI

````yaml /openapi.json post /v1/interview/session/{session_id}/livekit-token
openapi: 3.1.0
info:
  title: Ontora API
  description: >-
    Ontora's public API. Covers interview campaigns, transcripts, synthesis
    reports, graph queries, webhooks, and workspace management. 


    **Authentication**: endpoints accept either a Clerk JWT (`Authorization:
    Bearer <token>`) or a workspace API key (`X-API-Key: ont_...`). Workspace
    keys are managed via `/v1/api-keys`.
  version: 0.1.0
servers: []
security:
  - ClerkJWT: []
  - WorkspaceApiKey: []
tags:
  - name: interviews
    description: Campaign CRUD, lifecycle, contacts, question sets.
  - name: campaign-insights
    description: Synthesis outputs — cartography, roadmap, personas, conversations.
  - name: interview-query
    description: Graph RAG query over campaign data.
  - name: campaign-reports
    description: Versioned synthesis Reports — manual regenerate, version history.
  - name: interview-export
    description: Markdown / ZIP exports of transcripts and reports.
  - name: api-keys
    description: Manage workspace-scoped API keys for programmatic access.
  - name: webhook-endpoints
    description: Outbound webhook endpoints for automation.
  - name: booking
    description: Public self-scheduling endpoints for interview participants.
  - name: join
    description: Public QR-code / share-link self-registration for campaign participants.
  - name: workspaces
    description: Workspace and membership management.
  - name: vaults
    description: Context vault management.
paths:
  /v1/interview/session/{session_id}/livekit-token:
    post:
      tags:
        - interview-realtime
      summary: Create Livekit Participant Token
      description: >-
        Exchange a valid Ontora interview session token for a scoped LiveKit
        token.
      operationId: >-
        create_livekit_participant_token_v1_interview_session__session_id__livekit_token_post
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
        - name: token
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveKitTokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LiveKitTokenResponse:
      properties:
        room_name:
          type: string
          title: Room Name
        participant_identity:
          type: string
          title: Participant Identity
        agent_participant_identity:
          type: string
          title: Agent Participant Identity
        livekit_url:
          type: string
          title: Livekit Url
        livekit_region:
          type: string
          title: Livekit Region
        livekit_region_policy:
          type: string
          title: Livekit Region Policy
        livekit_token:
          type: string
          title: Livekit Token
        token_ttl_seconds:
          type: integer
          title: Token Ttl Seconds
        expires_at:
          type: string
          format: date-time
          title: Expires At
        can_publish_microphone:
          type: boolean
          title: Can Publish Microphone
        can_publish_screen:
          type: boolean
          title: Can Publish Screen
        can_publish_data:
          type: boolean
          title: Can Publish Data
        can_subscribe:
          type: boolean
          title: Can Subscribe
      type: object
      required:
        - room_name
        - participant_identity
        - agent_participant_identity
        - livekit_url
        - livekit_region
        - livekit_region_policy
        - livekit_token
        - token_ttl_seconds
        - expires_at
        - can_publish_microphone
        - can_publish_screen
        - can_publish_data
        - can_subscribe
      title: LiveKitTokenResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ClerkJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk-issued RS256 JWT.
    WorkspaceApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key (prefix: `ont_`).'

````