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

# Logout

`POST /api/auth/logout`

## Request

- Base URL: `https://api.thebetterhire.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebetterhire.ai/api/auth/logout`
- Auth: HTTP bearer

Logout user by revoking refresh token

Access tokens continue to work until expiry (15 min max)

## Request body

- RefreshTokenRequest: Refresh token to get new access token
  - `refresh_token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api.md) · [All operations](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/revisions/c8ad03e900ea?raw)
