All tools

Create an event

Records one event, such as a purchase, against a profile and creates or updates that profile.

View on GitHub
Updated Sep 27, 2026Available asCLIAPI

Description

Give the profile at least one identifier (`id`, `email` or `phone_number`) and the metric a `name`. Events can trigger flows; set `backfill` to `true` for historical events that shouldn't. The remote MCP server doesn't offer single events, but `bulk_create_events` (`POST /api/event-bulk-create-jobs`) records up to 1,000 events per request.

create-event.md

Create an event

Records one event, such as a purchase, against a profile and creates or updates that profile.

Give the profile at least one identifier (id, email or phone_number) and the metric a name. Events can trigger flows; set backfill to true for historical events that shouldn't. The remote MCP server doesn't offer single events, but bulk_create_events (POST /api/event-bulk-create-jobs) records up to 1,000 events per request.

Set up

Use the first option your agent supports.

CLI (official)

Install the command, then confirm it runs.

go install github.com/klaviyo/klaviyo-cli/cmd/klaviyo@latest
klaviyo --version

Run klaviyo events create.

Set $KLAVIYO_API_KEY in your environment first (get a key: https://www.klaviyo.com/create-private-api-key).

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
CLIOfficialklaviyo events createAPI key in $KLAVIYO_API_KEYDocs
APIOfficialPOST /api/eventsAPI key in $KLAVIYO_API_KEYDocs

Workflows using Create an event

No workflows yet
No published workflow uses Create an event yet.