Logout Other Clients

HTTP MethodURLRequires Auth

POST

/api/v1/users.logoutOtherClients

Example Call

curl --location --request POST http://localhost:3000/api/v1/users.logoutOtherClients\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

Example Response

Success

{
    "token": "SnS70r0VkngGFrSbxVK-pdwFMEzhefcjQgdnXaPeAaq",
    "tokenExpires": "2021-12-27T14:33:09.851Z",
    "success": true
}

Errors

The following error can occur.

  • Authorization: Requires an authentication token for the request to be made.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Last updated

Rocket.Chat versions receive support for six months after release.