---
title: "Developer guides"
description: "Developer guides for building with Klaviyo's APIs, SDKs and developer tools."
url: "https://developers.klaviyo.com/en/docs"
---

# Developer guides

> Klaviyo's developer guides: how to authenticate, use the JSON:API features, integrate a platform, build an app, and more. Each link below is the Markdown version of one guide.

Every guide in one file: https://developers.klaviyo.com/en/docs/llms-full.txt

## Changelog

- [Changelog](https://developers.klaviyo.com/en/docs/changelog_.md): Review new and breaking changes to Klaviyo's APIs.
- [API versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md): Learn about how we version and support our APIs.

## Get started

- [Get started with Klaviyo](https://developers.klaviyo.com/en/docs/get_started.md): Create a private API key and make your first call to the Klaviyo API in a few minutes.
  - [Create a test account](https://developers.klaviyo.com/en/docs/create_a_test_account.md): Learn how to create a sandbox account that is linked to your production account login. Test your code end-to-end.
  - [Install a library](https://developers.klaviyo.com/en/docs/install_a_library.md): Discover the SDKs Klaviyo currently offers and learn how to install a client library to get started.
  - [Authenticate API requests](https://developers.klaviyo.com/en/docs/authenticate_.md): Learn how to authenticate requests to Klaviyo's server- and client-side endpoints.
  - [Make a test API request](https://developers.klaviyo.com/en/docs/make_your_first_api_call.md): Test your connection via API request, confirm your authentication is working, and that your application can connect with Klaviyo's servers.
- [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling.md): Refer to our list of status codes, error responses, rate limits, and ingestion limits for troubleshooting help.
- [Set up your AI agent](https://developers.klaviyo.com/en/docs/agent_setup.md): Connect AI agents such as Claude, ChatGPT, Cursor and VS Code to Klaviyo with the MCP server and CLI, and give them Klaviyo's docs as Markdown and the OpenAPI spec.

## Klaviyo API essentials

- [Klaviyo's data model](https://developers.klaviyo.com/en/docs/introduction_to_klaviyos_data_model.md): Learn about Klaviyo's customer data object model, including Metrics, Profiles, and Catalogs, Feeds.
- [Klaviyo's architecture](https://developers.klaviyo.com/en/docs/klaviyos_architecture.md): Learn and understand the building blocks of Klaviyo's real time data object platform architecture.
- [JSON:API feature guides](https://developers.klaviyo.com/en/docs/json_api_feature_guides.md): Learn more about the JSON:API features supported by the new APIs.
  - [Relationships](https://developers.klaviyo.com/en/docs/relationships_.md): Learn more about resource relationships available with the JSON:API standard.
  - [Filtering](https://developers.klaviyo.com/en/docs/filtering_.md): Learn how to use our JSON:API filtering syntax.
  - [Sorting](https://developers.klaviyo.com/en/docs/sorting_.md): Klaviyo Developers | Learn how to use our JSON:API sorting feature.
  - [Datetimes](https://developers.klaviyo.com/en/docs/datetimes_.md): Klaviyo Developers | Learn how to format datetimes for Klaviyo's APIs.
  - [Sparse fieldsets](https://developers.klaviyo.com/en/docs/sparse_fieldsets.md): Learn how to request specific fields from resources.

## Developer SDKS & tools

- [Web and Mobile SDKs](https://developers.klaviyo.com/en/docs/sdk_overview.md): Klaviyo offers SDKs for server-side languages (Python, PHP, Ruby, Node) and mobile platforms (iOS, Android, React Native, Flutter).
- [Developer tools](https://developers.klaviyo.com/en/docs/developer-tools.md)
  - [Generate sample data](https://developers.klaviyo.com/en/docs/generate_sample_data.md): Learn how to use the Sample Data Generation Tool to populate your Klaviyo account with three types of sample data: Klaviyo, custom ecommerce integration, and catalog data.
  - [Monitor API usage](https://developers.klaviyo.com/en/docs/monitor_api_usage.md)
  - [Review API error alerts](https://developers.klaviyo.com/en/docs/review_api_error_alerts.md): Learn where to view additional details about API error alerts and suggested actions to resolve them.
  - [Use Klaviyo's Postman collections](https://developers.klaviyo.com/en/docs/use_klaviyos_postman_collections.md): Learn how to use our Postman collections to get started with Klaviyo's APIs
  - [Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md): Call every Klaviyo API operation as a typed command from your terminal, to build, test and script your integration, or to give an AI agent the API.
  - [Create an allowlist for your public API key](https://developers.klaviyo.com/en/docs/create_public_api_key_allow_list.md): Create an allowlist for where your public keys can be used.
  - [Glossary index](https://developers.klaviyo.com/en/docs/glossary_index.md): Learn and define terms commonly used by Klaviyo and email marketing professionals.
- [Klaviyo MCP server](https://developers.klaviyo.com/en/docs/klaviyo_mcp_server.md): Get AI assistance with your Klaviyo data using Klaviyo's MCP server.
  - [Available tools](https://developers.klaviyo.com/en/docs/klaviyo_mcp_server_available_tools.md): Browse the tools the Klaviyo MCP server exposes, grouped by category.
  - [Connect to the MCP server](https://developers.klaviyo.com/en/docs/connect_to_the_klaviyo_mcp_server.md): Configure your MCP client to connect to Klaviyo's remote-hosted or local MCP server.
- [Klaviyo Stripe Projects Agent Context](https://developers.klaviyo.com/en/docs/klaviyo_stripe_projects_context.md): Orientation for AI agents building against a Klaviyo account on Stripe Projects.
- [Klaviyo text messaging (SMS)](https://developers.klaviyo.com/en/docs/klaviyo_text_messaging.md): Provision and manage SMS senders and their carrier registrations with Klaviyo's v3 text-messaging API.

## Partner resources

- [Join the Klaviyo ecosystem](https://developers.klaviyo.com/en/docs/build_your_integration.md): Learn what makes a great Klaviyo app so you can start building your own.
- [How your customers can use integrated data in Klaviyo](https://developers.klaviyo.com/en/docs/integrated_data_in_klaviyo.md): Want to learn about how your customers can use integrated data in Klaviyo? Read on to learn what Klaviyo can do and get inspired to create new use cases and apps.
- Build your app
  - Implement OAuth
    - [Create a public OAuth app](https://developers.klaviyo.com/en/docs/create_a_public_oauth_app.md): Learn how to create a public OAuth app in Klaviyo.
    - [Make API calls using OAuth](https://developers.klaviyo.com/en/docs/set_up_oauth.md): Learn how to set up OAuth for your Klaviyo integration.
    - [Handle your app's OAuth flow](https://developers.klaviyo.com/en/docs/handle_your_apps_oauth_flow.md): Learn best practices for handling your app’s OAuth installation flow.
    - [Troubleshoot OAuth errors](https://developers.klaviyo.com/en/docs/troubleshoot_oauth_errors.md): Learn how to troubleshoot OAuth errors.
    - [Update your OAuth scopes](https://developers.klaviyo.com/en/docs/update_your_oauth_scopes.md): Learn how to update your OAuth scopes and handle reauthorization effectively.
    - [Build a user-scoped app](https://developers.klaviyo.com/en/docs/user_scoped_apps.md): Learn when to build a user-scoped OAuth app, how to create one, and how to handle per-user tokens, scopes, and revocation.
  - [Branding for app metrics](https://developers.klaviyo.com/en/docs/understanding_branded_events.md): Learn how to set up and use branding for your app metrics.
  - [Submit flow templates for your app](https://developers.klaviyo.com/en/docs/submit_flow_templates_for_your_app.md): Learn how to submit flow templates for your customers to use in Klaviyo's flow library
  - [Get performance data for flows triggered by your app metrics](https://developers.klaviyo.com/en/docs/get_performance_data_for_flows_triggered_by_your_app_metrics.md): Learn how to get flow-specific performance data related to an app metric.
  - [Submit Customer Hub content block templates for your app](https://developers.klaviyo.com/en/docs/submit_customer_hub_content_block_templates_for_your_app.md): Submit app-created content block templates for Klaviyo's Customer Hub
- Submit, publish, and manage your app
  - Prepare your app
    - [Klaviyo app listing requirements](https://developers.klaviyo.com/en/docs/klaviyo_app_listing_requirements.md)
    - [Create help docs for your integration](https://developers.klaviyo.com/en/docs/drive_integration_adoption.md): Learn how to create help documentation to drive integration adoption.
    - [Pass your app review](https://developers.klaviyo.com/en/docs/pass_your_app_review.md): Learn best practices and common pitfalls to cut down review time and boost your app’s chances of approval.
  - [Submit your app for review](https://developers.klaviyo.com/en/docs/submit_your_app_for_review.md): Learn about the app submission process and how to submit your app for review to be considered for inclusion in Klaviyo’s App Marketplace.
  - [Create promotional material for your integration](https://developers.klaviyo.com/en/docs/create_promotional_material_for_your_integration.md): Learn how to create promotional material to drive interest and adoption for your integration.
  - [Monitor your app](https://developers.klaviyo.com/en/docs/monitor_your_app.md): Monitor your OAuth app's API activity and marketplace performance using the Insights tab.
  - [Manage your app](https://developers.klaviyo.com/en/docs/manage_your_app.md): Learn how to access, update, and manage your app
- [Migrate to OAuth from private key authentication](https://developers.klaviyo.com/en/docs/migrate_to_oauth_from_private_key_authentication.md): Switch to OAuth to ensure your app is discoverable in Klaviyo's app marketplace.
- [Application objects for app partners](https://developers.klaviyo.com/en/docs/application_objects_for_app_partners.md): Learn how to build shared schema custom objects that automatically appear in your installer's Klaviyo accounts when they install your app.

## Integrate with Klaviyo

- Integrations by use case
  - [Integrate an ecommerce platform without a pre-built Klaviyo integration](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_platform_without_a_pre_built_klaviyo_integration.md): Learn how to sync an ecommerce platform with Klaviyo JS and custom integrations.
  - [Integrate a subscription ecommerce platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_subscription_ecommerce_platform.md): Learn how to sync a subscription ecommerce platform with Klaviyo using open source APIs and direct integrations.
  - [Integrate a business with brick-and-mortar locations](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_business_with_brick_and_mortar_locations.md): Learn how a business with brick-and-mortar locations can sync important metrics, or key customer activities, to Klaviyo.
  - [Integrate a ticket-based or registration-based platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_ticket_based_or_registration_based_platform.md): Learn how to sync a ticket software system or registration-based platform with Klaviyo using open source APIs.
  - [Integrate a content-based platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_content_based_platform.md): Learn how to sync a content-marketing platform with Klaviyo using open source APIs and custom options.
  - [Integrate with a Shopify Hydrogen store](https://developers.klaviyo.com/en/docs/integrate_with_a_shopify_hydrogen_store.md): Learn how to integrate with a Shopify Hydrogen store, or with any headless Shopify store using a custom storefront
  - [Integrate with a BigCommerce Catalyst store](https://developers.klaviyo.com/en/docs/integrate_with_a_bigcommerce_catalyst_store.md): Learn how to integrate with a BigCommerce Catalyst store, BigCommerce’s customizable, headless storefront.
  - [Integrate a direct mail platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_direct_mail_platform.md): Learn how to sync a direct mail platform with Klaviyo using audience sync, flow-triggered sends, and mail lifecycle events.
  - [Integrate a food and beverage platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_food_and_beverage_platform.md): Learn how to sync a food and beverage platform with Klaviyo using open source APIs and direct integrations.
  - [Integrate a forms and popups platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_forms_and_popups_platform.md): Learn how to sync a forms or popup platform with Klaviyo by subscribing profiles to lists with compliant email and SMS consent.
  - [Integrate a helpdesk platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_helpdesk_platform.md): Learn how to sync a helpdesk or CX platform with Klaviyo using ticket lifecycle and CSAT events to drive support-aware messaging.
  - [Integrate a hotel and travel platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_hotel_and_travel_platform.md): Learn how to sync a hotel and travel platform with Klaviyo using open source APIs and direct integrations.
  - [Integrate a loyalty platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_loyalty_platform.md): Learn how to sync a loyalty platform with Klaviyo using profile properties and events for points, tiers, rewards, and referrals.
  - [Integrate a phone platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_phone_platform.md): Learn how to sync a phone or voice platform with Klaviyo using call events for post-call flows, missed-call recovery, and attribution.
  - [Integrate a quiz and survey platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_quiz_and_survey_platform.md): Learn how to sync a quiz or survey platform with Klaviyo by writing zero-party data to profile properties and emitting quiz events.
  - [Integrate a reviews platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_reviews_platform.md): Learn how to sync a reviews or UGC platform with Klaviyo using review lifecycle events and reviewer profile properties.
  - [Integrate a search and merchandising platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_search_and_merchandising_platform.md): Learn how to sync a site search or merchandising platform with Klaviyo using onsite search events and segment-based personalization.
  - [Integrate a shipping platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_shipping_platform.md): Learn how to sync a shipping platform with Klaviyo to power branded post-purchase messaging with order and shipment events.
  - [Integrate a wellness platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_a_wellness_platform.md): Learn how to sync a wellness platform with Klaviyo using open source APIs and direct integrations.
  - [Integrate an ad platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_an_ad_platform.md): Learn how to sync Klaviyo audiences to your ad platform and send ad engagement events back to Klaviyo profiles.
  - [Integrate an analytics and reporting platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_an_analytics_and_reporting_platform.md): Learn how to pull Klaviyo campaign, flow, and metric performance into an analytics, attribution, or BI platform using the Reporting API.
  - [Integrate an onsite personalization platform](https://developers.klaviyo.com/en/docs/guide_to_integrating_an_onsite_personalization_platform.md): Learn how to sync an onsite personalization platform with Klaviyo: pull segments to personalize the storefront and push recommendation events back.
- [Custom integration FAQs](https://developers.klaviyo.com/en/docs/custom_integration_faqs.md): If you’re building a custom integration with Klaviyo using our APIs, here are some common questions and answers to keep in mind.

## Build with Klaviyo

- [Use data in Klaviyo](https://developers.klaviyo.com/en/docs/using_data_in_klaviyo.md): Learn how data is used in Klaviyo and how to transfer it into its customer data platform.
  - [Set up SFTP data transfer with Klaviyo](https://developers.klaviyo.com/en/docs/use_klaviyos_sftp_tool.md): Learn how to establish a connection to Klaviyo's SFTP server that can be used to import and export data into and out of Klaviyo.
  - Importing data
    - [Bulk Import Profiles API](https://developers.klaviyo.com/en/docs/use_klaviyos_bulk_profile_import_api.md): Klaviyo Developers | Use Klaviyo's Bulk Import Profiles API
    - [Import profile and event data with SFTP](https://developers.klaviyo.com/en/docs/sftp_import_tool.md): Learn how to use your SFTP client and Klaviyo’s SFTP import tool to bring profile and event data into Klaviyo.
  - Exporting data
    - [Export data from Klaviyo](https://developers.klaviyo.com/en/docs/export_data_from_klaviyo.md): Learn and understand how to export data objects from Klaviyo, including how to integrate Klaviyo with a data warehouse.
    - [Use the Query Metric Aggregates endpoint](https://developers.klaviyo.com/en/docs/using_the_query_metric_aggregates_endpoint.md): Learn how to query and aggregate event data.
    - [Supported attributes](https://developers.klaviyo.com/en/docs/supported_metrics_and_attributes.md)
    - [Export event data with SFTP](https://developers.klaviyo.com/en/docs/export_event_data_sftp.md): Learn how to use your SFTP client and Klaviyo’s SFTP export tool to download event data from Klaviyo.
- Track events & identify profiles
  - [Introduction to the klaviyo object](https://developers.klaviyo.com/en/docs/introduction_to_the_klaviyo_object.md): Learn more about the new klaviyo JavaScript object, which offers full support for callbacks and promises.
  - [JavaScript API for identification and tracking](https://developers.klaviyo.com/en/docs/javascript_api.md): Learn how to use Klaviyo's JavaScript API to identify and track users on your website.
  - [Set up API-based transactional emails](https://developers.klaviyo.com/en/docs/guide_to_setting_up_api_based_transactional_events.md): Learn how to set up tracking for transactional events on your website using Klaviyo’s server-side Track API to enhance your marketing goals.
  - [Set up API-based website activity events](https://developers.klaviyo.com/en/docs/guide_to_setting_up_api_based_website_activity_events.md): Learn how to set up tracking for events on your website using Klaviyo’s APIs to enhance your marketing goals.
  - [Track API metrics with JavaScript](https://developers.klaviyo.com/en/docs/custom_event_tracking.md): Define any JS activity and track it within Klaviyo. Use events (metrics) to trigger messages through flows or to track events for custom reporting.
  - [Update profile identifiers via API](https://developers.klaviyo.com/en/docs/update_profile_properties_via_api.md): Learn how to update profile identifier fields using Klaviyo's RESTful APIs.
  - [Acceptable date and timestamp formats for profile and event properties](https://developers.klaviyo.com/en/docs/acceptable_date_and_timestamp_formats_for_profile_and_event_properties.md): Learn acceptable date and timestamp formats for profile properties added via API.
- Collect and sync consent
  - [Collect email and SMS consent via API](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api.md): Learn how to collect consent and best practices
- Custom catalogs and Back in stock
  - [Sync a custom catalog feed to Klaviyo](https://developers.klaviyo.com/en/docs/guide_to_syncing_a_custom_catalog_feed_to_klaviyo.md): Learn how to sync a custom product catalog feed to Klaviyo in JSON or XML.
  - [Enable back in stock for custom catalog feeds](https://developers.klaviyo.com/en/docs/how_to_enable_back_in_stock_for_custom_catalog_feeds.md): Learn how to enable back in stock tracking in Klaviyo for custom catalog feed items based on inventory quantity, to alert users when items are back in stock.
  - [Set up back in stock via API](https://developers.klaviyo.com/en/docs/how_to_set_up_custom_back_in_stock.md): Learn how to set up Klaviyo's back in stock product notification functionality via API.
- [Manage coupons with the Coupons API](https://developers.klaviyo.com/en/docs/use_klaviyos_coupons_api.md): Learn how to automate coupon code uploads.
- [Get started with the Conversations API](https://developers.klaviyo.com/en/docs/get_started_with_the_conversations_api.md): Learn how the Conversations API works, how access is granted, and how to send your first reply.

## Personalize messages

- Flow webhooks
  - [How to add a webhook action to a flow](https://developers.klaviyo.com/en/docs/how_to_add_a_webhook_action_to_a_flow.md): Learn how to add a webhook action into a Klaviyo flow to perform HTTP POST requests.
  - [Understanding webhook status codes](https://developers.klaviyo.com/en/docs/understanding_webhook_status_codes.md): Klaviyo receives HTTP status codes from your third-party providers. These codes are recorded in the platform log and allow you to review and take any appropriate actions.
- [Add a custom action to a flow](https://developers.klaviyo.com/en/docs/add_a_custom_action_to_a_flow.md): Execute pre-build or custom Python and Node.js action in flows with custom actions.
- System webhooks
  - [Working with system webhooks](https://developers.klaviyo.com/en/docs/working_with_system_webhooks.md): Learn how to receive and verify system webhook requests.
- Django for message design
  - [Message design overview](https://developers.klaviyo.com/en/docs/django_message_design.md): Learn about template variables, tags, and filters for message design in Klaviyo using Django template language.
  - [Use filters to customize variables](https://developers.klaviyo.com/en/docs/use_filters_to_customize_variables.md): Learn how filters in Klaviyo allow you to customize the format and content of variables in the messages you send.
  - [Use conditionals in messages](https://developers.klaviyo.com/en/docs/use_conditionals_in_messages.md): Learn how conditional tags in Klaviyo give you powerful controls for personalization in your messaging.
  - [Django filter glossary](https://developers.klaviyo.com/en/docs/glossary_of_variable_filters.md): Use the variable filter glossary to understand how to use variable filters to support built-in Django and custom filters for email and SMS editors.
- [Use custom catalog data in emails](https://developers.klaviyo.com/en/docs/how_to_use_custom_catalog_data_in_emails.md): Use custom catalog data in Klaviyo to enhance your emails.
- [Send AMP emails in Klaviyo](https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo.md): Learn how to use Klaviyo to send dynamic AMP emails.
- Forms
  - [Custom trigger a popup or flyout form](https://developers.klaviyo.com/en/docs/how_to_custom_trigger_a_popup_or_flyout_form.md): Set-up and create a a popup or flyout form using Klaviyo client side APIs for custom triggering forms on your website.
  - [Track Klaviyo form activity using JavaScript](https://developers.klaviyo.com/en/docs/track_klaviyo_form_activity_using_javascript.md): Learn how to use event listeners to trigger custom JavaScript based on how a site visitor interacts with a form, in order to learn about their behavior or interact with your site visitors more personally.
- Reviews widget customization
  - [Use advanced CSS to style Klaviyo Reviews widgets](https://developers.klaviyo.com/en/docs/use_css_to_style_klaviyo_reviews_widgets.md): Elevate the appearance of your Klaviyo reviews widgets with advanced CSS customization.
  - [Klaviyo Reviews CSS class reference](https://developers.klaviyo.com/en/docs/klaviyo_reviews_css_class_reference.md)
