K

Klaviyo REST API

REST discovered

Details
URL
https://a.klaviyo.com
Spec
https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/stable/apis/get_accounts.json
Spec (json)
https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/stable.json
Docs
https://developers.klaviyo.com/en/reference/api_overview
Authentication
Private API key api_key discovered Get key ↗
Authorization: Klaviyo-API-Key <credential> /?company_id=<credential>

In your Klaviyo account, open API keys settings and create or copy a Private API Key. Klaviyo's API docs describe private key authentication for server-side APIs, and the CLI docs say the headless CLI accepts a private API key via --api-key or the KLAVIYO_API_KEY environment variable. Keep it server-side only.

Klaviyo OAuth app credentials oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

Create a public OAuth app using Klaviyo's partner/app flow described in Create a public OAuth app. After registering the app, configure scopes and redirect URIs, then have users install/connect it to obtain OAuth access tokens as described in Make API calls using OAuth and Handle your app's OAuth flow.