--- title: "Leave Room" slug: "leave-room" updated: 2026-09-03T14:50:33Z published: 2026-09-03T14:50:33Z canonical: "developer.rocket.chat/leave-room" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Leave Room Post/api/v1/rooms.leave Leave a room. The following permissions are required: - `leave-c`: To leave a public room. - `leave-p`: To leave private room. ### Changelog | Version | Description | | --- | --- | | 0.72.0 | Added | Header parametersX-Auth-TokenstringRequired The `authToken` of the authenticated user. ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f X-User-IdstringRequired The `userId` of the authenticated user. ExamplerbAXPnMktTFbNpwtJ Body parametersobject roomIdstring The room ID that you want to leave. ExampleByehQjC44FwMeiLbX Responses200 OK Success ```json { "success": true } ``` object successboolean 401 Unauthorized Authorization Error ```json { "status": "error", "message": "You must be logged in to do this." } ``` object statusstring messagestring