SessionsSession Detail

Session Detail

Return one session by its ID: its device, attribution and signals, and its events in order with the user each was sent with.

curl -X GET "https://api.hardal.ai/v1/reports/sessions/example_string/detail?tenantId=123e4567-e89b-12d3-a456-426614174000&sourceId=123e4567-e89b-12d3-a456-426614174000&timezone=example_string&date=2024-12-25" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "header": {
      "sessionId": "d54b9c8e-0d2f-43e4-b95e-e85604e5e577",
      "sessionTime": "2026-10-07 14:30:12.000",
      "landingPage": "/products/running-shoes"
    },
    "device": {
      "device": "desktop",
      "browser": "Chrome",
      "os": "macOS",
      "location": {
        "city": "Istanbul",
        "country": "TR"
      }
    },
    "signals": {
      "pageViews": 3,
      "totalEvents": 4,
      "consentStatus": "granted"
    },
    "identity": {
      "sessionId": "d54b9c8e-0d2f-43e4-b95e-e85604e5e577",
      "sourceId": "7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27",
      "visitorId": "v_4d5e6f7a"
    },
    "details": {
      "landingPage": "/products/running-shoes",
      "exitPage": "/checkout/complete",
      "duration": 233
    },
    "attribution": {
      "source": "google",
      "medium": "cpc",
      "campaign": "autumn-sale"
    },
    "timeline": [
      {
        "eventId": "1a2b3c4d-0001-4e5f-8a9b-0c1d2e3f4a5b",
        "eventType": "page_view",
        "eventName": "page_view",
        "eventTime": "2026-10-07 14:30:12.000",
        "pagePath": "/products/running-shoes",
        "userId": null
      },
      {
        "eventId": "1a2b3c4d-0002-4e5f-8a9b-0c1d2e3f4a5b",
        "eventType": "event",
        "eventName": "login",
        "eventTime": "2026-10-07 14:31:40.000",
        "pagePath": "/account/login",
        "userId": "customer-1042"
      },
      {
        "eventId": "1a2b3c4d-0003-4e5f-8a9b-0c1d2e3f4a5b",
        "eventType": "page_view",
        "eventName": "page_view",
        "eventTime": "2026-10-07 14:32:05.000",
        "pagePath": "/checkout",
        "userId": "customer-1042"
      },
      {
        "eventId": "6f1d2c3b-8a4e-4f5d-9c7b-1e2a3b4c5d6e",
        "eventType": "page_view",
        "eventName": "page_view",
        "eventTime": "2026-10-07 14:34:05.000",
        "pagePath": "/checkout/complete",
        "userId": "customer-1042"
      }
    ]
  },
  "timestamp": "2026-11-01T09:30:00.000Z",
  "path": "/v1/reports/sessions/{sessionId}/detail",
  "requestId": "req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"
}
GET
/v1/reports/sessions/{sessionId}/detail
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

OAuth access token (token exchange) or organization API key.

OAuth access token (token exchange) or organization API key.
path
sessionIdstring
Required

ID of the session, as returned in id by GET /v1/reports/sessions or in session by event detail.

Min length: 1 • Max length: 255
query
tenantIdstring
Required

UUID of the tenant to report on. Send it exactly once. GET /v1/workspace/access lists the tenants this credential can read.

Format: uuid
query
sourceIdstring
Required

UUID of the source the session belongs to. Required.

Format: uuid
query
timezonestring

IANA time zone name such as Europe/Istanbul. Event and session times in the response are given in it. Defaults to Europe/Istanbul.

Min length: 1 • Max length: 100
query
datestring

Day the session occurred, YYYY-MM-DD. The lookup then covers only this day and the days before and after it, which makes it much faster. Omit it to search the whole retention period.

Format: date
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. OAuth access token (token exchange) or organization API key.

Path Parameters

sessionIdstring
Required

ID of the session, as returned in id by GET /v1/reports/sessions or in session by event detail.

Query Parameters

tenantIdstring
Required

UUID of the tenant to report on. Send it exactly once. GET /v1/workspace/access lists the tenants this credential can read.

sourceIdstring
Required

UUID of the source the session belongs to. Required.

timezonestring

IANA time zone name such as Europe/Istanbul. Event and session times in the response are given in it. Defaults to Europe/Istanbul.

datestring

Day the session occurred, YYYY-MM-DD. The lookup then covers only this day and the days before and after it, which makes it much faster. Omit it to search the whole retention period.

Responses

successboolean
Required
Allowed values:true
dataobject
Required
timestampstring
Required
pathstring
Required
requestIdstring
Required