SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
customer auth

List an end-user's sessions (active by default).

List an end-user's sessions (active by default).

GEThttps://staging.softsolz.uk/api/v1/services/customer-auth/users/{id}/sessions

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Query Params

active_onlyboolean

Pass "false" to include revoked/expired sessions.

limitinteger

Page size, 1-200 (default 50).

offsetinteger

Pagination 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"
}
]
}