Skip to content

End a customer session by revoking its refresh token​

POST
/rest/v1/auth/customer/logout

Ends the session the presented refresh token belongs to, that is this device's session: every refresh token of that session, rotated ones included, is deleted. The customer's sessions on other devices stay signed in. Authorised by possession of the refresh token itself; no access token is needed, so a client whose access token has already expired can still sign out. Idempotent: an unknown, already-revoked, malformed or missing token answers the same 200, so the response never reveals whether a token was live. An access token already issued stays valid until it expires.

Request Body​

application/json
JSON
{
  
"refresh_token": "string"
}

Responses​

Signed out — the same response whether or not the token was live

application/json
JSON
{
  
"message": "Logged out."
}

Playground​

Body

Samples​

Powered by VitePress OpenAPI