> For the complete documentation index, see [llms.txt](https://xerial.gitbook.io/xerial-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xerial.gitbook.io/xerial-doc/~/changes/vTuPuavSUBXr6g7sVzr6/xerial-apis/wallet-api/authentication/logout.md).

# Logout

The "Logout" endpoint enables users to securely log out of their session. Below are the details on how to integrate the logout functionality into your application.

### Overview

{% hint style="success" %}

### Endpoint

* **Method:** POST
* **URL:** `/auth/logout`
  {% endhint %}

### Request Body

```json
{
  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg"
}
```

* **`refreshToken`**: The refresh token associated with the user's current session.

### Responses

#### Success (Code 204)

* **No Content**: The server successfully processed the request, and there is no additional content to send.

### Usage

1. **Send a POST request** to the provided endpoint with the user's refresh token.
2. **Handle the response accordingly** based on success (no content) or not found.

**Note:** Ensure the provided refresh token is valid and associated with the user's current session.
