EventsEvent Detail

Event Detail

Return one event by its ID: when and where it happened, its session, visitor and user, and every property it was sent with, including items.

curl -X GET "https://api.hardal.ai/v1/reports/events/123e4567-e89b-12d3-a456-426614174000/detail?tenantId=123e4567-e89b-12d3-a456-426614174000&sourceId=123e4567-e89b-12d3-a456-426614174000&date=2024-12-25" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "eventId": "6f1d2c3b-8a4e-4f5d-9c7b-1e2a3b4c5d6e",
    "sourceId": "7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27",
    "eventName": "purchase",
    "occurredAt": "2026-10-01 14:32:05.120",
    "source": "google",
    "medium": "cpc",
    "campaign": "autumn-sale",
    "session": "s_8f3a2b1c",
    "visitorId": "v_4d5e6f7a",
    "userId": "customer-1042",
    "url": "https://shop.example.com/checkout/complete?order=A-9921",
    "pagePath": "/checkout/complete",
    "referrer": "https://shop.example.com/checkout",
    "context": {
      "hostname": "shop.example.com",
      "browser": "Chrome",
      "operatingSystem": "macOS",
      "device": "desktop",
      "countryCode": "TR",
      "city": "Istanbul"
    },
    "eventData": {
      "transaction_id": "A-9921",
      "value": 1249.9,
      "currency": "TRY",
      "items": [
        {
          "item_id": "SKU-1001",
          "item_name": "Running Shoes",
          "price": 999.9,
          "quantity": 1
        },
        {
          "item_id": "SKU-2040",
          "item_name": "Sport Socks",
          "price": 250,
          "quantity": 1
        }
      ]
    }
  },
  "timestamp": "2026-11-01T09:30:00.000Z",
  "path": "/v1/reports/events/{eventId}/detail",
  "requestId": "req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"
}
GET
/v1/reports/events/{eventId}/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
eventIdstring
Required

UUID of the event, as returned in eventId when the event was collected.

Format: uuid
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 event was sent to. Required.

Format: uuid
query
datestring

Day the event 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

eventIdstring
Required

UUID of the event, as returned in eventId when the event was collected.

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 event was sent to. Required.

datestring

Day the event 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