33 lines
1.5 KiB
YAML

/rooms/{roomId}/members/token:
post:
operationId: generateRoomMemberToken
summary: Generate room member token
description: >
Generates a token for a user to access an OpenVidu Meet room and its resources.
When using the anonymous recording secret, generated tokens only allow retrieval of room recordings.
tags:
- Internal API - Room Members
security:
- accessTokenHeader: []
parameters:
- $ref: '../../components/parameters/room-id-path.yaml'
requestBody:
$ref: '../../components/requestBodies/internal/room-member-token-request.yaml'
responses:
'200':
$ref: '../../components/responses/internal/success-generate-room-member-token.yaml'
'400':
$ref: '../../components/responses/internal/error-invalid-room-secret.yaml'
'401':
$ref: '../../components/responses/unauthorized-error.yaml'
'403':
$ref: '../../components/responses/forbidden-error.yaml'
'404':
$ref: '../../components/responses/internal/error-room-participant-not-found.yaml'
'409':
$ref: '../../components/responses/internal/error-room-closed.yaml'
'422':
$ref: '../../components/responses/validation-error.yaml'
'500':
$ref: '../../components/responses/internal-server-error.yaml'