End one login session

Sign out one device without disturbing the others — for example, a lost phone or an unrecognized browser. Only your own sessions can be ended. A session belonging to another user reads as missing, exactly like one that never existed, so this cannot be used to discover other people's sessions. Ending the session you are calling from is allowed, and signs you out. An access token already in hand keeps working until it expires, for up to about fifteen minutes. To end every session at once, use `POST /auth/logout-all`. Requires the `wallets.update` permission.

DELETE
/wallets/sessions/{sessionId}
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Path Parameters

sessionId*string

Identifier of the login session, from GET /wallets/sessions.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.dual.network/wallets/sessions/665f1c2d4b1a2c3d4e5f6ac0"
{}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 5,
  "message": "object not found"
}
{
  "code": 13,
  "message": "internal error"
}