> ## Documentation Index
> Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vendor Portal Logout

> Invalidate the current vendor session token

<Note>
  **V2 Preview** — This endpoint is part of the V2 API preview. Breaking changes may occur.
</Note>

## Overview

Log out the current vendor by invalidating their JWT token. After calling this endpoint, the token can no longer be used for authenticated requests.

### Use Cases

* **Logout button** — End the vendor's session when they click "Sign out"
* **Security cleanup** — Invalidate a token after detecting suspicious activity

## Headers

<ParamField header="x-access-token" type="string" required>
  A valid vendor JWT.
</ParamField>

## Response

```json 200 theme={null}
{
  "success": true
}
```

### Error Responses

```json 401 theme={null}
{ "success": false, "error": { "message": "Invalid or expired token" } }
```

## Example

```bash theme={null}
curl -X POST "https://staging-api.puppetvendors.com/portal/auth/logout" \
  -H "x-access-token: YOUR_VENDOR_JWT"
```
