Amba
Platform

Sessions

Track user app sessions with start/end times and device metadata.

Session tracking records when users open and close your app, including device metadata and session duration.

Client API reference

MethodPathDescription
POST/client/sessions/startStart a session
POST/client/sessions/endEnd the current session
GET/client/sessionsGet user's session history

Start a session

POST /client/sessions/start
{
  "device_info": {
    "platform": "ios",
    "os_version": "18.2",
    "app_version": "1.2.0",
    "device_model": "iPhone 16"
  }
}

The SDK handles session start/end automatically via app lifecycle events. You typically do not need to call these endpoints manually.

Database tables

TablePurpose
app_sessionsSession records with start/end times, duration, and device info

On this page