Get Liveblocks Token
Get a Liveblocks access token for one or more rooms.
This endpoint accepts a list of room_ids and returns a Liveblocks access token for the authenticated user.
Each room_id must follow the pattern: {environment}:v1:group:{group_id}:deal:{deal_id}
If an empty list is provided, issues a general Liveblocks user token with no room-specific permissions.
If any room is inaccessible, the entire request fails (all-or-nothing).
Returns:
LiveblocksAccessResponse: Contains the Liveblocks access token
Raises:
HTTPException: 422 if any room_id pattern is invalid
HTTPException: 404 if any room is not accessible to the user
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
room_ids
List of Liveblocks room IDs to authorize access to. Empty list issues a general user token. All rooms must be accessible or the request will fail.
Response
Successful Response
token

