HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
These docs are for v1-2. Click to read the latest docs for v2024-02-15.

Rate limits and error handling

Refer to our list of error codes, rate limits, and ingestion limits for troubleshooting help.

Rate limits

All endpoints are rate limited. Check the response codes for a 429 error, which indicates you have hit a rate limit, and retry requests that exceed the rate limit at a later time. If you consistently hit rate limits, we recommend adjusting your request-rate using an exponential backoff algorithm.

Ingestion limits

Klaviyo's event tracking endpoints use ingestion limits to prevent processing delays and service interruptions to the event ingestion pipeline. If you are using a Klaviyo webhook, custom integration, or API implementation, it is important to be aware of the limits on the events you send into Klaviyo. The table below provides guidance on the maximum sizes for your payload and its fields.

Endpoints with ingestion limits:

  • /api/events
  • /client/events
  • legacy /api/track
CategoryLimit
Max payload size5 MB decompressed
Max number of event properties per data packet300
Max size of any field100 kB
Max number of items in arrays4000
Max levels of nested objects10
Timestamp of eventsBetween 2000 and “now”+1 year

Errors

Our API uses conventional HTTP response codes to indicate success or failure of an API request. Errors typically fall into three ranges:

  • 2xx - Success
  • 4xx - Error as a result of information provided as part of the request, such as a requested object that doesn't exist, an invalid setting, etc.
  • 5xx - Error due to Klaviyo

The response of all API errors contain a message parameter which has developer-facing information about why the request failed.

See the table below for a list of error codes and their corresponding descriptions:

CodeSummaryDescription
200OKThe request completed successfully
400Bad RequestRequest is missing or has a bad parameter
400Not AuthorizedRequest is missing or has an invalid API key
401Not AuthorizedKey is valid, but account does not have permissions to perform this action
403ForbiddenRequest is missing or has an invalid API key
404Not FoundThe requested resource doesn't exist
429Rate LimitYou hit the rate limit for this endpoint (different endpoints have different rate limits)
500Server ErrorSomething is wrong on Klaviyo's end