MetorialDocs

Set up Klaviyo in Metorial for Claude, ChatGPT and Cursor

Share Klaviyo with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or private API key sign-in, 22 tools (10 read-only).

To give your team Klaviyo in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Klaviyo integration in a Metorial portal, and each person signs in to Klaviyo with their own account. Agents can manage email, SMS, and push notification marketing campaigns for eCommerce. The integration has 22 tools, 10 read-only, 11 write and 1 destructive, plus 3 triggers.

What you'll learn

  • How an admin shares Klaviyo in a portal and how each person connects
  • The 30 OAuth scopes Klaviyo can request, and what each one allows
  • How to keep the 10 read-only tools and reject the other 12

Before you start

Sign-in methods

MethodTypeWhat a person provides
Private API KeyAPI tokentoken
OAuth (default)OAuthSigns in to Klaviyo after entering codeVerifier

The portal and metorial setup use OAuth unless someone picks another method.

Private API Key

To connect, a person enters:

  • token: Klaviyo Private API Key (found in Settings > API Keys)

OAuth

Before the sign-in, setup asks for:

  • codeVerifier (optional): PKCE code verifier (auto-generated)

People sign in to Klaviyo and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
accounts:readAccounts ReadRead account information (required by default)
campaigns:readCampaigns ReadRead campaigns and campaign messages
campaigns:writeCampaigns WriteCreate, update, and delete campaigns
catalogs:readCatalogs ReadRead catalog items, variants, and categories
catalogs:writeCatalogs WriteCreate, update, and delete catalog data
coupons:readCoupons ReadRead coupons and coupon codes
coupons:writeCoupons WriteCreate and manage coupons and coupon codes
data-privacy:writeData Privacy WriteRequest profile deletions for privacy compliance
events:readEvents ReadRead events and event data
events:writeEvents WriteCreate custom events
flows:readFlows ReadRead flows, flow actions, and flow messages
flows:writeFlows WriteCreate, update, and delete flows
forms:readForms ReadRead forms and form versions
images:readImages ReadRead uploaded images
images:writeImages WriteUpload and manage images
lists:readLists ReadRead lists and list membership
lists:writeLists WriteCreate, update, and delete lists and memberships
metrics:readMetrics ReadRead metrics and metric aggregates
profiles:readProfiles ReadRead customer profiles
profiles:writeProfiles WriteCreate, update, and manage customer profiles
segments:readSegments ReadRead segments and segment membership
segments:writeSegments WriteCreate, update, and delete segments
subscriptions:readSubscriptions ReadRead subscription statuses
subscriptions:writeSubscriptions WriteSubscribe and unsubscribe profiles
tags:readTags ReadRead tags and tag groups
tags:writeTags WriteCreate, update, and delete tags
templates:readTemplates ReadRead email templates
templates:writeTemplates WriteCreate, update, and delete email templates
webhooks:readWebhooks ReadRead webhooks and webhook topics
webhooks:writeWebhooks WriteCreate, update, and delete webhooks

Setup settings

Whichever method you pick, setup also asks for:

  • revision (optional): Klaviyo API revision date (e.g., 2026-04-15). Controls API version behavior.

Use your own Klaviyo OAuth app

With your own OAuth app, people see your company's name on the Klaviyo consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Klaviyo and copy the Redirect URI.

Register the app with Klaviyo

Create an OAuth app or client in Klaviyo and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Klaviyo integration.

Admin: share Klaviyo in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Klaviyo. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Klaviyo as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Klaviyo.

Choose who gets it

Add the access groups that should see Klaviyo. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Klaviyo integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search klaviyo

Employee: connect Klaviyo

In the portal

Open Klaviyo in the catalog

Sign in to your portal and open Klaviyo. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Klaviyo sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search klaviyo
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with Private API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Klaviyo connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list klaviyo
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 10 read-only tools, such as get_flows and get_forms, and lose the 11 write tools, such as manage_tags or track_event, and the destructive tool request_profile_deletion.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list klaviyo
metorial tools <integration-id>
metorial call <integration-id> get_account -d '{}'

metorial tools lists the 22 tools, minus any you rejected. get_account takes no input. It retrieves the Klaviyo account associated with the current credentials, including account identity, contact information, timezone, currency, and public API key when available.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (10)

  • get_segments: Retrieve segments from Klaviyo.
  • query_metric_aggregates: Query aggregate analytics data for a specific metric in Klaviyo. Needs metricId and measurements.
  • get_list_segment_profiles: Retrieve profiles belonging to a specific list or segment in Klaviyo.
  • get_events: Retrieve events (actions tracked for profiles) from Klaviyo.
  • get_profiles: Search and retrieve customer profiles from Klaviyo.
  • get_metrics: Retrieve available metrics (event types) from Klaviyo.
  • get_flows: Retrieve automation flows from Klaviyo.
  • query_reports: Query Klaviyo Reporting API values and time series for campaigns, flows, forms, and segments. Needs report and statistics.
  • get_forms: Retrieve Klaviyo signup forms.
  • get_account: Retrieve the Klaviyo account associated with the current credentials, including account identity, contact information, timezone, currency, and public API key when available.

Write tools (11)

  • manage_subscriptions: Subscribe or unsubscribe profiles to/from email and SMS marketing for a specific list. Needs action and profiles.
  • create_update_profile: Create a new customer profile or update an existing one in Klaviyo.
  • track_event: Create a custom event in Klaviyo associated with a profile. Needs metricName.
  • update_flow_status: Change the status of an automation flow in Klaviyo. Needs flowId and status.
  • manage_coupons: Create and retrieve coupons in Klaviyo, and bulk-create coupon codes. Needs action.
  • manage_campaigns: Create, retrieve, update, delete, or send email/SMS/push campaigns in Klaviyo. Needs action.
  • manage_templates: Create, retrieve, update, delete, clone, or render email templates in Klaviyo. Needs action.
  • manage_catalog_items: Create, retrieve, update, or delete product catalog items in Klaviyo. Needs action.
  • manage_lists: Create, update, delete, or retrieve lists in Klaviyo. Needs action.
  • manage_tags: Create, retrieve, update, or delete tags and tag groups in Klaviyo. Needs action.
  • manage_images: List, retrieve, upload from URL or data URI, and update Klaviyo images used in templates and campaigns. Needs action.

Destructive tools (1)

  • request_profile_deletion: Submit a data privacy deletion request for a profile in Klaviyo.

Triggers

Klaviyo has 3 triggers, which fire on events in Klaviyo:

  • new_profiles: [Polling fallback] Polls for newly created customer profiles in Klaviyo.
  • webhook_events: Receives real-time webhook notifications from Klaviyo for email, SMS, push notification, review, and consent events.
  • new_events: [Polling fallback] Polls for new events (tracked actions) in Klaviyo.

Next steps