Insights API

Read what happened after you sent something. Insights answers three kinds of question: what did I send (names), how did it perform overall (aggregated), and what happened to each recipient (details) — across email, SMS, WhatsApp, landing pages and surveys. It is read-only: nothing here creates, changes or deletes anything.

The channel is in the path, not a parameter

Most operations exist once per channel: /v1/email/distribution/names and /v1/sms/distribution/names take the same parameters and return the same shape. Pick the path for the channel you want — there is no channel query parameter.

Distributions and campaigns are different things

A distribution is one send you made — a batch of email, SMS or WhatsApp. A campaign is a piece of content — a landing page, an email campaign or a survey — that people arrive at. They have separate names, aggregated and details endpoints, and the ids are not interchangeable.

Download for AI review

Copy or download this guide as Markdown to paste into an AI assistant for help integrating against it.

Environment

You are reading the guide for the host that served this page. The badge in the header and every example below already point at it — nothing to substitute by hand, and no other environment's addresses appear on this page.

PropertyValue
Environment
Base URLhttps://insights-dev.jirafix.net
All pathsare under /v1

Authentication

Every endpoint needs a bearer token, and this host does not issue one. Exchange your credentials at the Authenticate API — on this environment that is https://authenticate-dev.jirafix.net — then send what it returns as Authorization: Bearer <access_token> on each request here.

Keep your credentials on your server

Analytics data describes your customers. Credentials embedded in a browser page or a mobile app are published credentials — request the token from your own backend and never ship it to a client.

POST https://authenticate-dev.jirafix.net/v1/token

Exchanges your credentials for an access token.

Tokens last 3600 seconds by default. Request a new one when it expires — there is no separate refresh call, though the response does include a refresh_token. Full detail is on the Authenticate guide at https://authenticate-dev.jirafix.net/docs.

Parameters

NameTypeRequiredDescription
usernamestringYesThe account's username, usually an email address.
passwordstringYesThe account's password. Server-side only.
privatetokenstringYesYour account's private token, from the portal's configuration section. Note the spelling — one word, all lower case.
validityintegerNoHow long the token should last, in seconds. Defaults to 3600.

Responses

StatusMeaning
200Returns access_token, refresh_token, token_type and expires_in.
400The body was missing or a required field was absent.
401The username, password or private token was not accepted.
# 1. get a token from the Authenticate host
ACCESS_TOKEN=$(curl -s -X POST https://authenticate-dev.jirafix.net/v1/token \
  -H "Content-Type: application/json" \
  -d '{"username":"you@yourcompany.com","password":"'"$OLANZO_PASSWORD"'","privatetoken":"'"$OLANZO_PRIVATE_TOKEN"'","validity":3600}' \
  | jq -r .access_token)

# 2. spend it here
curl -X GET "https://insights-dev.jirafix.net/v1/email/distribution/names?pageIndex=1&pageSize=20" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
using var auth = new HttpClient { BaseAddress = new Uri("https://authenticate-dev.jirafix.net") };

var tokenResponse = await auth.PostAsJsonAsync("/v1/token", new
{
    username = "you@yourcompany.com",
    password = Environment.GetEnvironmentVariable("OLANZO_PASSWORD"),
    privatetoken = Environment.GetEnvironmentVariable("OLANZO_PRIVATE_TOKEN"),
    validity = 3600,
});

// the property is access_token, not accessToken
var payload = await tokenResponse.Content.ReadFromJsonAsync<JsonElement>();
var token = payload.GetProperty("access_token").GetString();

using var api = new HttpClient { BaseAddress = new Uri("https://insights-dev.jirafix.net") };
api.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", token);

var response = await api.SendAsync(
    new HttpRequestMessage(HttpMethod.Get, "/v1/email/distribution/names?pageIndex=1&pageSize=20"));
// 1. get a token from the Authenticate host
const tokenResponse = await fetch("https://authenticate-dev.jirafix.net/v1/token", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    username: "you@yourcompany.com",
    password: process.env.OLANZO_PASSWORD,
    privatetoken: process.env.OLANZO_PRIVATE_TOKEN,
    validity: 3600,
  }),
});

// note the underscore — accessToken is undefined
const { access_token } = await tokenResponse.json();

// 2. spend it here
const response = await fetch("https://insights-dev.jirafix.net/v1/email/distribution/names?pageIndex=1&pageSize=20", {
  method: "GET",
  headers: { Authorization: `Bearer ${access_token}` },
});
import os, requests

# 1. get a token from the Authenticate host
token_response = requests.post(
    "https://authenticate-dev.jirafix.net/v1/token",
    json={
        "username": "you@yourcompany.com",
        "password": os.environ["OLANZO_PASSWORD"],
        "privatetoken": os.environ["OLANZO_PRIVATE_TOKEN"],
        "validity": 3600,
    },
)

