---
title: "Logout"
method: POST
path: "/api/auth/logout"
tags: ["Authentication"]
---

# Logout

`POST /api/auth/logout`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/auth/logout`
- Auth: none declared

Revoke the session and clear the refresh cookie. Reads the refresh token
from the cookie (not the access token), so logout still works even if the
access token has already expired.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/pegarex/apis/pegarex-api.md) · [All operations](https://skmtc.dev/pegarex/apis/pegarex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pegarex/apis/pegarex-api/revisions/8c789c9bd72d?raw)
