curl --request GET \
--url https://api.trieve.ai/api/analytics/events/{event_id} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'
{
"created_at": "2021-08-10T00:00:00Z",
"dataset_id": "00000000-0000-0000-0000-000000000000",
"event_name": "Viewed Home Page",
"event_type": "view",
"is_conversion": true,
"items": [
"item1",
"item2"
],
"metadata": "metadata",
"request_id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2021-08-10T00:00:00Z",
"user_id": "user1"
}
This route allows you to view an user event by its ID. You can pass in any type of event and get the details for that event.
curl --request GET \
--url https://api.trieve.ai/api/analytics/events/{event_id} \
--header 'Authorization: <api-key>' \
--header 'TR-Dataset: <tr-dataset>'
{
"created_at": "2021-08-10T00:00:00Z",
"dataset_id": "00000000-0000-0000-0000-000000000000",
"event_name": "Viewed Home Page",
"event_type": "view",
"is_conversion": true,
"items": [
"item1",
"item2"
],
"metadata": "metadata",
"request_id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2021-08-10T00:00:00Z",
"user_id": "user1"
}
The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
The event id to use for the request
The event for the request
EventData represents a single analytics event
Was this page helpful?