# note the underscore — "accessToken" raises KeyError
access_token = token_response.json()["access_token"]

# 2. spend it here
response = requests.get(
    "https://insights-dev.jirafix.net/v1/email/distribution/names?pageIndex=1&pageSize=20",
    headers={"Authorization": f"Bearer {access_token}"},
)
200 OK

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600
}
The response is snake_case

The fields are access_token, refresh_token, token_type and expires_in — not accessToken or expiresIn. Reading the camelCase spelling gives you nothing, with no error to explain it.

Use the Authenticate host for this same environment

A token carries the API domains it is allowed to reach. One issued by a different environment's Authenticate host is rejected here with a 401 that reads like bad credentials, so check the pair before you check your password: this page is https://insights-dev.jirafix.net and its Authenticate host is https://authenticate-dev.jirafix.net.

Paging through results

Almost every list endpoint pages with pageIndex and pageSize, both 1–1000, defaulting to page 1 and 100 per page. The response wraps the rows in a data array alongside the totals.

Two endpoints page differently

Recipients by event criteria is cursor-based: no pageIndex, a pageSize capped at 500, and a nextCursor you pass back to continue. Paging it like the others silently gets you page 1 every time.

Revenue transactions caps pageSize at 100 and defaults to 50, because it is a far heavier query than the analytics above.

Your first query

Analytics here is a two-step flow: list what you sent to get an id, then ask about that id.

curl -X GET "https://insights-dev.jirafix.net/v1/email/distribution/names?pageIndex=1&pageSize=20" \
  -H "Authorization: Bearer <your-token>"
curl -X GET "https://insights-dev.jirafix.net/v1/email/distribution/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <your-token>"

List your sends

Start here. These return the sends on the account with their ids, which every other distribution endpoint needs. Each row also carries merchantId, campaignId (the campaign the send carried, when it had one), sentDate, status and totalRecipients, so rows from different calls can be joined. Narrow the list by send date and status with the optional filters; with none of them you get every send, as before.

GET /v1/email/distribution/names

Lists email sends with their ids and names.

Parameters

NameTypeRequiredDescription
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.
fromDatedate-timeNoOnly rows whose send date is on or after this time, in UTC. Omit for no lower bound.
toDatedate-timeNoOnly rows whose send date is on or before this time, in UTC. A date with no time (2026-08-31) means the whole of that day; a time you give, midnight included (2026-08-31T00:00:00Z), is used as given. Omit for no upper bound.
statusstringNoOne of completed, inprogress, failed. Any other value is a 400. Omit for every status.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/email/distribution/names?pageIndex=1&pageSize=20&fromDate=2026-08-01&toDate=2026-08-31&status=completed" \
  -H "Authorization: Bearer <your-token>"
GET /v1/sms/distribution/names

Lists SMS sends with their ids and names.

Parameters

NameTypeRequiredDescription
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.
fromDatedate-timeNoOnly rows whose send date is on or after this time, in UTC. Omit for no lower bound.
toDatedate-timeNoOnly rows whose send date is on or before this time, in UTC. A date with no time (2026-08-31) means the whole of that day; a time you give, midnight included (2026-08-31T00:00:00Z), is used as given. Omit for no upper bound.
statusstringNoOne of completed, inprogress, failed. Any other value is a 400. Omit for every status.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/sms/distribution/names?pageIndex=1&pageSize=20&fromDate=2026-08-01&toDate=2026-08-31&status=completed" \
  -H "Authorization: Bearer <your-token>"
GET /v1/whatsapp/distribution/names

Lists WhatsApp sends with their ids and names.

Parameters

NameTypeRequiredDescription
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.
fromDatedate-timeNoOnly rows whose send date is on or after this time, in UTC. Omit for no lower bound.
toDatedate-timeNoOnly rows whose send date is on or before this time, in UTC. A date with no time (2026-08-31) means the whole of that day; a time you give, midnight included (2026-08-31T00:00:00Z), is used as given. Omit for no upper bound.
statusstringNoOne of completed, inprogress, failed. Any other value is a 400. Omit for every status.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/whatsapp/distribution/names?pageIndex=1&pageSize=20&fromDate=2026-08-01&toDate=2026-08-31&status=completed" \
  -H "Authorization: Bearer <your-token>"

List your campaigns

The campaign equivalent. The id you get back is what the campaign aggregated and details endpoints expect — it is not a distribution id. It is also the campaignId on send rows. Narrow the list by creation date and by active / inactive (the same rule as isActive).

GET /v1/landingpage/campaign/names

Lists landing page campaigns with their ids and names.

Parameters

