HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
Guides
These docs are for v2023-10-15. Click to read the latest docs for v2024-10-15.

Audit your Klaviyo API usage

Learn how to audit your API endpoint usage, so you can migrate to Klaviyo’s newest APIs.

🚧

Users of Klaviyo's v1/v2 APIs have until June 30, 2024 to migrate to our new APIs. At this time, our v1/v2 APIs will officially be retired. To learn more about Klaviyo’s API lifecycle, check out our API versioning and deprecation policy.

It is important to migrate to our new APIs before retired connections cause data failures in your account. It is best practice to connect your apps to the latest stable version of our APIs every 6-9 months. Migration to our newest APIs begins with auditing your endpoint usage to manage calls to our v1/v2 APIs.

To this end, you can download an API report, which is a CSV containing all v1/v2 API calls coming from your account.

You can also:

  • Review private API keys and labels.
  • Utilize Klaviyo’s API usage tools, such as the API activity dashboard.
  • Check custom metrics and profile properties.

Use the API report

Download the report

Please note that the API report CSV only contains v1/v2 API usage data. Data refreshes once every 24 hours and looks back 14 days.

From the Developer tools dashboard, locate the Audit API Endpoints section.

Click Export API Report to begin exporting your API usage data. Depending on the quantity of API usage data in your account, the download may take several minutes. When the export completes, the CSV file will have the following name format: privatekey_yyyy_mm_dd.csv

Included fields

Field nameDescription
HTTP MethodThe HTTP method of the call (e.g., GET, POST, PATCH)
Deprecated Endpoint URLURL of the legacy endpoint
Company ID / Public API KeyPublic API key used to make the request
Private API KeyPrivate API key used to make the request
Key LabelAny labels attached to the request
Key Created DateDate the request was created
Key ScopesScopes that the private API key can call to make the request
Key Access LevelLevel of permissions used by your scopes (e.g., read, write, full)
Most Recent Request TimestampTimestamp of the most recent request in UNIX
Number of RequestsQuantity of API requests made
Legacy Endpoint DocsLink to the URL of the legacy endpoint used
Docs for New Equivalent EndpointsLink to the URL of the equivalent new endpoint that should be used
NamespaceRelevant namespace for the endpoint used in the request
Private Key AuthAuth headers used to make the request
Report Time Range StartStarting date range of the audit report
Report Time Range EndEnding date range of the audit report
Report Download TimestampTime and date when the report was downloaded

Review private API keys and labels

Reviewing your account’s private API keys page can provide insight into where your API calls are being made. Work backwards with private API keys and labels to check your codebases for active v1/v2 API usage.

Utilize Klaviyo’s API usage tools

To view endpoints currently being used to access your account(s), use our tools for monitoring API usage. You can monitor recent activity with the API activity dashboard and view recent API requests in the API call log.

Check custom metrics and profile properties

Within the Metrics tab, you can filter by API using the dropdown. In the Profiles tab, you can check for custom profile properties. Audit how this data enters your system to determine whether or not you use legacy v1/v2 endpoints.

Metrics tab with the filter set to show only API generated metric

You might be currently using our klaviyo object to capture certain metrics such as Active on Site, Viewed Product, Added to Cart, Started Checkout, or more. Calls from the klaviyo object are being migrated under the hood and will continue to be supported in the future.

You may have additional metric types depending on how you have set up your custom integration. Be sure to audit your accounts so you know what metrics are coming from our klaviyo object vs direct API calls. Calls made directly from our APIs will need to be migrated.

Migrate from v1/v2 to our new APIs

Once you have audited your API endpoint usage, you can migrate to our new APIs. Check out a full list of our top migration resources.

Additional resources