Rooms
End a room and disconnect all participants
Authorization
tenant-api-key x-api-key<token>
Tenant API key (backend only — never expose to a browser)
In: header
Path Parameters
id*string
Room CUID
Response Body
application/json
curl -X POST "https://example.com/api/v1/rooms/string/end"{ "id": "string", "tenantId": "string", "name": "string", "slug": "string", "livekitRoomName": "string", "type": "INSTANT", "maxParticipants": 0, "enableRecording": true, "enableChat": true, "enableScreenShare": true, "enableWaitingRoom": true, "enableE2EE": true, "enableAiFeatures": true, "allowPublicJoin": true, "recordingPreset": "string", "isLocked": true, "autoRecord": true, "status": "WAITING", "scheduledAt": {}, "startedAt": {}, "autoEndAt": {}, "endedAt": {}, "duration": {}, "livekitSid": {}, "activeParticipants": 0, "reopenCount": 0, "createdByExternalId": "string", "externalId": {}, "externalType": {}, "externalMetadata": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "participants": [ { "id": "string", "roomId": "string", "externalUserId": "string", "displayName": "string", "avatarUrl": {}, "livekitIdentity": "string", "livekitSid": {}, "role": "HOST", "canPublish": true, "canSubscribe": true, "canPublishData": true, "canScreenShare": true, "canRecord": true, "isApproved": true, "approvedBy": {}, "connectionState": "PENDING", "joinedAt": {}, "leftAt": {}, "duration": {}, "rejoinCount": 0, "externalRole": {}, "externalMetadata": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]}