NameTypeRequiredDescription
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.
fromDatedate-timeNoOnly rows whose creation date is on or after this time, in UTC. Omit for no lower bound.
toDatedate-timeNoOnly rows whose creation date is on or before this time, in UTC. A date with no time (2026-08-31) means the whole of that day; a time you give, midnight included (2026-08-31T00:00:00Z), is used as given. Omit for no upper bound.
statusstringNoOne of active, inactive. Any other value is a 400. Omit for every status.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/landingpage/campaign/names?pageIndex=1&pageSize=20&fromDate=2026-08-01&toDate=2026-08-31&status=active" \
  -H "Authorization: Bearer <your-token>"
GET /v1/email/campaign/names

Lists email campaigns with their ids and names.

Parameters

NameTypeRequiredDescription
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.
fromDatedate-timeNoOnly rows whose creation date is on or after this time, in UTC. Omit for no lower bound.
toDatedate-timeNoOnly rows whose creation date is on or before this time, in UTC. A date with no time (2026-08-31) means the whole of that day; a time you give, midnight included (2026-08-31T00:00:00Z), is used as given. Omit for no upper bound.
statusstringNoOne of active, inactive. Any other value is a 400. Omit for every status.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/email/campaign/names?pageIndex=1&pageSize=20&fromDate=2026-08-01&toDate=2026-08-31&status=active" \
  -H "Authorization: Bearer <your-token>"
GET /v1/survey/campaign/names

Lists survey campaigns with their ids and names.

Parameters

NameTypeRequiredDescription
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.
fromDatedate-timeNoOnly rows whose creation date is on or after this time, in UTC. Omit for no lower bound.
toDatedate-timeNoOnly rows whose creation date is on or before this time, in UTC. A date with no time (2026-08-31) means the whole of that day; a time you give, midnight included (2026-08-31T00:00:00Z), is used as given. Omit for no upper bound.
statusstringNoOne of active, inactive. Any other value is a 400. Omit for every status.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/survey/campaign/names?pageIndex=1&pageSize=20&fromDate=2026-08-01&toDate=2026-08-31&status=active" \
  -H "Authorization: Bearer <your-token>"

How a send performed

Totals for one send — delivered, opened, clicked, bounced and so on, depending on the channel. One call, one send.

WhatsApp reports Submitted only

Delivery reports for WhatsApp are not available yet, so — exactly as Insights → WhatsApp in the portal — every recipient counts as submitted and the delivery, engagement and device figures are empty.

GET /v1/email/distribution/aggregated

Headline metrics for one email send.

Parameters

NameTypeRequiredDescription
idguidYesThe email send to report on, from the list above.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/email/distribution/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <your-token>"
GET /v1/sms/distribution/aggregated

Headline metrics for one SMS send.

Parameters

NameTypeRequiredDescription
idguidYesThe SMS send to report on, from the list above.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/sms/distribution/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <your-token>"
GET /v1/whatsapp/distribution/aggregated

Headline metrics for one WhatsApp send.

Parameters

NameTypeRequiredDescription
idguidYesThe WhatsApp send to report on, from the list above.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/whatsapp/distribution/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <your-token>"

What happened to each recipient

Row per recipient for one send. Paged, because a large send has as many rows as it had recipients.

GET /v1/email/distribution/details

Per-recipient rows for one email send.

Parameters

NameTypeRequiredDescription
idguidYesThe email send to report on.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/email/distribution/details?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"
GET /v1/sms/distribution/details

Per-recipient rows for one SMS send.

Parameters

NameTypeRequiredDescription
idguidYesThe SMS send to report on.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/sms/distribution/details?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"
GET /v1/whatsapp/distribution/details

Per-recipient rows for one WhatsApp send.

Parameters

NameTypeRequiredDescription
idguidYesThe WhatsApp send to report on.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/whatsapp/distribution/details?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"

How a campaign performed

Opens, clicks, conversions, devices and traffic sources for one campaign, counted on the campaign's own content across every send that carried it. For delivery figures of a single send, use send performance with the send's id.

GET /v1/landingpage/campaign/aggregated

Headline metrics for one landing-page campaign, over the campaign's whole lifetime.

The headline totals (KPI and TotalVisitors) always cover the campaign's whole lifetime, the same as the portal. startDate and endDate are accepted for compatibility but do not narrow these totals. They are passed on to the device, engagement and traffic-source breakdowns (DeviceKPI, EngagementKPI, TrafficSourceKPI), but not every visit behind those is filtered by date (the device breakdown counts SMS and direct visits for all time), so do not use the dates to get a period figure from this route. To pick campaigns by creation date, filter the campaign list instead. A campaign that is not yours, or that belongs to another channel, is a 404.

Parameters

