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

# Get Conversation Token

> Generate a LiveKit token to start a conversation with an agent. Works with or without authentication: with auth → dashboard/SDK flow (verifies agent ownership); without auth → widget/embed flow (public, credits billed to agent owner).



## OpenAPI

````yaml https://api.threetone.in/openapi.json get /v1/voiceai/conversations/token
openapi: 3.1.0
info:
  title: Threetone API Documentation
  version: 1.0.0
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/voiceai/conversations/token:
    get:
      tags:
        - Conversations
      summary: Get Conversation Token
      description: >-
        Generate a LiveKit token to start a conversation with an agent. Works
        with or without authentication: with auth → dashboard/SDK flow (verifies
        agent ownership); without auth → widget/embed flow (public, credits
        billed to agent owner).
      operationId: conversations_get_token
      parameters:
        - name: agent_id
          in: query
          required: true
          schema:
            type: string
            description: The id of the agent to start a conversation with
            title: Agent Id
          description: The id of the agent to start a conversation with
        - name: participant_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Optional participant name (authenticated requests only)
            title: Participant Name
          description: Optional participant name (authenticated requests only)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    TokenResponse:
      properties:
        token:
          type: string
          title: Token
          description: LiveKit JWT token to connect to the conversation
        livekit_url:
          type: string
          title: Livekit Url
          description: LiveKit WebSocket URL to connect to (wss://...)
      type: object
      required:
        - token
        - livekit_url
      title: TokenResponse
      description: |-
        Response model for conversation token endpoint.

        Works for both authenticated (dashboard) and public (widget) requests.
    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:
    APIKeyHeader:
      type: apiKey
      description: API key for programmatic access
      in: header
      name: x-api-key
    HTTPBearer:
      type: http
      description: JWT Bearer token for dashboard access
      scheme: bearer

````