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

# Post apiv2organizations trainingsession



## OpenAPI

````yaml https://api.osiro.com/doc post /api/v2/organizations/{orgId}/training/session
openapi: 3.0.0
info:
  title: osiro API
  version: 2.0.0
servers: []
security: []
tags:
  - name: Funnel
    description: Public funnel rendering, submission, MFA, and analytics.
  - name: Training
    description: Org-scoped sales-training catalogs, sessions, and call records.
  - name: Attribution
    description: Cross-domain PostHog identity handoff for the marketing site.
paths:
  /api/v2/organizations/{orgId}/training/session:
    post:
      tags:
        - Training
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: orgId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrainingSessionBody'
      responses:
        '200':
          description: >-
            A short-lived ElevenLabs conversation token plus the agent prompt
            built from the selected case/persona
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingSession'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: ElevenLabs is not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    TrainingSessionBody:
      type: object
      properties:
        caseId:
          type: string
          minLength: 1
        personaId:
          type: string
          minLength: 1
      required:
        - caseId
        - personaId
    TrainingSession:
      type: object
      properties:
        token:
          type: string
        systemPrompt:
          type: string
        firstMessage:
          type: string
        trainingCallId:
          type: string
          format: uuid
      required:
        - token
        - systemPrompt
        - firstMessage
        - trainingCallId
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error

````