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

# Logout

`POST /auth/logout`

## Request

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

Logout by clearing the authentication cookie.

This endpoint clears the httpOnly cookie. The JWT token itself remains valid
until expiry, but without the cookie the browser cannot send it automatically.

## Response `200`

Successful Response

- LogoutResponse
  - `success` boolean, required
  - `message` string, required

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
