Create room
This is the only endpoint that does not require authentication.
Response
A unique identifier for the newly created room. This ID is generated using nanoid and is used for all subsequent room operations.
Get room TTL
Requires authentication via
roomId query parameter and x-auth-token cookie.Query parameters
The unique identifier of the room to check
Response
The remaining time to live in seconds. Returns
0 if the room has expired or does not exist.Delete room
Requires authentication via
roomId query parameter and x-auth-token cookie.Query parameters
The unique identifier of the room to delete
Response
Returns an empty response with status200 on success.
What gets deleted
When you delete a room, the following data is removed:- Room metadata (connected users, creation time)
- All messages in the room
- Room connection data
- Realtime channel subscriptions (all connected clients receive a
chat.destroyevent)