REST API reference
Read sessions and events with an API key.
The REST API gives read-only access to your sessions in JSON, for your own dashboards, data warehouse or AI tools.
Authentication
Create a key under Account → API & AI access and send it as a bearer token:
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://www.sitepluse.io/api/v1/sessions.php?since=7d&has_rage=1"
Keys are read-only and can be limited to certain websites. A key that is missing, invalid or revoked returns 401. Requests for a session the key can't see return 404.
List sessions
Sessions, newest first.
| Parameter | Description |
|---|---|
site | Website ID |
since | 24h, 7d or an ISO date such as 2026-11-01 |
channel | e.g. Paid search, Organic search, Direct |
country | Two-letter country code |
is_lead | 1 for leads only, 0 for non-leads |
has_rage, has_errors | 1 for sessions with rage clicks / JavaScript errors |
limit, offset | Paging (limit up to 200, default 50) |
{
"total": 132, "limit": 50, "offset": 0,
"sessions": [{
"id": 1042, "site_id": 1,
"started_at": "2026-11-24 09:12:03Z", "last_at": "2026-11-24 09:12:41Z", "duration_s": 38,
"pages": 5, "clicks": 14, "rage_clicks": 0, "errors": 0, "inputs": 9,
"country": "GB", "device": "Desktop", "browser": "Chrome", "os": "Windows", "language": "en-GB",
"entry_path": "/index.html", "referrer_host": null,
"channel": "Paid search", "ad_platform": "google",
"utm_source": "google", "utm_medium": "cpc", "utm_campaign": "Spring_Tents",
"privacy_mode": "partial", "consent": 1, "is_lead": 1, "lead_name": "order_placed",
"player_url": "https://www.sitepluse.io/admin/player.php?id=1042"
}]
}
Get a session
The session's fields (as above) plus markers, its timeline of page views, events, tags, rage clicks, errors and leads, and an events_url.
{
"id": 1042, "...": "…",
"markers": [
{ "name": "event", "at_ms": 11240, "data": "add_to_cart" },
{ "name": "lead", "at_ms": 41870, "data": "order_placed" }
],
"events_url": "https://www.sitepluse.io/api/v1/events.php?id=1042"
}
Get the recording
The complete recording as an array of rrweb events, which you can replay with rrweb or analyse. Text is already masked according to the website's privacy settings. Add format=raw to get only the events array.
{ "session_id": 1042, "privacy_mode": "partial", "started_at": "2026-11-24 09:12:03Z",
"duration_s": 38, "event_count": 182, "events": [ … ] }
Errors
| Status | Body | Meaning |
|---|---|---|
| 401 | {"error":"missing_or_invalid_key"} / {"error":"invalid_key"} | No key, or the key is wrong or revoked |
| 404 | {"error":"not_found"} | The session doesn't exist or the key can't see its website |
Can't find what you need? E-mail session@sitepluse.io.