MemorySync
API Reference

List Sessions

List active browser sessions for the authenticated principal. Each entry shows device fingerprint, IP, last seen time, and a session id usable with DELETE /sessions/{session_id}.
GET/sessions

Authentication

Accepts a JWT bearer token (Authorization: Bearer eyJ…) or an API key (X-API-Key: ms_live_…). API-key callers should send X-Project-ID unless the key is project-locked. Cross-tenant operators must send X-Tenant-ID.

Query parameters

FieldTypeRequiredDescription
limitintegeroptionalMax 100. Default 50.

Response

Returns 200 OK with the following body.

FieldTypeRequiredDescription
session_idstringoptionalUse with DELETE /sessions/{session_id}.
ipstringoptionalLast observed source IP.
user_agentstringoptionalBrowser / SDK identifier.
last_seen_atstringoptionalRFC 3339 UTC.
currentbooleanoptionalTrue for the calling session.
200.json
[
{
"session_id": "sess_01HX...",
"ip": "203.0.113.7",
"user_agent": "Chrome/124.0",
"last_seen_at": "2026-05-04T12:00:00Z",
"current": true
}
]

Errors

StatusCodeDescription
400validation_errorBody or query failed schema validation. The error includes the offending field name.
401unauthenticatedMissing or invalid bearer token / API key.
403forbiddenAuthenticated principal lacks the required scope, role, or project access.
404not_foundTarget resource does not exist or is not visible to the calling tenant.
429rate_limitedPer-IP or per-route limit exceeded. Respect the Retry-After header.
500internal_errorUnhandled server error. Quote the request_id when contacting support.

Examples

cURL
curl -X GET https://api.memorysync.io/sessions \
-H "Authorization: Bearer $MEMORYSYNC_KEY"
javascript
import { MemorySync } from 'memorysync'
const client = new MemorySync({ apiKey: process.env.MEMORYSYNC_KEY })
const result = await client.request({
method: 'GET',
path: '/sessions',
})
console.log(result)
python
from memorysync import Client
client = Client(api_key=os.environ["MEMORYSYNC_KEY"])
result = client.request(
method="GET",
path="/sessions",
)
print(result)

Behavior & notes

Idempotent through Idempotency-Key on writes. Replays within 24h return the original response unchanged.