Chat Rooms
Join and leave public or semi-public chat rooms
📄️ Join chat room
Adds the current user as a participant in a chat room. Access is validated against the room's role-based permissions via the `user_can_join()` method and `better_messages_chat_user_can_join` filter. After joining, returns the updated thread data for the chat room.
📄️ Leave chat room
Removes the current user from a chat room. Users cannot leave chat rooms that have auto_join enabled — in that case, the endpoint returns an error. After leaving, the user no longer receives messages or notifications for the room.