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.

OpenAPI reference​

Operation: POST /auth/logout

Header parameters

NameTypeRequiredDescription
User-AgentstringNo—

Request body fields

NameTypeRequired
token_notificationanyNo

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
403Forbidden (ErrorResponse)
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference