curl -X POST https://hapi.7331.org/v1/users/me/sessions/xyz789/destroy \ -b cookies.txt
Copy
{ "destroyed": true}
Users
Destroy Single Session
Destroy a specific session by its 6-character token suffix.
POST
/
v1
/
users
/
me
/
sessions
/
{token_suffix}
/
destroy
Copy
curl -X POST https://hapi.7331.org/v1/users/me/sessions/xyz789/destroy \ -b cookies.txt
Copy
{ "destroyed": true}
Requires an active session cookie. Destroys a specific session identified by the last 6 characters of its token. Returns 400 if attempting to destroy the current session, and 404 if the suffix does not match any active session.