Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
UUID of the premade roleplay to use for room creation.
"550e8400-e29b-41d4-a716-446655440000"
Unique identifier for the external user. Used for user resolution:
Existing User: If a user with the same userUniqueIdentifier exists for the company, their record is used New User: If no matching user exists, an Integration user is automatically created with the provided userName and userUniqueIdentifier, associated with the company's Integration team
This ensures consistent user tracking across multiple API calls.
1
"user-123"
Name of the user who will participate in the roleplay. Used for displaying and using the user's name in the roleplay.
1
"John Doe"
Whether to record video for the roleplay session.
true: Video recording will be captured false: No video recording
Note: Audio is always recorded.
false
Response
Room created successfully. Use the returned credentials to connect to the LiveKit room.
Next Steps:
- Use the accessToken and websocketUrl to connect via LiveKit SDK
- The AI agent will automatically join the room
- Begin the roleplay