curl --request PUT \
--url https://api.trieve.ai/api/analytics/events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"event_name": "<string>",
"event_type": "view",
"items": [
"<string>"
],
"location": "<string>",
"metadata": "<any>",
"request": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request_type": "search"
},
"user_id": "<string>"
}'
This response does not have an example.
This route allows you to send user event data to the system.
curl --request PUT \
--url https://api.trieve.ai/api/analytics/events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"event_name": "<string>",
"event_type": "view",
"items": [
"<string>"
],
"location": "<string>",
"metadata": "<any>",
"request": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request_type": "search"
},
"user_id": "<string>"
}'
This response does not have an example.
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.
JSON request payload to send event data
The body is of type object
.
The event data was successfully sent
Was this page helpful?