GET /v1/accounts/devices
List active sessions and sign-in history. GET/v1/accounts/devices
Requires a Bearer token in the Authorization header.
Example
Response
true when the request succeeded.Container for both session datasets.
DELETE /v1/accounts/devices/:sessionId
Revoke a specific session. DELETE/v1/accounts/devices/:sessionId
Requires a Bearer token in the Authorization header.
Request
The
sessionId of the session to revoke. Obtain this value from GET /v1/accounts/devices. You cannot revoke the session that belongs to the token you are currently using.Example
Response
true when the session was successfully revoked.Human-readable confirmation.
Error cases
| Status | Error | Description |
|---|---|---|
| 400 | Use standard logout to end your current session. | The sessionId matches the caller’s own active session. |
| 401 | — | Missing or invalid Bearer token. |
| 403 | Session does not belong to this user. | The session exists but is owned by a different user. |
| 500 | Failed to fetch/revoke device activity | An unexpected server-side error occurred. |