Appearance
End an admin session by revoking its refresh token
POST
/rest/v1/auth/admin/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 user's sessions on other devices stay signed in. Authorised by possession of the refresh token itself; no access token is needed. Idempotent: an unknown, already-revoked, malformed or missing token answers the same 200. 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."
{
}