Skip to main content
POST
/
v1
/
users
/
me
/
sessions
/
{token_suffix}
/
destroy
curl -X POST https://hapi.7331.org/v1/users/me/sessions/xyz789/destroy \
  -b cookies.txt
{
  "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.
token_suffix
string
required
Last 6 characters of the session token to destroy.

Response

destroyed
boolean
required
true if the session was successfully destroyed.
curl -X POST https://hapi.7331.org/v1/users/me/sessions/xyz789/destroy \
  -b cookies.txt
{
  "destroyed": true
}