List contacts
GET/v1/contacts
Requires an API key with the contacts:read scope. About keys and scopes
Works with integration, agent and partner keys.
Returns contacts in this workspace. To read one contact by its email address or your own id, use GET /v1/contacts/{id} with idType. query searches: it matches any part of the email address or name, ignoring case. consent, suppressed, listId, segmentId, rfmGroup, emailLostAfter, emailLostBefore, emailLostReason, pushDeviceLostAfter, pushDeviceLostBefore, createdAfter (inclusive), createdBefore (exclusive), and recordSource (with recordSourceId) narrow the list and combine with each other and with query; an unknown list or segment is a 404. Each item is shaped like a single contact read: it carries its email suppression and the lists it is in (listIds). meta.count counts every contact matching the filters, up to 10000: beyond that it reports the cap and meta.countExact is false; both are counted on the first page only (null with a cursor). Results are newest first and cursor-paginated: pass meta.pagination.nextCursor back as cursor until it comes back null. The cursor is opaque — do not construct or parse one.
Query parameters
limitintegeroptionalHow many items a page holds: 1 to 100, 20 by default.
min > 0 · max 100 · default
20cursorstringoptionalWhere the page starts: the previous page's
meta.pagination.nextCursor. Omit it for the first page, and send the same filters with it.1–2,048 characters
querystringoptionalSearches any part of the email address or name, ignoring case and accents in any script.
1–100 characters
consentstringoptionalComma-separated channels, e.g.
email,push: consent granted on each.suppressedstringoptionalWhether email to the contact, or to its address, is suppressed.
one of
true,falselistIdstringoptionalOnly members of this list.
uuid
segmentIdstringoptionalThe segment's members as stored at its last background sweep, so a contact that matches only since then is not in it yet. For the live answer, list the segment's contacts (
GET /v1/segments/{id}/contacts).uuid
rfmGroupstringoptionalOnly customers the last scoring placed in this group: the contacts behind its count in
GET /v1/reports/rfm.one of
champions,loyal,cant_lose_them,potential_loyalists,new_customers,need_attention,about_to_sleep,at_risk,hibernating,lostemailLostAfterstringoptionalOnly contacts email lost at or after this time (inclusive): they withdrew email consent or were blocked, as audience growth's
lostContactscounts them.date-time
emailLostBeforestringoptionalOnly contacts email lost before this time (exclusive).
date-time
pushDeviceLostAfterstringoptionalOnly contacts with a push device lost at or after this time (inclusive): its token refused, notifications denied, signed out, or silent for 60 days, as push reachability counts
devicesLost.date-time
pushDeviceLostBeforestringoptionalOnly contacts with a push device lost before this time (exclusive).
date-time
emailLostReasonstringoptionalOnly contacts lost for this reason, as audience growth's
lostsplits them; with the two bounds, those lost for it in that time.one of
unsubscribed,bounced,complained,blockedcreatedAfterstringoptionalOnly contacts created at or after this time (inclusive).
date-time
createdBeforestringoptionalOnly contacts created before this time (exclusive).
date-time
recordSourcestringoptionalOnly contacts first added this way (
recordSource.kind).one of
dashboard,api,sdk,import,form,integration,transactional,unknownrecordSourceIdstringoptionalWith
recordSource, only contacts added by this source (recordSource.id): a form, an import, an API key, a member or an integration.1–64 characters
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$
Returns
Returns 200 OK with a list of ContactDetail objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
externalIdstring | nullrequiredYour own id for the contact, if set.
emailstring | nullrequiredemail
firstNamestring | nullrequiredlastNamestring | nullrequiredphonestring | nullrequiredPhone number in E.164 format.
timezonestring | nullrequiredIANA timezone, e.g.
Europe/London.countrystring | nullrequiredISO 3166-1 alpha-2 code: as written, or inferred from the phone, else the timezone.
localestring | nullrequiredBCP 47 tag (
fr,fr-CA): the language the contact reads (its first subtag), and how merge tags format numbers, dates and money for them.rfmobject | nullrequiredThe contact's RFM (recency, frequency and monetary value) group among the workspace's customers, from its purchase events (the workspace's
purchaseEvent: an order, a paid invoice, a donation), each score from 1 to 5 (a fifth of the customers each; 5 is the most recent, most frequent or highest spend), and their purchase totals. Spend counts only purchases in the workspace's main currency; when the purchase carries no amount,monetaryfollows frequency. Recomputed daily, so a purchase today shows tomorrow;nullfor someone who has never purchased.7 child attributes
groupstringrequiredone of
champions,loyal,cant_lose_them,potential_loyalists,new_customers,need_attention,about_to_sleep,at_risk,hibernating,lostrecencyintegerrequiredmin 1 · max 5
frequencyintegerrequiredmin 1 · max 5
monetaryintegerrequiredmin 1 · max 5
purchaseCountintegerrequiredTheir purchase events (the workspace's
purchaseEvent), in any currency.min > 0
totalSpentobject | nullrequiredWhat their purchases' amounts (
purchaseValueProperty) add up to, in the workspace's main currency (currencyonGET /v1/reports/rfm); purchases in other currencies and refunds are left out.nullwhen the purchase carries no amount.2 child attributes
currencystring | nullrequiredThe currency, an ISO 4217 code; null when none was named.
valuenumberrequiredThe amount in that currency.
lastPurchasedAtstringrequiredWhen their latest purchase happened.
date-time
purchaseCycleobject | nullrequired8 child attributes
patternstringrequiredregular: their usual time between purchases is known;not_enough_history: fewer than 4 purchase days;irregular: no regular pattern. Only a regular buyer is ever overdue.one of
regular,not_enough_history,irregularusualDaysBetweenPurchasesnumber | nullrequiredThe median number of days between purchase days; null unless
regular.lastPurchasedOnstringrequiredThe last purchase day, in UTC.
date
expectedNextPurchaseOnstring | nullrequiredThe last purchase day plus the usual time between purchases; null unless
regular.date
daysSinceLastPurchaseintegerrequiredoverdueRationumber | nullrequiredDays since the last purchase over the usual time between purchases: 1 is due today, 1.5 half a cycle late. Null unless
regular.cycleStatusstring | nullrequiredoverduefrom 1.5× the usual time between purchases,lapsedfrom 2×,dormantfrom 3×, elseon_track; null unlessregular.one of
on_track,overdue,lapsed,dormantreasonstringrequiredWhy, in plain words: "Usually transacts every 30 days; it's been 52."
predictedValueobject | nullrequiredWhat a model of the workspace's customers (BG/NBD and Gamma-Gamma, as Klaviyo uses) predicts of this contact over the next year, from their transaction days of the purchase event and spend; worked out daily. Needs 500 customers, 180 days of transactions and 20 customers with three or more transaction days.
nullfor someone who never transacted, and on plans that do not include Kiro.One of 2 shapes
- With horizonDays, transactions, probabilityActive, spend and lifetimeValue
6 child attributes
status"predicted"requiredhorizonDaysintegerrequiredThe window predicted: 365 days from today.
transactionsnumberrequiredTransaction days expected in the window, to one decimal.
probabilityActivenumberrequiredThe chance they are still a customer rather than gone quietly, 0 to 1: falls as the time since their last transaction grows beyond their usual gap.
spendobject | nullrequiredPredicted lifetime value: what they are expected to spend in the window (Klaviyo calls it predicted CLV). Null when transactions carry no amount.
2 child attributes
currencystring | nullrequiredThe currency, an ISO 4217 code; null when none was named.
valuenumberrequiredThe amount in that currency.
lifetimeValueobject | nullrequiredrfm.totalSpentplusspend: spent so far and expected (total CLV).2 child attributes
currencystring | nullrequiredThe currency, an ISO 4217 code; null when none was named.
valuenumberrequiredThe amount in that currency.
- Option 2
1 child attribute
status"not_enough_data"requiredThe workspace's history is too short to predict from;
prediction.reasononGET /v1/reports/rfmsays what is missing.
datesmap<string, string>requiredNamed calendar dates, e.g.
birthday, asYYYY-MM-DDor--MM-DD.attributesmap<string, object>requiredCustom attributes, keyed by attribute name.
consentContactConsentrequiredConsent on each channel.
2 child attributes
emailbooleanrequiredWhether the contact has consented to email.
pushbooleanrequiredWhether the contact has consented to push.
createdAtstringrequireddate-time
updatedAtstringrequireddate-time
emailSuppressionobjectrequired2 child attributes
suppressedbooleanrequiredWhether email to this contact is blocked.
reasonstring | nullrequiredWhy email to this contact is suppressed:
bounced,complained,complained_transactional,unsubscribed,manual,imported, orother_workspace(a bounce or complaint in another workspace with the same owner or partner).
listIdsstring[]requiredIds of the lists the contact is in.
recordSourceContactRecordSourcerequiredHow the contact was first added. Set once when the contact is created and never changed; a merge keeps the source of the contact created first.
3 child attributes
kindstringrequiredHow the contact was first added:
dashboard(by a member),api(by an API key),sdk(by the browser or app SDK),import(a CSV file),form(a Kirora form),integration(a connected tool, such as Segment),transactional(a transactional email to a new address), orunknown(added before this was recorded).one of
dashboard,api,sdk,import,form,integration,transactional,unknownidstring | nullrequiredWhat added it: the member's, API key's, import's or form's id, or the integration's slug (
segment); null forsdk,transactionalandunknown.namestring | nullrequiredIts name now: the member's name, the key's, the file's, the form's or the integration's. Null when there is none, or it was deleted (or the member left).