Skip to main content

User logout

API operation: Open the endpoint in Scalar

Use POST /auth/logout to invalidate the current authenticated session. The current public operation is User.logout and requires an accepted API key or bearer session.

All documented user levels can invoke logout when authenticated. A driver with assigned in-progress orders can be prevented from logging out until those orders are resolved.

To remove a push-notification token during logout, send the optional current request field token_notification:

{
"token_notification": "<notification-token>"
}

The token is a placeholder. Do not place a real notification or session token in documentation, source control, or a URL.

Legacy SDK example:

const response = await ordering.users().logout()

Confirm the SDK package and version before relying on this helper. Scalar remains authoritative for the exact POST /auth/logout contract.