Log Endpoint
1 min
POST
https://logx.optimizely.com/v1/events
bodyobject<p>JSON object that holds an array of visitor objects that describe the visitor's experience during an Optimizely campaign.</p>
204The events were queued for recording by the Optimizely backend.
400The request is malformed or otherwise failed validation by the Optimizely backend.
500A server error occurred. The client should attempt to resend the events at a later time.
curl --request POST \
--url https://logx.optimizely.com/v1/events \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"account_id": "1234",
"anonymize_ip": true,
"visitors": [
{
"attributes": [
{
"type": "custom",
"value": "nike zoom air"
}
],
"snapshots": [
{
"decisions": [
{
"campaign_id": "4321",
"experiment_id": "1234",
"variation_id": "5678"
}
],
"events": [
{
"timestamp": 1485989442742316000,
"uuid": "0255F96D-922B-433B-B474-5D87EC1AB122"
}
]
}
],
"visitor_id": "user_32912378471284"
}
]
}'