Skip to content
Sign in Create account

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

  • message string required
    Value: "Logged out."

Generated sample

{
  "message": "Logged out."
}
401 Authentication is required or the supplied credentials are not accepted.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string