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

# generateParticipantAccessToken

> Calls a action at the path meetings/webrtc/rooms.js:generateParticipantAccessToken



## OpenAPI

````yaml api-reference/convex-openapi.yaml post /api/run/meetings/webrtc/rooms/generateParticipantAccessToken
openapi: 3.0.3
info:
  title: Connvo Convex API
  version: 1.0.0
  description: >-
    HTTP interface for Connvo's Convex backend, exposing vetted query, mutation,
    and action endpoints.
servers:
  - url: https://Connvo-dev.convex.cloud
    description: Dev Convex deployment
  - url: https://Connvo-staging.convex.cloud
    description: Staging Convex deployment
  - url: https://Connvo-prod.convex.cloud
    description: Prod Convex deployment
security:
  - bearerAuth: []
tags:
  - name: Users
    description: Identity, profile, and authentication operations for Connvo users.
  - name: Meetings
    description: Scheduling, managing, and retrieving meeting data.
  - name: Transcripts
    description: Endpoints for accessing call transcripts and transcription controls.
  - name: Insights
    description: AI-generated insights, summaries, and analytics derived from meetings.
  - name: Prompts
    description: Prompt management and AI conversation guidance.
  - name: Notes
    description: Collaborative meeting notes and follow-up documentation.
  - name: WebRTC
    description: Real-time communication, session signalling, and media utilities.
  - name: System
    description: General system endpoints such as health checks and diagnostics.
paths:
  /api/run/meetings/webrtc/rooms/generateParticipantAccessToken:
    post:
      tags:
        - Meetings
      summary: generateParticipantAccessToken
      description: >-
        Calls a action at the path
        meetings/webrtc/rooms.js:generateParticipantAccessToken
      operationId: postApiRunMeetingsWebrtcRoomsGenerateParticipantAccessToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Request_meetings.webrtc.rooms.generateParticipantAccessToken
            example:
              args:
                meetingId: me_active12345
                sessionId: session_host_live
        required: true
      responses:
        '200':
          description: Convex executed your request and returned a result
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response_meetings.webrtc.rooms.generateParticipantAccessToken
              example:
                status: success
                errorMessage: ''
                errorData: {}
                value:
                  token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.participant-token
                  provider: webrtc
                  roomId: room_live_9f3c2a
                  participantId: session_host_live
                  permissions:
                    canRecord: true
                    canMute: true
                    canKick: true
                    canShare: true
                  success: true
        '400':
          description: Failed operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailedResponse'
        '500':
          description: Convex Internal Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailedResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    Request_meetings.webrtc.rooms.generateParticipantAccessToken:
      type: object
      required:
        - args
      properties:
        args:
          type: object
          required:
            - meetingId
          properties:
            meetingId:
              type: string
              description: ID from table "meetings"
            sessionId:
              type: string
    Response_meetings.webrtc.rooms.generateParticipantAccessToken:
      type: object
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - success
            - error
        errorMessage:
          type: string
        errorData:
          type: object
        value:
          type: object
          required:
            - participantId
            - permissions
            - provider
            - roomId
            - success
            - token
          properties:
            participantId:
              type: string
            permissions:
              type: object
              required:
                - canKick
                - canMute
                - canRecord
                - canShare
              properties:
                canKick:
                  type: boolean
                canMute:
                  type: boolean
                canRecord:
                  type: boolean
                canShare:
                  type: boolean
            provider:
              oneOf:
                - type: string
                  enum:
                    - webrtc
                - type: string
                  enum:
                    - getstream
            roomId:
              type: string
            success:
              type: boolean
            token:
              type: string
    FailedResponse:
      type: object
      properties: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Standard user authentication token issued via WorkOS. Provide as
        `Authorization: Bearer <user-token>`.

````