Help center

The mapiyo API

Read your maps and numbers from Claude, scripts and reports.

The API gives read access to the maps of every Klaviyo account connected to your login, plus a few actions (start a sync, connect an account). Use it from Claude, a report script, or any tool that can make HTTPS requests.

Authentication

  1. Open Settings and create a token under API tokens. Copy it right away; it's shown once.
  2. Send it with every request: Authorization: Bearer mpy_…

A token acts as your login. Keep it private, and revoke it in Settings if it leaks.

Endpoints

Base URL: https://mapiyo.app/api/v1. Accounts can be referenced by mapiyo id or by Klaviyo account id as klaviyo:ABC123.

RequestReturns
GET /accountsConnected Klaviyo accounts, latest snapshot date and profile total
GET /accounts/{id}Summary: profiles, subscribers, placement quality, top cities. Add quarter=2026-Q3 for new profiles that quarter vs. the one before
GET /accounts/{id}/statesOne row per state (or country with view=world): profiles, subscribers, per 100k residents, and with a quarter, new profiles, change vs. last quarter and list growth
GET /accounts/{id}/map.pngA rendered heat map image. Also map.svg, and map.json for the legend only
GET /accounts/{id}/datacentersEvery suspected data center place, why it was flagged, and whether it's left out. Add format=csv for a spreadsheet
GET /accounts/{id}/audiencesEvery list and segment, with the scope value to map it
GET /accounts/{id}/layersUploaded location layers (stores, retailers and so on). Add points=1 for every location, or format=geojson or format=csv
GET /accounts/{id}/syncStatus and progress of the latest sync
POST /accounts/{id}/syncStart a sync. Body: {"scope":"segment:XyZ"} (optional)
POST /accounts/connectConnect a Klaviyo account with a private key. Body: {"private_key":"pk_…","klaviyo_login":"you@agency.com"}
GET /brandsYour saved brands (ids for brand= on map images)

Common options

What "new" means

"New profiles" in a period are profiles created in Klaviyo during that period that are still in the account today. "Subscribers" are profiles currently subscribed to email marketing. mapiyo stores counts only, never names or email addresses.

Still stuck? Email steve@memotiv.agency.