Marketing
Klaviyo mock API
Klaviyo REST API: profiles, lists and list membership, events and metrics, and system webhooks.
At a glance
- Operations
- 436
- Stateful operations
- 24
- Stateful resources
- 5
- Webhook events
- 4
- Vendor API version
- 2026-10-15
- Verification
- Spec-verified
How it works
Use Klaviyo without calling Klaviyo, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
authorization: Klaviyo-API-Key pk_ExampleKey0123456789 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Profiles & subscriptions | 6 |
| Lists | 9 |
| Events | 3 |
| Metrics | 2 |
| Webhooks | 4 |
Webhooks
Events your handlers can receive
- event:klaviyo.subscribed_to_email_marketing
- event:klaviyo.unsubscribed_from_email_marketing
- event:klaviyo.opened_email
- event:klaviyo.clicked_email
Deliveries are unsigned: Klaviyo signs system webhooks with HMAC-SHA256 over the raw body followed by the Klaviyo-Timestamp header value; the engine's body-only HMAC signer cannot reproduce that, so deliveries carry the Klaviyo headers and body but no Klaviyo-Signature.
Coverage
436 operations
24 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 412 |
| Lists | 9 |
| Profiles & subscriptions | 6 |
| Webhooks | 4 |
| Events | 3 |
| Metrics | 2 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
6 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Klaviyo, Inc. API description, licensed under MIT.
- Klaviyo, Inc. API documentation
- Source specification
Each collection (profiles, lists, list memberships, events, metrics, webhooks) holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Event listings are served from stateful storage, so very long event streams stop recording at the cap. Webhook signatures are not reproduced (see the unsigned reason).
MaxoPerf is not affiliated with, endorsed by, or sponsored by Klaviyo, Inc. Klaviyo is a trademark of its owner.