1. Docs
  2. API Reference
  3. Revoke a specific session

Revoke a specific session

DELETE/v1/auth/sessions/{id}

Revokes one of the caller's own sessions by its refresh-token id. Guarded by UserJwtGuard; returns 204 No Content on success and 404 when the session does not exist or does not belong to the caller.

Path Parameters

idstring Required

Responses

Session revoked

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*
Request
curl -X DELETE "https://auth.canopy-io.com/v1/auth/sessions/value"
Response
HTTP/1.1 204 Session revoked

(empty body)
Related endpoints
POSTRegister a new user
POSTCreate an additional Account for the authenticated admin (no new user)
GETReview the parked account-creation intent before resuming
POSTResume a deferred account creation parked at the register form
DELETEDismiss the parked account-creation intent without creating anything
POSTLook up invite details by token
POSTAccept an invite
POSTAuthenticate and receive tokens
POSTSelect an Account from a pre-auth session (multi-Account login)
POSTSwitch the active Application in an authenticated session
POSTRefresh access token
POSTLogout and revoke tokens
GETVerify email address
POSTResend verification email
POSTResend verification email by token
POSTRequest password reset
POSTReset password with token
POSTChange password (authenticated)
GETGet current user profile
GETGet current user avatar image
POSTUpload profile avatar
DELETERemove profile avatar
POSTRequest an email-address change
POSTConfirm an email-address change
GETGet current user permissions
GETList the Accounts the current user belongs to
GETList active sessions
DELETERevoke all sessions
Was this page helpful?

Tell us how we can improve this guide.