NameTypeRequiredDescription
idguidYesThe campaign to report on, from the campaign list.
startDatedate-timeNoAccepted for compatibility. Does not narrow the headline totals.
endDatedate-timeNoAccepted for compatibility. Does not narrow the headline totals.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/landingpage/campaign/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&startDate=2026-08-01T00:00:00Z&endDate=2026-08-20T23:59:59Z" \
  -H "Authorization: Bearer <your-token>"
GET /v1/email/campaign/aggregated

Headline metrics for one email campaign, over the campaign's whole lifetime.

The headline totals (KPI and TotalVisitors) always cover the campaign's whole lifetime, the same as the portal. startDate and endDate are accepted for compatibility but do not narrow these totals. They are passed on to the device, engagement and traffic-source breakdowns (DeviceKPI, EngagementKPI, TrafficSourceKPI), but not every visit behind those is filtered by date (the device breakdown counts SMS and direct visits for all time), so do not use the dates to get a period figure from this route. To pick campaigns by creation date, filter the campaign list instead. A campaign that is not yours, or that belongs to another channel, is a 404.

Parameters

NameTypeRequiredDescription
idguidYesThe campaign to report on, from the campaign list.
startDatedate-timeNoAccepted for compatibility. Does not narrow the headline totals.
endDatedate-timeNoAccepted for compatibility. Does not narrow the headline totals.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/email/campaign/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&startDate=2026-08-01T00:00:00Z&endDate=2026-08-20T23:59:59Z" \
  -H "Authorization: Bearer <your-token>"
GET /v1/survey/campaign/aggregated

Headline metrics for one survey campaign, over the campaign's whole lifetime.

The headline totals (KPI and TotalVisitors) always cover the campaign's whole lifetime, the same as the portal. startDate and endDate are accepted for compatibility but do not narrow these totals. They are passed on to the device, engagement and traffic-source breakdowns (DeviceKPI, EngagementKPI, TrafficSourceKPI), but not every visit behind those is filtered by date (the device breakdown counts SMS and direct visits for all time), so do not use the dates to get a period figure from this route. To pick campaigns by creation date, filter the campaign list instead. A campaign that is not yours, or that belongs to another channel, is a 404.

Parameters

NameTypeRequiredDescription
idguidYesThe campaign to report on, from the campaign list.
startDatedate-timeNoAccepted for compatibility. Does not narrow the headline totals.
endDatedate-timeNoAccepted for compatibility. Does not narrow the headline totals.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/survey/campaign/aggregated?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&startDate=2026-08-01T00:00:00Z&endDate=2026-08-20T23:59:59Z" \
  -H "Authorization: Bearer <your-token>"

Who engaged with a campaign

Row per recipient for one campaign. The route picks the channel, and the id is a campaign id from the campaign list — a distribution id will not match.

GET /v1/landingpage/campaign/details

Per-recipient rows for one landing-page campaign.

Parameters

NameTypeRequiredDescription
idguidYesThe landing-page campaign to report on.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/landingpage/campaign/details?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"
GET /v1/email/campaign/details

Per-recipient rows for one email campaign.

Parameters

NameTypeRequiredDescription
idguidYesThe email campaign to report on.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/email/campaign/details?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"
GET /v1/survey/campaign/details

Per-recipient rows for one survey campaign.

Parameters

NameTypeRequiredDescription
idguidYesThe survey campaign to report on.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
404No record matches the id you asked about on this channel. An id from another channel's list will land here.
curl -X GET "https://insights-dev.jirafix.net/v1/survey/campaign/details?id=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"

Email delivery events

The raw delivery events behind an email send — delivered, open, click, bounce, dropped and so on, one row per event rather than one per recipient.

Filtering by event type

eventTypes takes a comma-separated list, e.g. open,click. eventTypeFilter decides what that list means: Include (the default) keeps only those types, Exclude drops them and keeps the rest.

GET /v1/email/webhook/events

Delivery events for one send.

Parameters

NameTypeRequiredDescription
queueIdguidYesThe send to read events for — the QueueId the Email API returned when you sent it. Omitting it is a 400.
eventTypesstringNoComma-separated event types, e.g. open,click. Omit for all.
eventTypeFilterstringNoInclude (default) or Exclude.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/email/webhook/events?queueId=3fa85f64-5717-4562-b3fc-2c963f66afa6&eventTypes=open,click&eventTypeFilter=Include&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"

Events for SMTP-style sends

Mail sent over SMTP has no queue id to ask about, so these events are addressed by time instead: everything sent after the moment you name.

GET /v1/email/webhook/events/smtp

Delivery events for SMTP-style sends after a given time.

Parameters

