v46

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-011274550.0 KB
Auth

Terminate Session

Terminates a specific login session (remote logout). Removes the login token from the user document. User identity is read from the x-user-id header.

delete/v1/auth/sessions/{sessionId}

Path parameters

sessionIdstring required

Session ID to terminate (17-character nanoid)

Response

Default Response

successboolean required
messagestring required
hashedTokenstring

Hashed login token of the terminated session (for DDP cleanup)

ipstring

IP address of the terminated session

loginTypestring

Login method used to create the terminated session