Delete user session

Deletes the user's current session. This endpoint must be accessed with valid JWT authorization header.

SecuritySecretApiKey or JWT
Responses
204

Session deleted.

401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

post/logout
Request samples
const logout = await api.account.logout();

// the request does not return any fields but
// you can confirm the success using the status code
console.log(logout.response.status); // 204
Response samples
application/json
{
  • "status": 401,
  • "title": "string",
  • "detail": "string",
  • "instance": "string"
}