Logout User

POST {{URL}}/v1/users/logout

Use the /v1/users/logout endpoint to log out of the WhatsApp Business API Client. Logging out revokes the authentication token.

Before You Start

  • Logging out of the WhatsApp Business API Client explicitly revokes the authentication token sent with the request —generating an authentication token is discussed in Login and Authentication. Any other tokens associated with the same username remain valid.

  • If you want to log a user out or revoke the user's token, use the DELETE /v1/users ( Delete User ) endpoint instead. This action deletes the user from the system.

HTTP Response Code

Code Result
200 OK Success — The request was validated and the user is logged out of the account.
401 Unauthorized Error — The request was not validated and the user is not logged out of the account. An error code and information will present possible reasons for the error, such as invalid credentials.

HEADERS

| Key | Datatype | Required | Description | | Content-Type | string | | | | Authorization | string | | |

RESPONSES

status: OK

{"meta":{"api_status":"stable","version":"v2.45.1"}}