---
title: "Log out"
method: DELETE
path: "/api/v2/auth/refresh"
tags: ["Login"]
---

# Log out

`DELETE /api/v2/auth/refresh`

## Request

- Base URL: `https://docs.hashtopolis.org`
- URL: `https://docs.hashtopolis.org/api/v2/auth/refresh`
- Auth: one of:
  - API key in cookie `refreshToken`
  - none
- TypeScript: <https://skmtc.dev/hashtopolis/apis/hashtopolis-api/docs/api/v2/auth/refresh/delete.ts> (a function with typed inputs; its response is checked against the schema)

Revokes the session the refreshToken cookie belongs to and clears the cookie.
          Sessions on other devices are left alone. Logging out without a cookie is not an error.

## Response `204`

Success

## Other responses

- `403`: The request origin is not allowed to send credentials

## Changes

- **2026-10-03** `2779711dea1d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hashtopolis/apis/hashtopolis-api/changes/api/v2/auth/refresh/delete.md)

---

[API](https://skmtc.dev/hashtopolis/apis/hashtopolis-api.md) - [All operations](https://skmtc.dev/hashtopolis/apis/hashtopolis-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hashtopolis/apis/hashtopolis-api/revisions/87f3bd43387f?raw)
