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

# Add Transcript By Room

> Add a transcript to a session using room name.



## OpenAPI

````yaml /openapi.json post /api/sessions/by-room/{room_name}/transcripts
openapi: 3.1.0
info:
  title: Nenyax API
  description: Backend API for Nenyax Voice Agent Platform
  version: 0.1.0
servers:
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /api/sessions/by-room/{room_name}/transcripts:
    post:
      tags:
        - Sessions
      summary: Add Transcript By Room
      description: Add a transcript to a session using room name.
      operationId: add_transcript_by_room_api_sessions_by_room__room_name__transcripts_post
      parameters:
        - name: room_name
          in: path
          required: true
          schema:
            type: string
            title: Room Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TranscriptCreateByRoom'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscriptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TranscriptCreateByRoom:
      properties:
        content:
          type: string
          title: Content
        speaker:
          $ref: '#/components/schemas/TranscriptSpeaker'
      type: object
      required:
        - content
        - speaker
      title: TranscriptCreateByRoom
      description: >-
        Transcript creation schema when using room name (session_id derived from
        room).
    TranscriptResponse:
      properties:
        content:
          type: string
          title: Content
        speaker:
          $ref: '#/components/schemas/TranscriptSpeaker'
        id:
          type: string
          title: Id
        session_id:
          type: string
          title: Session Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - content
        - speaker
        - id
        - session_id
        - timestamp
      title: TranscriptResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TranscriptSpeaker:
      type: string
      enum:
        - USER
        - AGENT
      title: TranscriptSpeaker
    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

````