Start typing to search.

API Reference

Logout

View Markdown

Logout

POST /api/auth/logout

Logout

Operation ID: logout

Authentication

No authentication is required.

Success responses

200

Logged out

Content type: application/json

  • Type: object
  • Properties:
    • success (boolean)

Examples

cURL

curl --request POST \
  --url 'https://your-envoy.example.com/api/auth/logout'

JavaScript (fetch)

const response = await fetch('https://your-envoy.example.com/api/auth/logout', {
  method: 'POST',
});
 
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = response.status === 204 ? null : await response.json();
console.log(data);