---
title: "Log out and revoke the session"
method: DELETE
path: "/api/v1/auth/session"
tags: ["Authentication"]
---

# Log out and revoke the session

`DELETE /api/v1/auth/session`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/auth/session`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Revokes the refresh token from the httpOnly cookie (if present) and clears the cookie. Idempotent: always returns `{ success: true }` even when no session cookie is set.

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `success` true, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
