Skip to main content
POST
/
portal
/
auth
/
logout
Vendor Portal Logout
curl --request POST \
  --url https://staging-api.puppetvendors.com/portal/auth/logout \
  --header 'x-access-token: <api-key>'

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.

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

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

x-access-token
string
required
A valid vendor JWT.

Response

200
{
  "success": true
}

Error Responses

401
{ "success": false, "error": { "message": "Invalid or expired token" } }

Example

curl -X POST "https://staging-api.puppetvendors.com/portal/auth/logout" \
  -H "x-access-token: YOUR_VENDOR_JWT"