MailMasker API
Claude Code
Sessions

Sign out your other sessions

DELETE/api/v1/auth/sessions

Who can use this: Any signed-in accountAs Markdown

Ends your sessions all at once, along with their refresh tokens, including any whose token has run out but could still refresh. With except_current=true the session making this call stays signed in; with false it ends too, which signs you out everywhere. revoked is how many sessions ended.

Parameters

NameWhereWhat it is
except_current required query true to keep the session making this call, false to end it too. There is no default.e.g. true

Good to know

  • Leaving out except_current, or sending anything but true or false, answers 400.
  • It only ever ends your own sessions.