Tearleads

POST/auth/logout

Destroy the current session

Operation auth.logout

Description

Ends the session that made the request, so its bearer token stops working. Any signed-in user may call it.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Responses

200 OK

application/jsonDestroySessionResponse

Confirms that a session was signed out.

1 field
  • messagestringrequired
    • always ok

Other fields are allowed.

Other responses

StatusMeaningBody
401Unauthorized

application/jsonSessionFailureResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse