Revoke current bearer token
POST /api/auth/logout
Revokes the current bearer token and returns {message: "Logged out."} with HTTP 200.
Authenticate with a portal session token.
Responses
200 Current token revoked.
application/json object
messagestring requiredValue:"Logged out."
Generated sample
{
"message": "Logged out."
}401 Authentication is required or the supplied credentials are not accepted.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string