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

# Create Simli Auto Session Token

> A session token for Simli Auto, minted on your server with your API key so the key never reaches the page. Carrying the session's `request` (the fields of POST /auto/start/configurable's body), it is the websocket start on its own: the page sends `{"sessionToken": ...}` as the /auto/webrtc/{transport} websocket's first message, and the session is the one minted. Without one it starts a saved agent's session, sent with the agent's id as GET /auto/start/{agent_id} takes them. `expiryStamp` (Unix seconds) makes it short-lived; `originAllowList` names the pages that may start with it. A key and a face are remembered for the mints that follow, so a repeat mint waits on nothing but the sealing.



## OpenAPI

````yaml https://api.simli.ai/openapi.yaml post /auto/token
openapi: 3.1.0
info:
  title: Simli
  version: 1.0.0
servers:
  - url: https://api.simli.ai/
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /auto/token:
    post:
      summary: Create Simli Auto Session Token
      description: >-
        A session token for Simli Auto, minted on your server with your API key
        so the key never reaches the page. Carrying the session's `request` (the
        fields of POST /auto/start/configurable's body), it is the websocket
        start on its own: the page sends `{"sessionToken": ...}` as the
        /auto/webrtc/{transport} websocket's first message, and the session is
        the one minted. Without one it starts a saved agent's session, sent with
        the agent's id as GET /auto/start/{agent_id} takes them. `expiryStamp`
        (Unix seconds) makes it short-lived; `originAllowList` names the pages
        that may start with it. A key and a face are remembered for the mints
        that follow, so a repeat mint waits on nothing but the sealing.
      operationId: createPipecatSessionToken_auto_token_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_token:
                    type: string
                  warnings:
                    type: array
                    items:
                      type: string
                    description: >-
                      Starting camera fields outside their supported range, and
                      background_id / foreground_id dropped as not your
                      account's (the avatar's own is used). The token is minted
                      regardless.
                  model:
                    anyOf:
                      - type: string
                        enum:
                          - trinity2
                          - trinity1
                      - type: 'null'
                    description: >-
                      The face's generation, for a token carrying its request:
                      connect the websocket with `?model=` set to it, which
                      routes the start to a node serving the face.
        '403':
          description: >-
            The face is private and belongs to another account. A face can be
            used by the account that created it, and, when it is public, by any
            account that has its face ID.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: FACE_NOT_ALLOWED
                  reason:
                    type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
