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

# Create Voice Token

> Create LiveKit token for voice session.



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json post /voice/tokens
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /voice/tokens:
    post:
      tags:
        - voice
      summary: Create Voice Token
      description: Create LiveKit token for voice session.
      operationId: create_voice_token_voice_tokens_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionCreate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionTokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SessionCreate:
      properties:
        agent_id:
          type: string
          format: uuid
          title: Agent Id
        session_meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Session Meta
      type: object
      required:
        - agent_id
      title: SessionCreate
      description: Session creation model.
    SessionTokenResponse:
      properties:
        room:
          type: string
          title: Room
        token:
          type: string
          title: Token
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        livekit_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Livekit Url
        workflow:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Workflow
        workflow_state:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Workflow State
      type: object
      required:
        - room
        - token
      title: SessionTokenResponse
      description: Session token response model for LiveKit room access.
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````