Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

logout #

Revokes the provided authentication token.

If there were any, real-time subscriptions are cancelled.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_logout[?global]
Method: POST
Headers: Authorization: "Bearer <authentication token>"

Other protocols #

Copied to clipboard!
{
  "controller": "auth",
  "action": "logout",
  "jwt": "<authentication token>",
  "global": "<true|false>"
}

Arguments #

  • jwt: valid authentication token (for the HTTP protocol, the token is to be passed to the Authorization header instead)

Optional: #

  • global: if true, also revokes all other active sessions instead of just the current one (default: false)

Response #

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "controller": "auth",
  "action": "logout",
  "requestId": "<unique request identifier>",
  "result": {}
}