List an end-user's sessions (active by default).
List an end-user's sessions (active by default).
GET
https://staging.softsolz.uk/api/v1/services/customer-auth/users/{id}/sessionsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Query Params
active_onlybooleanPass "false" to include revoked/expired sessions.
limitintegerPage size, 1-200 (default 50).
offsetintegerPagination offset (default 0).
Response
Response Body · array of objects
jtistringSession token id.issued_atstringWhen issued.expires_atstringWhen it expires.revoked_atstring | nullWhen revoked, if any.ipstring | nullClient IP at login.user_agentstring | nullClient user-agent at login.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.customerAuth.listUserSessions('<id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": [ { "jti": "string", "issued_at": "string", "expires_at": "string", "revoked_at": "string", "ip": "string", "user_agent": "string" } ]}