NameTypeRequiredDescription
sentAfterdate-timeYesOnly events for mail sent after this moment. Required — there is no queue id to narrow by here.
eventTypesstringNoComma-separated event types. Omit for all.
eventTypeFilterstringNoInclude (default) or Exclude.
pageIndexintegerNoPage to return, 1–1000. Defaults to 1.
pageSizeintegerNoRows per page, 1–1000. Defaults to 100.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/email/webhook/events/smtp?sentAfter=2026-08-01T00:00:00Z&eventTypes=open,click&eventTypeFilter=Include&pageIndex=1&pageSize=100" \
  -H "Authorization: Bearer <your-token>"

Find recipients by what they did

Answers questions like who was delivered but never opened. Events are rolled up per recipient, then mustHave and mustNotHave filter that set — every type in mustHave must be present, and none in mustNotHave may be.

This endpoint pages by cursor

There is no pageIndex. Read nextCursor from the response and send it back as cursor for the next page; hasMore tells you when to stop. pageSize is capped at 500 here, not 1000.

GET /v1/email/webhook/recipients/by-event-criteria

Recipients matching a combination of events they did and did not generate.

Parameters

NameTypeRequiredDescription
queueIdguidNoNarrow to one send. Omit and use sentAfter for SMTP-style mail.
smtpOnlybooleanNoRestrict to SMTP-style sends. Defaults to false.
sentAfterdate-timeNoOnly mail sent after this moment.
mustHavestringNoEvent types the recipient must all have, e.g. delivered.
mustNotHavestringNoEvent types the recipient must have none of, e.g. open,click.
pageSizeintegerNoRecipients per page, 1–500. Defaults to 100.
cursorstringNoThe nextCursor from your previous response. Omit for the first page.

Responses

StatusMeaning
200The rows, with paging totals alongside them.
400A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000.
401Missing, expired or invalid bearer token.
# delivered, but never opened
curl -X GET "https://insights-dev.jirafix.net/v1/email/webhook/recipients/by-event-criteria\
?queueId=3fa85f64-5717-4562-b3fc-2c963f66afa6\
&mustHave=delivered&mustNotHave=open&pageSize=200\
&sentAfter=2026-08-01T00:00:00Z&smtpOnly=false\
&cursor=<nextCursor-from-your-previous-response>" \
  -H "Authorization: Bearer <your-token>"
200 OK

{
  "data": [ { "email": "customer@example.com" } ],
  "nextCursor": "eyJvZmZzZXQiOjIwMH0",
  "hasMore": true
}

Revenue transactions

Your payments, one row each — amount, store, how it was taken, and the bank reference to reconcile against. These are the same records the merchant portal shows under Insights → Revenue.

Confirmed money only, by default

Only payments the bank has confirmed are returned, and test-mode payments are excluded. That is the right default for reconciliation. Pass includeUnconfirmed=true or includeTest=true to widen it.

The window is in your timezone; the timestamps come back in UTC

startDate and endDate are read in your account's own timezone, the same one the merchant portal uses — so 2026-08-01T00:00:00 means midnight where you are, not midnight UTC. Every timestamp in the response is UTC. The two ends genuinely differ; convert accordingly rather than assuming they match.

Personal data is not included

Payer names, payer phone numbers and the bank's free-text payer fields are deliberately absent from these responses. If you need to tie a payment to a customer, pass your own reference when you take the payment: a Cashier API orderId comes back as orderId, and the order_reference or reference of a checkout or payment link as orderReference. The orderId filter matches either.

Loyalty points on each payment

loyaltyPoints is the loyalty points the payment earned the customer, to two decimals — the value the merchant portal shows in the Loyalty Points column of a customer's Revenue tab. It is the points recorded on the payment when it has them, otherwise the amount times your loyalty rate; a declined payment earns 0, and so do payment types the loyalty programme does not cover. The payments export carries the same column. There is no points total: the portal shows none.

Filtering by the E-commerce channel

channel is a substring match, not an exact one. channel=E commerce returns every online payment, including the sub-channels E commerce - Landing Page, E commerce - Payment Link, E commerce - Order Invoice, E commerce - Integration and E commerce - Test Screen. Pass one of those in full to narrow to a single flow. Payments taken before this breakdown shipped carry the plain E commerce label and are not attributed to a sub-channel retrospectively.

Where your own payments appear. A checkout session you create with your API key is reported as E commerce - Integration, whatever you built on top of it. The other sub-channels name Olanzo-hosted surfaces — a merchant's landing page, a payment link, an order invoice, the portal's test screen — so they are set by Olanzo and cannot be claimed by an integrator. If you send creation_source on a session create it is accepted for compatibility and then ignored, which keeps one merchant's revenue reporting from being relabelled by whatever their integration chooses to send.

Every payment you take through the API therefore shares a single channel, however many surfaces you have built on it. To tell your own orders apart, use the order fields: on a checkout or payment-link payment orderId is the Order ID Olanzo issued for that order (unique across the platform; a payment made with the Olanzo app carries it in the bank transfer description), and orderReference is the order_reference or reference you set, when it differs. Payments from before Order IDs were issued show your reference as orderId.

Where the customer arrived from

Each E commerce payment carries arrivalSourceGroup: own when the customer came from one of your own sites (the host of your configured success, cancel or webhook URL, or the origin_url you sent with the session), olanzo for an Olanzo page such as a landing page or the test screen, other for anything else (a search engine, a social network, a shared link), and unknown when nothing was recorded. arrivalSourceHost names the host it was decided from — the host only, never the path or query. Both fields are left out of the response for payments that are not E commerce, and arrivalSourceHost is left out when the group is unknown (the API omits empty fields rather than sending null). Payments taken before these fields shipped read unknown.

Treat this as extra detail, not proof: it comes from the customer's browser and from what the session was created with, and either can be faked. It never changes channel.

GET /v1/revenue/transactions

A page of payments for the window you name.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
minAmountnumberNoInclusive lower bound on the transaction amount.
maxAmountnumberNoInclusive upper bound on the transaction amount.
includeUnconfirmedbooleanNoInclude payments the bank has not confirmed. Defaults to false — only confirmed money, which is what the merchant portal shows.
includeTestbooleanNoInclude test-mode payments. Defaults to false.
channelstringNoCase-insensitive substring match on how the payment was taken, e.g. Soundbox, Terminal, Business App.
orderIdstringNoCase-insensitive substring match on the Order ID or on your own order reference.
bankReferencestringNoCase-insensitive substring match on the bank reference number.
terminalstringNoCase-insensitive substring match on the terminal identifier.
descriptionstringNoCase-insensitive substring match on the payment description.
pageIndexintegerNoPage number, 1-based, 1–1000. Defaults to 1. Split the window rather than paging deeper than that.
pageSizeintegerNoRecords per page, 1–100. Defaults to 50. Lower than the 1000 the campaign endpoints allow — this is a much heavier query.

Responses

StatusMeaning
200The requested page of transactions, with paging totals alongside them.
400The window is missing, inverted, longer than 90 days, or pageSize is above 100. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/revenue/transactions?startDate=2026-08-01T00:00:00Z&endDate=2026-08-20T23:59:59Z&pageSize=50&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&includeUnconfirmed=false&includeTest=false&minAmount=1000&maxAmount=500000&channel=Soundbox&orderId=ORD-12345&bankReference=SINPE-99887766&terminal=TERM-04&description=coffee&pageIndex=1" \
  -H "Authorization: Bearer <your-token>"

Revenue summary

The headline figures for a period: what you took, across how many payments, at what average — each with its movement against the window of the same length immediately before it.

GET /v1/revenue/summary

Totals and period-over-period movement for the window you name.

Counts only payments the bank has confirmed, and never test-mode payments. includeUnconfirmed and includeTest are not supported on this endpoint and have no effect on what is counted. To include unconfirmed or test-mode payments, use GET /v1/revenue/transactions.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
minAmountnumberNoInclusive lower bound on the transaction amount.
maxAmountnumberNoInclusive upper bound on the transaction amount.

Responses

StatusMeaning
200The figures for the requested window.
400The window is missing, inverted, or longer than 90 days. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/revenue/summary?startDate=2026-08-01T00:00:00Z&endDate=2026-08-20T23:59:59Z&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&minAmount=1000&maxAmount=500000" \
  -H "Authorization: Bearer <your-token>"

Revenue trend

Daily revenue totals across the window, oldest first — for charting.

Quiet days are absent, not zero

A day with no revenue produces no point at all. Plot against the window you asked for rather than against the number of points you got back, or a quiet stretch will compress your x-axis.

GET /v1/revenue/trend

Daily revenue totals for the window you name.

Counts only payments the bank has confirmed, and never test-mode payments. includeUnconfirmed and includeTest are not supported on this endpoint and have no effect on what is counted. To include unconfirmed or test-mode payments, use GET /v1/revenue/transactions.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
minAmountnumberNoInclusive lower bound on the transaction amount.
maxAmountnumberNoInclusive upper bound on the transaction amount.

Responses

StatusMeaning
200The figures for the requested window.
400The window is missing, inverted, or longer than 90 days. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/revenue/trend?startDate=2026-08-01T00:00:00Z&endDate=2026-08-20T23:59:59Z&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&minAmount=1000&maxAmount=500000" \
  -H "Authorization: Bearer <your-token>"

SINPE payment requests

The bulk SINPE payment requests your account sent, one row each — who they went to (counted, never listed), how many have paid, and the store they were sent for. These are the same records and the same counts the merchant portal shows under Insights → Revenue → SINPE requests for the same window.

