View as Markdown

Get detailed session data (timeline + event counts + page history)

GET /v1/sessions/{sessionId}/details
Base URL
https://api.isnotai.com
Available Regions 2 regions

Path Parameters

sessionId
string Required

Session id.

Responses

200 application/json

Payload of SessionDetailsResponse

Show 1 response attribute Hide response attributes
data
object
Show 7 data attributes Hide data attributes
sessionId
string
startTime
string(date-time)
endTime
string(date-time)
durationSeconds
number(double)
eventCounts
object
Show 6 eventCounts attributes Hide eventCounts attributes
total
integer(int32)
mouse
integer(int32)
scroll
integer(int32)
keyboard
integer(int32)
touch
integer(int32)
form
integer(int32)
timeline
array[object]
Show 4 timeline attributes Hide timeline attributes
timestamp
string(date-time)
eventCount
integer(int32)
dominantEventType
string
activityLevel
number(double)
pageHistory
array[object]
Show 4 pageHistory attributes Hide pageHistory attributes
url
string
timestamp
string(date-time)
type
string
durationMs
integer(int32)
401 application/json

Payload of ErrorEnvelope

Show 1 response attribute Hide response attributes
error
object
Show 3 error attributes Hide error attributes
code
string
message
string
details
object
404 application/json

Payload of ErrorEnvelope

Show 1 response attribute Hide response attributes
error
object
Show 3 error attributes Hide error attributes
code
string
message
string
details
object
503 application/json

Payload of ErrorEnvelope

Show 1 response attribute Hide response attributes
error
object
Show 3 error attributes Hide error attributes
code
string
message
string
details
object
GET /v1/sessions/{sessionId}/details
curl --request GET \
  --url https://api.isnotai.com/v1/sessions/your-sessionId/details \
  --header 'Authorization: Bearer aik_v1_YOUR_API_KEY'
import requests

url = "https://api.isnotai.com/v1/sessions/your-sessionId/details"

headers = {"Authorization": "Bearer aik_v1_YOUR_API_KEY"}

response = requests.get(url, headers=headers)

print(response.json())
const fetch = require('node-fetch');

const url = 'https://api.isnotai.com/v1/sessions/your-sessionId/details';
const options = {method: 'GET', headers: {Authorization: 'Bearer aik_v1_YOUR_API_KEY'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("https://api.isnotai.com/v1/sessions/your-sessionId/details"),
    Headers =
    {
        { "Authorization", "Bearer aik_v1_YOUR_API_KEY" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}

Try it

Collapse

Sent to the API as Authorization: Bearer aik_v1_.... Held only in this tab's input element; re-enter on each browser tab. The docs site never receives or stores it.

Path parameters

Session id.

200 Response examples
{
  "data": {
    "sessionId": "string",
    "startTime": "2024-01-01T00:00:00Z",
    "endTime": "2024-01-01T00:00:00Z",
    "durationSeconds": 0,
    "eventCounts": {
      "total": 0,
      "mouse": 0,
      "scroll": 0,
      "keyboard": 0,
      "touch": 0,
      "form": 0
    },
    "timeline": [
      {
        "timestamp": "2024-01-01T00:00:00Z",
        "eventCount": 0,
        "dominantEventType": "string",
        "activityLevel": 0
      }
    ],
    "pageHistory": [
      {
        "url": "https://example.com",
        "timestamp": "2024-01-01T00:00:00Z",
        "type": "string",
        "durationMs": 0
      }
    ]
  }
}
401 Response examples
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
404 Response examples
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
503 Response examples
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}