components:
  schemas:
    TokenRequest:
      description: >-
        What a Simli Auto session token seals. Either the session's own
        `request`, for the websocket start, or what a saved agent's session
        starts with: the keys, the framing (agents store none of their own) and
        the transcript flag, the agent named at the start.
      properties:
        expiryStamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expirystamp
          default: -1
          description: >-
            When the token stops starting sessions, in Unix seconds; -1 for
            never. Set it for a short-lived token.
        simliAPIKey:
          type: string
          title: Simliapikey
          default: ''
          description: >-
            The API key the session runs on. Leave it out for the
            x-simli-api-key header's.
        llmAPIKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Llmapikey
          default: ''
        ttsAPIKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Ttsapikey
          default: ''
        createTranscript:
          type: boolean
          title: Createtranscript
          default: false
        originAllowList:
          anyOf:
            - items:
                type: string
              type: array
              uniqueItems: true
            - type: 'null'
          title: Originallowlist
          default: []
          description: >-
            The pages that may start sessions with the token, by host, checked
            against the request's Origin. Leave it out for any.
        request:
          anyOf:
            - $ref: '#/components/schemas/ConfigurableSessionRequest'
            - type: 'null'
          description: >-
            The session the token starts on the websocket, as POST
            /auto/start/configurable takes it, carried exactly as set. A start
            with it names no agent, and the request's own keys and framing
            apply, not the token's.
        streaming_width:
          type: integer
          title: Streaming Width
          default: 768
          minimum: 512
          description: >-
            Width of the streamed video in pixels, Trinity-2 faces only (the
            others keep their own frame size). At least 512, and with
            streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas
            larger than the avatar's frame is padded with its background; a
            smaller one crops a window out of it.
        streaming_height:
          type: integer
          title: Streaming Height
          default: 768
          minimum: 512
          description: Height of the streamed video in pixels. See streaming_width.
        avatar_position_x:
          type: number
          title: Avatar Position X
          default: 0.5
          minimum: 0
          maximum: 1
          description: >-
            Where the avatar sits across the canvas, from 0 (left) to 1 (right).
            Trinity-2 only.
        avatar_position_y:
          type: number
          title: Avatar Position Y
          default: 1
          minimum: 0
          maximum: 1
          description: >-
            Where the avatar sits down the canvas, from 0 (top) to 1 (bottom).
            Trinity-2 only.
        camera:
          anyOf:
            - $ref: '#/components/schemas/CameraSetting'
            - type: 'null'
          description: >-
            The camera the session starts with, on top of the avatar's own
            framing. Trinity-2 only. Leave it out to keep the avatar's framing.
            A streaming session can move it afterwards with CAM_ messages.
        background_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Background Id
          description: >-
            One of your uploaded backgrounds, by the id POST /assets/backgrounds
            returned, to show behind the avatar, cropped to fill the canvas.
            Trinity-2 only. Leave it out for the avatar's own. An id that is not
            one of your account's is dropped with a warning, and the session
            uses the avatar's own. An image is not accepted: upload it first.
            The agent's session starts with it: agents store none of their own.
            Your app can change it in the session by sending the room an app
            message {"type": "simli-background", "id": "<background id>"}.
        foreground_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Foreground Id
          description: >-
            One of your uploaded foregrounds, by the id POST /assets/foregrounds
            returned, laid over the avatar through its transparency and cropped
            to fill the canvas. Trinity-2 only; otherwise as background_id. Your
            app can change it with {"type": "simli-foreground", "id":
            "<foreground id>"}.
      type: object
      title: TokenRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ConfigurableSessionRequest:
      properties:
        faceId:
          type: string
          title: Faceid
          default: 14c60d62-6ebf-424d-b626-1f4f91c33b04
        ttsProvider:
          allOf:
            - $ref: '#/components/schemas/TTS_Provider'
          default: Inworld
        ttsAPIKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Ttsapikey
        ttsModel:
          type: string
          title: Ttsmodel
          default: inworld-tts-2
          description: >-
            Defaults to Inworld's model; with ttsProvider Cartesia, to
            sonic-turbo-2025-03-07.
        voiceId:
          type: string
          title: Voiceid
          default: Ashley
          description: >-
            The voice's ID at the voice provider (Inworld voices go by name).
            Defaults to Inworld's Ashley; with ttsProvider Cartesia, to
            a167e0f3-df7e-4d52-a9c3-f949145efdab.
        systemPrompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Systemprompt
          default: >-
            You are Chatbot, a friendly, helpful robot. Your goal is to
            demonstrate your capabilities in a succinct way. Your output will be
            converted to audio so don't include special characters in your
            answers. Respond to what the user said in a creative and helpful
            way, but keep your responses brief.
        firstMessage:
          anyOf:
            - type: string
            - type: 'null'
          title: Firstmessage
        introAnimation:
          anyOf:
            - $ref: '#/components/schemas/AnimationId'
            - type: 'null'
          description: >-
            An animation the avatar plays as it opens the session, when the user
            joins (with firstMessage, if there is one). Trinity-2 faces only;
            the others ignore it. Leave it out for no animation.
        maxSessionLength:
          type: integer
          title: Maxsessionlength
          default: 3600
        maxIdleTime:
          type: integer
          title: Maxidletime
          default: 300
        language:
          type: string
          title: Language
          default: en
        customLLMConfig:
          anyOf:
            - $ref: '#/components/schemas/CustomLLMConfig'
            - type: 'null'
        llmConfig:
          allOf:
            - $ref: '#/components/schemas/LLMConfig'
          default:
            model: gpt-6-luna
            provider: OpenAI
        createTranscript:
          type: boolean
          title: Createtranscript
          default: false
        model:
          allOf:
            - $ref: '#/components/schemas/SimliModels'
          default: fasttalk
        streaming_width:
          type: integer
          title: Streaming Width
          default: 768
          minimum: 512
          description: >-
            Width of the streamed video in pixels, Trinity-2 faces only (the
            others keep their own frame size). At least 512, and with
            streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas
            larger than the avatar's frame is padded with its background; a
            smaller one crops a window out of it.
        streaming_height:
          type: integer
          title: Streaming Height
          default: 768
          minimum: 512
          description: Height of the streamed video in pixels. See streaming_width.
        avatar_position_x:
          type: number
          title: Avatar Position X
          default: 0.5
          minimum: 0
          maximum: 1
          description: >-
            Where the avatar sits across the canvas, from 0 (left) to 1 (right).
            Trinity-2 only.
        avatar_position_y:
          type: number
          title: Avatar Position Y
          default: 1
          minimum: 0
          maximum: 1
          description: >-
            Where the avatar sits down the canvas, from 0 (top) to 1 (bottom).
            Trinity-2 only.
        camera:
          anyOf:
            - $ref: '#/components/schemas/CameraSetting'
            - type: 'null'
          description: >-
            The camera the session starts with, on top of the avatar's own
            framing. Trinity-2 only. Leave it out to keep the avatar's framing.
            A streaming session can move it afterwards with CAM_ messages.
        background_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Background Id
          description: >-
            One of your uploaded backgrounds, by the id POST /assets/backgrounds
            returned, to show behind the avatar, cropped to fill the canvas.
            Trinity-2 only. Leave it out for the avatar's own. An id that is not
            one of your account's is dropped with a warning, and the session
            uses the avatar's own. An image is not accepted: upload it first.
            Your app can change it in the session by sending the room an app
            message {"type": "simli-background", "id": "<background id>"}.
        foreground_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Foreground Id
          description: >-
            One of your uploaded foregrounds, by the id POST /assets/foregrounds
            returned, laid over the avatar through its transparency and cropped
            to fill the canvas. Trinity-2 only; otherwise as background_id. Your
            app can change it with {"type": "simli-foreground", "id":
            "<foreground id>"}.
      type: object
      title: ConfigurableSessionRequest
    CameraSetting:
      type: object
      title: CameraSetting
      description: >-
        Camera offsets on top of the avatar's own framing. Every field is
        optional and neutral when left out. A value outside its supported range
        is still applied, and the response lists a warning for it; NaN and
        infinity are a 422.
      properties:
        pos_x_off:
          type: number
          default: 0
          description: >-
            Moves the avatar right, in half canvas widths. Supported range -10
            to 10.
        pos_y_off:
          type: number
          default: 0
          description: >-
            Moves the avatar down, in half canvas heights. Supported range -10
            to 10.
        pos_z_off:
          type: number
          default: 0
          description: >-
            Metres the camera backs away from the avatar (negative moves in).
            Supported range -5 to 5.
        rot_x_off:
          type: number
          default: 0
          description: Degrees the camera tilts up (pitch). Supported range -180 to 180.
        rot_y_off:
          type: number
          default: 0
          description: Degrees the camera pans right (yaw). Supported range -180 to 180.
        rot_z_off:
          type: number
          default: 0
          description: Degrees the camera rolls clockwise. Supported range -180 to 180.
        zoom:
          type: number
          default: 1
          description: >-
            Multiplies the avatar's zoom; 1 is no change. Supported range above
            0, up to 4.
        orbit_x_off:
          type: number
          default: 0
          description: >-
            Degrees the camera orbits up over the avatar's head (elevation).
            Supported range -80 to 80.
        orbit_y_off:
          type: number
          default: 0
          description: >-
            Degrees the camera orbits round to its right (azimuth). Supported
            range -180 to 180.
    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
    TTS_Provider:
      type: string
      enum:
        - ElevenLabs
        - Cartesia
        - Inworld
        - User
      title: TTS_Provider
    AnimationId:
      type: string
      description: >-
        An animation clip a Trinity-2 avatar can play, by the same ID everywhere
        animations are named.
      enum:
        - g003_wave_goodbye_solo
        - speaking_hands_explaining
        - wave
      title: AnimationId
    CustomLLMConfig:
      properties:
        model:
          type: string
          title: Model
        baseURL:
          type: string
          title: Baseurl
        llmAPIKey:
          type: string
          title: Llmapikey
      type: object
      required:
        - model
        - baseURL
        - llmAPIKey
      title: CustomLLMConfig
    LLMConfig:
      properties:
        model:
          anyOf:
            - $ref: '#/components/schemas/OpenAI_Models'
            - $ref: '#/components/schemas/Google_Models'
            - type: string
          title: Model
          default: gpt-6-luna
        provider:
          allOf:
            - $ref: '#/components/schemas/LLM_Provider'
          default: OpenAI
        apiKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Apikey
        baseURL:
          anyOf:
            - type: string
            - type: 'null'
          title: Baseurl
      type: object
      title: LLMConfig
    SimliModels:
      type: string
      enum:
        - fasttalk
      title: SimliModels
    OpenAI_Models:
      type: string
      description: >-
        gpt-realtime-2.1-mini and gpt-live-1 are speech to speech: they listen
        and speak themselves, so the TTS settings don't apply. The older gpt-4o
        and gpt-4.1 models are still accepted for existing integrations.
      enum:
        - gpt-6-luna
        - gpt-realtime-2.1-mini
        - gpt-live-1
      title: OpenAI_Models
    Google_Models:
      type: string
      description: >-
        gemini-3.8-live is speech to speech over Google's Live API. Gemini 2.5
        and older are retired: they're still accepted, and run on
        gemini-3.8-flash.
      enum:
        - gemini-3.8-flash
        - gemini-3.8-live
      title: Google_Models
    LLM_Provider:
      type: string
      enum:
        - OpenAI
        - Google
        - User
      title: LLM_Provider
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-simli-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.