v1.0.0
OpenAPI 3.1.0
Add or update events
Client Libraries
US region
Events are actions your customers have performed. Use this endpoint to add new events or update existing events in your workspace. To associate events with customers, use our Pipelines or Track APIs. NOTE: If you add new events, they will not appear in your Data Index until you've associated it with a customer.
Add descriptions for events so our AI tools can better understand your data. For instance, this influences how our segment builder generates conditions with AI.
Array of event updates
Events updated successfully
Internal server error
curl https://api.customer.io/v1/data_index/events \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"events": [
{
"name": "purchase_completed",
"description": "User successfully completed a purchase"
}
]
}'
Events updated successfully