---
title: "Revoke the current session"
method: POST
path: "/auth/logout"
tags: ["Auth"]
---

# Revoke the current session

`POST /auth/logout`

## Request

- Base URL: `https://api.flashdata.dev/v2`
- URL: `https://api.flashdata.dev/v2/auth/logout`
- Auth: API key in cookie `__Host-fd_session` and API key in header `X-CSRF-Token`

## Response `204`

Session revoked and cookie cleared

## Other responses

- `401`: Authentication required or invalid
- `403`: Authenticated but not permitted, or CSRF validation failed

---

[API](https://skmtc.dev/flashdata/apis/flashdata-customer-api.md) · [All operations](https://skmtc.dev/flashdata/apis/flashdata-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flashdata/apis/flashdata-customer-api/revisions/109179fe9313?raw)
