---
description: It will revoke the token of logged in user and logged out that user.
---

# Logout

## This endpoint allows you to logout the user.

<mark style="color:blue;">`GET`</mark> `https://castleindia.in/emart/public /api/logout /api/logout`

#### Headers

| Name           | Type   | Description                                                 |
| -------------- | ------ | ----------------------------------------------------------- |
| Accept         | String | application/json                                            |
| Authentication | String | Bearer {Your bearer token will goes here without brackets } |

{% tabs %}
{% tab title="200: OK cake successfully retrieved" %}
```
{
  "message": "You have been successfully logged out!"
}
```
{% endtab %}

{% tab title="422: Unprocessable Entity could not find a cake matching this query" %}
```
{
  "message": "Unauthenticated."
}
```
{% endtab %}
{% endtabs %}
