# Klaviyo Developers > Klaviyo's developer documentation: guides, and a reference for the Klaviyo REST API, revision 2026-10-15, generated from the OpenAPI spec. The guides and each API resource have their own llms.txt, which links the Markdown version of each page. Every endpoint is served from https://a.klaviyo.com. ## When to use what - Use the REST API, at https://a.klaviyo.com, to read or change a Klaviyo account's data from code you're writing, such as an integration or an app. Authenticate with a private API key, or with OAuth for an app that other Klaviyo accounts install, and send a `revision` header with every request. - Use the [client endpoints](https://developers.klaviyo.com/en/reference/client/llms.txt) from a browser or a mobile app, with the account's public API key. Never put a private API key in code that runs on a visitor's device. - Use one of Klaviyo's SDKs, for Python, Node.js, Ruby or PHP, instead of raw HTTP requests when your code is in one of those languages: [SDK overview](https://developers.klaviyo.com/en/docs/sdk_overview.md). - Use the Klaviyo MCP server to work with an account's data from an AI assistant or agent, without writing code against the API: [set up the MCP server](https://developers.klaviyo.com/en/docs/connect_to_the_klaviyo_mcp_server.md). ## Guides - [Developer guides](https://developers.klaviyo.com/en/docs/llms.txt): how to authenticate, use the JSON:API features, integrate a platform and build an app ## Agent skills Step-by-step guides an AI coding agent can follow to build on the API. Pick the one skill that fits the task and read its SKILL.md; fetch the files it links to only when a step needs them. https://developers.klaviyo.com/.well-known/skills/index.json lists every skill's files. - [Build with an AI agent](https://developers.klaviyo.com/en/agents.md) - [All agent skills](https://developers.klaviyo.com/en/agents/skills.md) - [klaviyo-migrate-oauth](https://developers.klaviyo.com/.well-known/skills/klaviyo-migrate-oauth/SKILL.md): Use this skill when someone has an existing Klaviyo integration using a private API key and wants to migrate it to OAuth. Triggers when a user says things like "migrate my Klaviyo integration to OAuth", "convert from API key to OAuth", "I'm using Klaviyo-API-Key and need to switch to OAuth", "Klaviyo is requiring OAuth for the marketplace", or shares a codebase with Klaviyo-API-Key usage and asks how to convert it. Covers: auditing existing API key usage, mapping endpoints to OAuth scopes, creating the OAuth app, implementing PKCE, swapping auth headers, updating revision headers, and handling existing users through the transition. - [klaviyo-new-oauth](https://developers.klaviyo.com/.well-known/skills/klaviyo-new-oauth/SKILL.md): Use this skill when someone is building a brand new Klaviyo integration using OAuth from scratch. Triggers when a user says things like "I want to integrate with Klaviyo", "help me build a Klaviyo OAuth app", "I need to connect my app to Klaviyo", "how do I set up Klaviyo OAuth", or shares a codebase and asks how to add Klaviyo as an integration. Covers: creating an OAuth app, selecting scopes, implementing the PKCE flow, token storage, making API calls with Bearer tokens, and revision header requirements. - [klaviyo-onsite-forms](https://developers.klaviyo.com/.well-known/skills/klaviyo-onsite-forms/SKILL.md): Use this skill when someone with Klaviyo on a Vercel Shop or other headless storefront wants a Klaviyo signup form on it: "add a popup to my store", "create a Klaviyo flyout for 10% off", "change the popup copy", "publish the signup form", "take the popup down", or "why isn't my popup showing". Covers creating a popup, flyout, full-screen, banner or embedded form from an existing one, targeting it to only this storefront's hosts so other sites on the same Klaviyo account are untouched, editing its draft, publishing and unpublishing it, and checking it renders. Needs klaviyo.js already on the site, which klaviyo-vercel-shop adds. - [klaviyo-store-analytics](https://developers.klaviyo.com/.well-known/skills/klaviyo-store-analytics/SKILL.md): Use this skill when someone with Klaviyo connected to their storefront asks how it's doing or wants a draft campaign from that data: "how many signups did the new storefront get", "which flows reached the most people last month", "rank our campaigns by click rate", "how much revenue came from email vs SMS", "how many shoppers used the shopping agent", or "draft a campaign for people who viewed but didn't buy". Covers read-only reporting through the Klaviyo MCP server (metric aggregates, campaign, flow, form and segment reports, profiles), questions specific to a Vercel Shop storefront's events and signup sources, and building segments, templates and campaigns as drafts that a person reviews and sends. Never sends anything. - [klaviyo-vercel-shop](https://developers.klaviyo.com/.well-known/skills/klaviyo-vercel-shop/SKILL.md): Use this skill when someone wants to add Klaviyo to a Vercel Shop storefront (the Next.js and Shopify template from vercel.shop), or says "connect Klaviyo to my Vercel shop", "track product views and add to cart in Klaviyo", "add an email signup to my headless Shopify store", "add back in stock alerts", or "why aren't my storefront events showing up in Klaviyo". Covers connecting the Klaviyo account, adding consent-gated onsite tracking on the Hydrogen analytics bus, a footer signup form, back-in-stock alerts, identifying signed-in customers, a welcome flow, Vercel environment variables, and verifying events arrive. For Shop Agent, onsite forms or reporting, use klaviyo-vercel-shop-agent, klaviyo-onsite-forms or klaviyo-store-analytics after this one. - [klaviyo-vercel-shop-agent](https://developers.klaviyo.com/.well-known/skills/klaviyo-vercel-shop-agent/SKILL.md): Use this skill when someone has Klaviyo on a Vercel Shop storefront and wants Shop Agent, the storefront's AI shopping assistant, to work with it: "let the shopping agent sign people up for back in stock", "have the AI assistant capture emails for sold-out sizes", "track Shop Agent in Klaviyo", or "segment shoppers who used the agent". Covers the notify-when-back-in-stock agent tool, the instruction that tells the agent when to offer it, the browser bridge that records a Used Shop Agent event and a Shop Agent user profile property, and verifying the conversation end to end. Needs klaviyo-vercel-shop applied first. ### Experimental skills These skills are best effort and may change, so review what they produce. They aren't in the skills index, so installing from this site skips them: install one by name from `klaviyo-labs/skills` instead. - [klaviyo-account-overview](https://developers.klaviyo.com/.well-known/skills/klaviyo-account-overview/SKILL.md): EXPERIMENTAL: preview skill, unsupported and may change. Onboarding tour of a newly connected Klaviyo account, covering what is set up, recent performance, three opportunities and one next step. Use when the user just connected Klaviyo, asks what it can do, or asks where to start. Not for a specific reporting question, such as ranking campaigns or comparing channels. Read-only. Requires the Klaviyo MCP server. - [klaviyo-brand-voice](https://developers.klaviyo.com/.well-known/skills/klaviyo-brand-voice/SKILL.md): EXPERIMENTAL: preview skill, unsupported and may change. Capture a brand's voice, tone, messaging principles, style rules, and words to use or avoid as a reusable voice guide, then apply it whenever drafting or revising Klaviyo campaign, flow, SMS, or form copy. Use when the user asks to set up, document, or refine their brand voice, or asks for copy that "sounds like us". Never sends. Requires the Klaviyo MCP server. - [klaviyo-insight-to-draft](https://developers.klaviyo.com/.well-known/skills/klaviyo-insight-to-draft/SKILL.md): EXPERIMENTAL: preview skill, unsupported and may change. Turn a finding already in the conversation into one approved draft change in Klaviyo: a segment plus draft campaign, revised campaign copy, or an edited flow message. Use when the user says "fix it", "set that up", "act on that", or "target the people who did X" right after a performance report or account overview surfaced a problem. Not for building a segment or campaign from scratch with no finding behind it. Never sends a campaign; its only send is a test email to an address the user confirms. Requires the Klaviyo MCP server. - [klaviyo-product-data-model](https://developers.klaviyo.com/.well-known/skills/klaviyo-product-data-model/SKILL.md): Interview a user about their B2B product (businesses or accounts, the people who hold seats in them, business-level state like plan, seat limits and "sales contacted", and the events the product emits) and turn the answers into a Klaviyo data model: a Business custom object linked to seat profiles, plus one profile per business for business-level events. Also turn the situations the user wants to detect into segments and draft flows. Then create it in a Klaviyo account through the Klaviyo MCP. Use this whenever someone wants to model a B2B SaaS or PLG product in Klaviyo, set up custom objects for accounts, teams or workspaces, target "only seats at businesses over 90% of their limit" or "don't message businesses Sales contacted recently" audiences, send product-usage lifecycle email from Klaviyo, or demo Klaviyo for a non-retail product, even if they never say "custom object" or "data model". Also use it to draft or review such a spec or event catalog. - [klaviyo-product-friction-analytics](https://developers.klaviyo.com/.well-known/skills/klaviyo-product-friction-analytics/SKILL.md): Build a product friction investigator on Klaviyo — instrument a web app to emit workflow and error events, stitch them to one profile and session, verify delivery, and visualize failure rate, affected users, failure reasons, and recovery in Grafana. Use when someone wants non-marketing product analytics on Klaviyo, wants to diagnose why users fail a core workflow (checkout, signup, booking, payment, upload), or asks to track error and recovery events with Klaviyo's Events API and build a dashboard on them. - [klaviyo-weekly-brief](https://developers.klaviyo.com/.well-known/skills/klaviyo-weekly-brief/SKILL.md): EXPERIMENTAL: preview skill, unsupported and may change. One-minute weekly Klaviyo check-in that compares last week with the week before for campaigns and flows, names the biggest movers, and recommends one action. Use whenever someone asks for a weekly brief, how last week went, a Monday Klaviyo update, a recurring check-in, or whether a recent change worked. Not for other time windows or one-off reporting questions. Read-only. Requires the Klaviyo MCP server. ## Resources - [Accounts](https://developers.klaviyo.com/en/reference/accounts/llms.txt): 2 endpoints - [Billing](https://developers.klaviyo.com/en/reference/billing/llms.txt): 2 endpoints - [Brands](https://developers.klaviyo.com/en/reference/brands/llms.txt): 25 endpoints - [Campaigns](https://developers.klaviyo.com/en/reference/campaigns/llms.txt): 59 endpoints - [Catalogs](https://developers.klaviyo.com/en/reference/catalogs/llms.txt): 55 endpoints - [Conversations](https://developers.klaviyo.com/en/reference/conversations/llms.txt): 1 endpoint - [Coupons](https://developers.klaviyo.com/en/reference/coupons/llms.txt): 17 endpoints - [Custom Objects](https://developers.klaviyo.com/en/reference/custom-objects/llms.txt): 39 endpoints - [Data Privacy](https://developers.klaviyo.com/en/reference/data-privacy/llms.txt): 1 endpoint - [Events](https://developers.klaviyo.com/en/reference/events/llms.txt): 8 endpoints - [Flows](https://developers.klaviyo.com/en/reference/flows/llms.txt): 22 endpoints - [Forms](https://developers.klaviyo.com/en/reference/forms/llms.txt): 12 endpoints - [Images](https://developers.klaviyo.com/en/reference/images/llms.txt): 5 endpoints - [Lists](https://developers.klaviyo.com/en/reference/lists/llms.txt): 13 endpoints - [Metrics](https://developers.klaviyo.com/en/reference/metrics/llms.txt): 24 endpoints - [Profiles](https://developers.klaviyo.com/en/reference/profiles/llms.txt): 38 endpoints - [Reporting](https://developers.klaviyo.com/en/reference/reporting/llms.txt): 7 endpoints - [Reviews](https://developers.klaviyo.com/en/reference/reviews/llms.txt): 3 endpoints - [Segments](https://developers.klaviyo.com/en/reference/segments/llms.txt): 11 endpoints - [Tags](https://developers.klaviyo.com/en/reference/tags/llms.txt): 26 endpoints - [Templates](https://developers.klaviyo.com/en/reference/templates/llms.txt): 17 endpoints - [Text Messaging](https://developers.klaviyo.com/en/reference/text-messaging/llms.txt): 9 endpoints - [Tracking Settings](https://developers.klaviyo.com/en/reference/tracking-settings/llms.txt): 3 endpoints - [Translations](https://developers.klaviyo.com/en/reference/translations/llms.txt): 13 endpoints - [Web Feeds](https://developers.klaviyo.com/en/reference/web-feeds/llms.txt): 5 endpoints - [Webhooks](https://developers.klaviyo.com/en/reference/webhooks/llms.txt): 7 endpoints - [Client](https://developers.klaviyo.com/en/reference/client/llms.txt): 12 endpoints ## Beta APIs Endpoints in beta at revision 2026-10-15. Send `revision: 2026-10-15.pre` to call them; they may change before they're generally available. - [API Keys](https://developers.klaviyo.com/en/reference/api-keys-beta/llms.txt): 3 endpoints - [Applications](https://developers.klaviyo.com/en/reference/applications-beta/llms.txt): 16 endpoints - [Brands](https://developers.klaviyo.com/en/reference/brands-beta/llms.txt): 8 endpoints - [Custom Objects](https://developers.klaviyo.com/en/reference/custom-objects-beta/llms.txt): 31 endpoints - [Customer Agent](https://developers.klaviyo.com/en/reference/customer-agent-beta/llms.txt): 46 endpoints - [Events](https://developers.klaviyo.com/en/reference/events-beta/llms.txt): 3 endpoints - [Forms](https://developers.klaviyo.com/en/reference/forms-beta/llms.txt): 6 endpoints - [Location Hub](https://developers.klaviyo.com/en/reference/location-hub-beta/llms.txt): 21 endpoints - [Profiles](https://developers.klaviyo.com/en/reference/profiles-beta/llms.txt): 6 endpoints - [Reporting](https://developers.klaviyo.com/en/reference/reporting-beta/llms.txt): 5 endpoints - [Sending Domains](https://developers.klaviyo.com/en/reference/sending-domains-beta/llms.txt): 10 endpoints - [Service](https://developers.klaviyo.com/en/reference/service-beta/llms.txt): 24 endpoints ## Specs and tools - [Essentials in full](https://developers.klaviyo.com/llms-full.txt): the essential guides and every agent skill in one Markdown file, with links to every guide and each resource's endpoint pages in full - [OpenAPI spec](https://developers.klaviyo.com/openapi.json): the OpenAPI spec this reference is generated from - [Klaviyo MCP server](https://developers.klaviyo.com/.well-known/mcp/server-card.json): connection details for Klaviyo's remote MCP server - [Docs MCP server](https://klaviyo-public-docs.mcp.kapa.ai): a remote MCP server (streamable HTTP), run by kapa.ai, that answers questions from these docs. It signs in with OAuth ## Other API revisions Each revision of the API has its own reference. Read the one matching the `revision` header your requests send. - [revision 2026-07-15](https://developers.klaviyo.com/en/v2026-07-15/reference/llms.txt) - [revision 2026-07-15.pre (beta)](https://developers.klaviyo.com/en/v2026-07-15.pre/reference/llms.txt) - [revision 2026-04-15](https://developers.klaviyo.com/en/v2026-04-15/reference/llms.txt) - [revision 2026-04-15.pre (beta)](https://developers.klaviyo.com/en/v2026-04-15.pre/reference/llms.txt) - [revision 2026-01-15](https://developers.klaviyo.com/en/v2026-01-15/reference/llms.txt) - [revision 2026-01-15.pre (beta)](https://developers.klaviyo.com/en/v2026-01-15.pre/reference/llms.txt) - [revision 2025-10-15](https://developers.klaviyo.com/en/v2025-10-15/reference/llms.txt) - [revision 2025-07-15](https://developers.klaviyo.com/en/v2025-07-15/reference/llms.txt) - [revision 2025-07-15.pre (beta)](https://developers.klaviyo.com/en/v2025-07-15.pre/reference/llms.txt) - [revision 2025-04-15](https://developers.klaviyo.com/en/v2025-04-15/reference/llms.txt) - [revision 2025-04-15.pre (beta)](https://developers.klaviyo.com/en/v2025-04-15.pre/reference/llms.txt) - [revision 2025-01-15](https://developers.klaviyo.com/en/v2025-01-15/reference/llms.txt) - [revision 2025-01-15.pre (beta)](https://developers.klaviyo.com/en/v2025-01-15.pre/reference/llms.txt) - [revision 2024-10-15](https://developers.klaviyo.com/en/v2024-10-15/reference/llms.txt) - [revision 2024-07-15](https://developers.klaviyo.com/en/v2024-07-15/reference/llms.txt) - [revision 2024-06-15](https://developers.klaviyo.com/en/v2024-06-15/reference/llms.txt) - [revision 2024-05-15](https://developers.klaviyo.com/en/v2024-05-15/reference/llms.txt) - [revision 2024-02-15](https://developers.klaviyo.com/en/v2024-02-15/reference/llms.txt) - [revision 2023-12-15](https://developers.klaviyo.com/en/v2023-12-15/reference/llms.txt) - [revision 2023-10-15](https://developers.klaviyo.com/en/v2023-10-15/reference/llms.txt) - [revision 2023-09-15](https://developers.klaviyo.com/en/v2023-09-15/reference/llms.txt) - [revision 2023-08-15](https://developers.klaviyo.com/en/v2023-08-15/reference/llms.txt) - [revision 2023-08-15.pre (beta)](https://developers.klaviyo.com/en/v2023-08-15.pre/reference/llms.txt) - [revision 2023-07-15](https://developers.klaviyo.com/en/v2023-07-15/reference/llms.txt) - [revision 2023-06-15](https://developers.klaviyo.com/en/v2023-06-15/reference/llms.txt) - [revision 2023-02-22](https://developers.klaviyo.com/en/v2023-02-22/reference/llms.txt) - [revision 2023-01-24](https://developers.klaviyo.com/en/v2023-01-24/reference/llms.txt) - [revision 2022-10-17](https://developers.klaviyo.com/en/v2022-10-17/reference/llms.txt)