Create Client Event
POSThttps://a.klaviyo.com/client/events/
Create a new event to track a profile's activity.
This endpoint is specifically designed to be called from publicly-browseable, client-side environments only. To create events from server-based applications, please use POST /api/events
- Revision header
revision: 2023-07-15required- Scopes
events:write- Authentication
- Public API key (site ID), in the
company_idquery parameter - Rate limits
- Burst:
350/sSteady:3500/m
Query parameters
Your Public API Key / Site ID. See this article for more details.
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2023-07-15
Request body
Content type: application/jsonrequired
Show 2 fields
Show 6 fields
Properties of this event. Any top level property (that are not objects) can be used to create segments. The $extra property is a special property. This records any non-segmentable values that can be references later. For example, HTML templates are useful on a segment, but itself is not used in creating a segment. There are limits placed onto the size of the data present. This must not exceed 5 MB. This must not exceed 300 event properties. A single string cannot be larger than 100 KB. Each array must not exceed 4000 elements. The properties cannot contain more than 10 nested levels.
Enter valid JSON. Until you do, the example request uses the example value.
When this event occurred. By default, the time the request was received will be used. The time is truncated to the second. The time must be after the year 2000 and can only be up to 1 year in the future.
A numeric value to associate with this event. For example, the dollar amount of a purchase.
Enter a number. Until you do, the example request uses the example value.
A unique identifier for an event. If the unique_id is repeated for the same profile and metric, only the first processed event will be recorded. If this is not present, this will use the time to the second. Using the default, this limits only one event per profile per second.
Show 1 field
Show 4 fields
Primary key that uniquely identifies this profile. Generated by Klaviyo.
Show 11 fields
Individual's email address
Individual's phone number in E.164 format
A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.
Individual's first name
Individual's last name
Name of the company or organization within the company for whom the individual works
Individual's job title
URL pointing to the location of a profile image
Show 9 fields
First line of street address
Second line of street address
City name
Country name
Latitude coordinate. We recommend providing a precision of four decimal places.
Longitude coordinate. We recommend providing a precision of four decimal places.
Region within a country, such as state or province
Zip code
Time zone name. We recommend using time zones from the IANA Time Zone Database.
An object containing key/value pairs for any custom properties assigned to this profile
Enter valid JSON. Until you do, the example request uses the example value.
Show 1 field
Show 3 fields
Append a simple value or values to this property array
Enter valid JSON. Until you do, the example request uses the example value.
Remove a simple value or values from this property array
Enter valid JSON. Until you do, the example request uses the example value.
Remove a key or keys (and their values) completely from properties
Responses
202
This response has no body.
4XXClient Error
Content type: application/json
5XXServer Error
Content type: application/json