Skip to main content

POST /auth/logout

Revokes the current access_token on the server side. After logout, the token can no longer be used to authenticate.

Headers

HeaderRequiredDescription
AuthorizationYesBearer {access_token}
AcceptYesapplication/json

Request

curl -X POST https://api.dokstamp.eu/auth/logout \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Accept: application/json"

Response 200

{ "message": "Successfully logged out" }
Logout only revokes the current access token. If you have a refresh token stored, it may still be valid. Discard both tokens from your application after logout.