Paid means the bank confirmed it

A recipient counts as paid only once the bank has confirmed the payment; a payment still awaiting the bank counts as unpaid. recipients counts the people with a valid SINPE Móvil number — the ones the request actually reached.

GET /v1/revenue/sinpe-requests

A page of SINPE payment requests for the window you name.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
pageIndexintegerNoPage number, 1-based, 1–1000. Defaults to 1.
pageSizeintegerNoRecords per page, 1–100. Defaults to 50.

Responses

StatusMeaning
200The requested page of transactions, with paging totals alongside them.
400The window is missing, inverted, longer than 90 days, or pageSize is above 100. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/revenue/sinpe-requests?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=50" \
  -H "Authorization: Bearer <your-token>"
GET /v1/revenue/sinpe-requests/summary

Requests, recipients, paid and unpaid, added up over the whole window.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.

Responses

StatusMeaning
200The figures for the requested window.
400The window is missing, inverted, or longer than 90 days. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/revenue/sinpe-requests/summary?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <your-token>"

Your stores

Every store (business) of your account, with its storeId, name, status (Active, Inactive or Deleted) and when it was created. storeId is the merchant id on every payment and SINPE request row and in every export file, and the value the storeIds filters take. Deleted stores are listed too, so an older payment's store still resolves. Only your own account's stores are ever returned.

GET /v1/stores

Your account's stores, oldest first.

Responses

StatusMeaning
200data: every store of the account.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/stores" \
  -H "Authorization: Bearer <your-token>"

Stamp cards

Your stores' digital stamp card activity, one row per store per day that had any: stampsEarned (stamps customers earned), cardsCompleted (cards filled — every stamp earned — dated by the last stamp) and giftsRedeemed (gifts handed over for a card). These are the figures the merchant portal shows on a customer's Stamp Card tab, counted from the same records and added up per store and day. Customers are counted, never listed.

Days are in your timezone

date is the calendar day in your account's own timezone — the same clock as startDate and endDate — so a stamp at 21:00 your time counts on that day, not the next UTC day. Days without activity are absent rather than zero. Store stamp cards only: a landing-page campaign stamp card belongs to a campaign, not a store, and is not included.

GET /v1/stamps/activity

A page of daily stamp card activity per store, oldest first.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
pageIndexintegerNoPage number, 1-based, 1–1000. Defaults to 1.
pageSizeintegerNoRecords per page, 1–100. Defaults to 50.

Responses

StatusMeaning
200The requested page of transactions, with paging totals alongside them.
400The window is missing, inverted, longer than 90 days, or pageSize is above 100. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/stamps/activity?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&pageIndex=1&pageSize=50" \
  -H "Authorization: Bearer <your-token>"
GET /v1/stamps/summary

Stamps earned, cards completed and gifts redeemed, added up over the whole window.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.

Responses

StatusMeaning
200The figures for the requested window.
400The window is missing, inverted, or longer than 90 days. The message says which.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/stamps/summary?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer <your-token>"

Marketing Suite

Whether each of your stores runs on the Marketing Suite (marketingSuite: true or false), exactly as the merchant portal's business list carries it — the setting that decides whether a store's settlement account is shown as its Olanzo account number. Same stores, in the same order, as your stores. On or off is all this reports: there are no usage figures.

One value for every store today

The Marketing Suite is currently switched on or off for the whole platform, so every store of your account reports the same value. It is listed per store so that a later per-store setting needs no change on your side.

GET /v1/stores/marketing-suite

Your stores, each with whether the Marketing Suite is on.

Responses

StatusMeaning
200data: every store of the account with marketingSuite.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/stores/marketing-suite" \
  -H "Authorization: Bearer <your-token>"

Exports (CSV and Excel)

