MailMasker API
Claude Code
Sessions

End a session

DELETE/api/v1/auth/sessions/:jti

Who can use this: Any signed-in accountAs Markdown

Its token stops working straight away, and so does its refresh token, so it can't quietly sign itself back in. Ending the session you are using signs you out here too.

Parameters

NameWhereWhat it is
jti required path The session's id, in full, as your session list shows it.e.g. c41ac41ac41ac41ac41ac41ac41ac41ac41ac41ac41ac41ac41ac41ac41ac41a
user query Another account's address, to end one of its sessions. Site admins only; anyone else gets 403.

Good to know

  • A session that isn't yours, or was already ended, answers 404.
  • homelab-cli also takes just the start of the id, as long as only one session matches it.