---
title: "Log out user."
method: POST
path: "/api/v1/authentication/logout"
tags: ["authentication"]
---

# Log out user.

`POST /api/v1/authentication/logout`

Logout current user.

## Cookies

- `Session` string, nullable

## Response `200`

Successful Response

- AuthenticationResponse — Authentication response.
  - `status` integer, required — Status code of authentication.
  - `account` string, required — User account.
  - `accessToken` string, nullable — Access token, used ar Bearer token for accessing endpoints.
  - `sessionToken` string, nullable — Session token required for account verification and password change.
  - `roles` UserAccessRoles[], required — User access roles.

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable entity
- `500` — Internal Server Error

---

[API](https://skmtc.dev/posti/apis/posti-developer-portal-backend-rest-api.md) · [All operations](https://skmtc.dev/posti/apis/posti-developer-portal-backend-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/posti/posti-developer-portal-backend-rest-api/revisions/4b67dce32742/schema)
