Before ingesting sessions, make sure the related clients have already been ingested. See the Ingesting Clients guide.
Overview
Sessions allow Corsa to track client device activity for fraud detection and behavioral analysis. Each session captures:- IP address - automatically resolved to geolocation by Corsa
- Device fingerprint - unique hash identifying the device
- Device metadata - browser, OS, screen resolution, timezone, etc.
Step 1: Create a Session
Endpoint:POST /v1/sessions
Key Fields
| Field | Required | Description |
|---|---|---|
clientId | Yes | Corsa client ID or referenceId of the client |
ipAddress | Yes | IPv4 or IPv6 address (auto-resolved to geolocation) |
device | Yes | Device information object |
device.fingerprint | Yes | Unique device fingerprint hash |
referenceId | No | Your external session reference ID |
startedAt | No | Session start time (defaults to current time) |
Device Type Values
| Type | Description |
|---|---|
DESKTOP | Desktop computer |
MOBILE | Mobile phone |
TABLET | Tablet device |
UNKNOWN | Unidentified device type |
Corsa automatically resolves the IP address to geolocation data (country, city, coordinates). You do not need to provide geolocation separately.
Step 2: Retrieve Sessions for a Client
Endpoint:GET /v1/clients/{clientId}/sessions
View all sessions associated with a specific client to analyze login patterns and device usage.
Step 3: End a Session
Endpoint:PUT /v1/sessions/{id}
Mark a session as ended by providing the endedAt timestamp.
What’s Next?
Ingest Operations
Ingest deposits, withdrawals, and trades for your clients.
Manage Attachments
Upload and manage files across entities.