Download a whole window as one file instead of paging. Every export works the same way: name the window (in your account's own timezone, at most 90 days), pick format=csv (the default) or format=xlsx, and the response is the file. Column names are the field names the JSON reads use, amounts are numbers with the currency in its own currencyCode column, and timestamps are UTC (a stamp card date is your own calendar day, written yyyy-MM-dd).

FileOne row perIds for joining
/v1/exports/paymentspaymenttransactionId, storeId
/v1/exports/sinpe-requestsSINPE payment requestrequestId, storeId
/v1/exports/communicationsemail, SMS or WhatsApp sendsendId, campaignId
/v1/exports/stampsstore per day of stamp card activitystoreId
A file holds up to 5,000 rows

A window with more rows is refused with 400, code export_row_limit_exceeded and the row count — choose a shorter date range and download it in parts. A file is never cut short silently.

Joining the files

storeId joins payments and SINPE requests to your stores. sendId is the id the /v1/email/distribution/*, /v1/sms/distribution/* and /v1/whatsapp/distribution/* reads take, so delivery and engagement for a send come from its aggregated read. WhatsApp reports Submitted only, as in the portal. Payer names and phone numbers are never in any file.

GET /v1/exports/payments

Payments for the window, every page in one file.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
minAmountnumberNoInclusive lower bound on the transaction amount.
maxAmountnumberNoInclusive upper bound on the transaction amount.
includeUnconfirmedbooleanNoInclude payments the bank has not confirmed. Defaults to false — only confirmed money, which is what the merchant portal shows.
includeTestbooleanNoInclude test-mode payments. Defaults to false.
channelstringNoThe same filter as on revenue transactions.
orderIdstringNoThe same filter as on revenue transactions.
bankReferencestringNoThe same filter as on revenue transactions.
terminalstringNoThe same filter as on revenue transactions.
descriptionstringNoThe same filter as on revenue transactions.
formatstringNocsv (default) or xlsx. One file per request.

Responses

StatusMeaning
200The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
400The window is missing, inverted or longer than 90 days, a filter or format is not valid, or the window holds more than 5,000 rows — then code is export_row_limit_exceeded and rowCount says how many: choose a shorter date range.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/exports/payments?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&minAmount=1000&maxAmount=500000&includeUnconfirmed=false&includeTest=false&channel=Soundbox&orderId=ORD-12345&bankReference=SINPE-99887766&terminal=TERM-04&description=coffee&format=xlsx" \
  -H "Authorization: Bearer <your-token>" -o payments.xlsx
GET /v1/exports/sinpe-requests

SINPE payment requests for the window in one file.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
formatstringNocsv (default) or xlsx. One file per request.

Responses

StatusMeaning
200The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
400The window is missing, inverted or longer than 90 days, a filter or format is not valid, or the window holds more than 5,000 rows — then code is export_row_limit_exceeded and rowCount says how many: choose a shorter date range.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/exports/sinpe-requests?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&format=csv" \
  -H "Authorization: Bearer <your-token>" -o sinpe-requests.csv
GET /v1/exports/communications

Email, SMS and WhatsApp sends for the window in one file.

channel is Email, SMS or WhatsApp on each row. WhatsApp reports Submitted only, exactly as Insights → WhatsApp in the portal: its recipients is the number of messages submitted to the gateway, and its send performance read counts every recipient as submitted.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
channelstringNoemail, sms or whatsapp. Omit for all three.
formatstringNocsv (default) or xlsx. One file per request.

Responses

StatusMeaning
200The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
400The window is missing, inverted or longer than 90 days, a filter or format is not valid, or the window holds more than 5,000 rows — then code is export_row_limit_exceeded and rowCount says how many: choose a shorter date range.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/exports/communications?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&channel=email&format=csv" \
  -H "Authorization: Bearer <your-token>" -o communications.csv
GET /v1/exports/stamps

Daily stamp card activity per store for the window in one file.

Parameters

NameTypeRequiredDescription
startDatedate-timeYesStart of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00.
endDatedate-timeYesEnd of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate.
storeIdsguid[]NoRestrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account.
formatstringNocsv (default) or xlsx. One file per request.

Responses

StatusMeaning
200The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
400The window is missing, inverted or longer than 90 days, a filter or format is not valid, or the window holds more than 5,000 rows — then code is export_row_limit_exceeded and rowCount says how many: choose a shorter date range.
401Missing, expired or invalid bearer token.
curl -X GET "https://insights-dev.jirafix.net/v1/exports/stamps?startDate=2026-08-01T00:00:00&endDate=2026-08-31T23:59:00&storeIds=3fa85f64-5717-4562-b3fc-2c963f66afa6&format=xlsx" \
  -H "Authorization: Bearer <your-token>" -o stamps.xlsx

Errors

StatusWhat it meansWhat to do
200The query ran.An empty data array is a valid answer — it means no rows matched.
400A required parameter is missing, or a value is out of range.Check id/queueId is present and that paging values are within bounds.
401The token is missing, expired or invalid.Fetch a new token and retry once.
404Nothing matches that id on this channel.Confirm the id came from the matching list endpoint — campaign and distribution ids are not interchangeable.
An id from the wrong list is the usual cause of a 404

A campaign id sent to a distribution endpoint — or an email id sent to the SMS route — will not resolve. Both come back as 404, not as a message explaining the mix-up.

Limits

LimitValue
pageIndex1–1000
pageSize (most endpoints)1–1000, default 100
pageSize (recipients by behaviour)1–500, default 100
pageSize (revenue transactions, SINPE requests, stamp cards)1–100, default 50
Window (revenue, SINPE requests, stamp cards, exports)90 days
Rows per export file5,000