Links
Comment on page

Logout

Invalidate your REST API authentication token.
HTTP Method
URL
Requires Auth
POST
/api/v1/logout
yes

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
-X POST http://localhost:3000/api/v1/logout

Example Response

{
"status": "success",
"data": {
"message": "You've been logged out!"
}
}
Last modified 5d ago
Deprecation for cloud services and apps is now extended to November 20, 2023. Rocket.Chat versions receive support for six months after release.