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.
Most operations exist once per channel: / and / take the same parameters and return the same shape. Pick the path for the channel you want — there is no channel query parameter.
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.
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.
| Property | Value |
|---|---|
| Environment | |
| Base URL | https:// |
| All paths | are 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:// — then send what it returns as Authorization: Bearer <access_ on each request here.
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.
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://.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | The account's username, usually an email address. |
password | string | Yes | The account's password. Server-side only. |
privatetoken | string | Yes | Your account's private token, from the portal's configuration section. Note the spelling — one word, all lower case. |
validity | integer | No | How long the token should last, in seconds. Defaults to 3600. |
Responses
| Status | Meaning |
|---|---|
200 | Returns access_token, refresh_token, token_type and expires_in. |
400 | The body was missing or a required field was absent. |
401 | The 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 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.
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:// and its Authenticate host is https://.
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.
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.
Lists email sends with their ids and names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
fromDate | date-time | No | Only rows whose send date is on or after this time, in UTC. Omit for no lower bound. |
toDate | date-time | No | Only 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. |
status | string | No | One of completed, inprogress, failed. Any other value is a 400. Omit for every status. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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>"
Lists SMS sends with their ids and names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
fromDate | date-time | No | Only rows whose send date is on or after this time, in UTC. Omit for no lower bound. |
toDate | date-time | No | Only 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. |
status | string | No | One of completed, inprogress, failed. Any other value is a 400. Omit for every status. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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>"
Lists WhatsApp sends with their ids and names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
fromDate | date-time | No | Only rows whose send date is on or after this time, in UTC. Omit for no lower bound. |
toDate | date-time | No | Only 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. |
status | string | No | One of completed, inprogress, failed. Any other value is a 400. Omit for every status. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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).
Lists landing page campaigns with their ids and names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
fromDate | date-time | No | Only rows whose creation date is on or after this time, in UTC. Omit for no lower bound. |
toDate | date-time | No | Only 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. |
status | string | No | One of active, inactive. Any other value is a 400. Omit for every status. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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>"
Lists email campaigns with their ids and names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
fromDate | date-time | No | Only rows whose creation date is on or after this time, in UTC. Omit for no lower bound. |
toDate | date-time | No | Only 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. |
status | string | No | One of active, inactive. Any other value is a 400. Omit for every status. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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>"
Lists survey campaigns with their ids and names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
fromDate | date-time | No | Only rows whose creation date is on or after this time, in UTC. Omit for no lower bound. |
toDate | date-time | No | Only 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. |
status | string | No | One of active, inactive. Any other value is a 400. Omit for every status. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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.
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.
Headline metrics for one email send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The email send to report on, from the list above. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
Headline metrics for one SMS send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The SMS send to report on, from the list above. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
Headline metrics for one WhatsApp send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The WhatsApp send to report on, from the list above. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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.
Per-recipient rows for one email send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The email send to report on. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
Per-recipient rows for one SMS send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The SMS send to report on. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
Per-recipient rows for one WhatsApp send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The WhatsApp send to report on. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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.
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
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The campaign to report on, from the campaign list. |
startDate | date-time | No | Accepted for compatibility. Does not narrow the headline totals. |
endDate | date-time | No | Accepted for compatibility. Does not narrow the headline totals. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
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
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The campaign to report on, from the campaign list. |
startDate | date-time | No | Accepted for compatibility. Does not narrow the headline totals. |
endDate | date-time | No | Accepted for compatibility. Does not narrow the headline totals. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
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
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The campaign to report on, from the campaign list. |
startDate | date-time | No | Accepted for compatibility. Does not narrow the headline totals. |
endDate | date-time | No | Accepted for compatibility. Does not narrow the headline totals. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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.
Per-recipient rows for one landing-page campaign.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The landing-page campaign to report on. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
Per-recipient rows for one email campaign.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The email campaign to report on. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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>"
Per-recipient rows for one survey campaign.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The survey campaign to report on. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, expired or invalid bearer token. |
404 | No 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.
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.
Delivery events for one send.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
queueId | guid | Yes | The send to read events for — the QueueId the Email API returned when you sent it. Omitting it is a 400. |
eventTypes | string | No | Comma-separated event types, e.g. open,click. Omit for all. |
eventTypeFilter | string | No | Include (default) or Exclude. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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.
Delivery events for SMTP-style sends after a given time.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sentAfter | date-time | Yes | Only events for mail sent after this moment. Required — there is no queue id to narrow by here. |
eventTypes | string | No | Comma-separated event types. Omit for all. |
eventTypeFilter | string | No | Include (default) or Exclude. |
pageIndex | integer | No | Page to return, 1–1000. Defaults to 1. |
pageSize | integer | No | Rows per page, 1–1000. Defaults to 100. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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.
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.
Recipients matching a combination of events they did and did not generate.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
queueId | guid | No | Narrow to one send. Omit and use sentAfter for SMTP-style mail. |
smtpOnly | boolean | No | Restrict to SMTP-style sends. Defaults to false. |
sentAfter | date-time | No | Only mail sent after this moment. |
mustHave | string | No | Event types the recipient must all have, e.g. delivered. |
mustNotHave | string | No | Event types the recipient must have none of, e.g. open,click. |
pageSize | integer | No | Recipients per page, 1–500. Defaults to 100. |
cursor | string | No | The nextCursor from your previous response. Omit for the first page. |
Responses
| Status | Meaning |
|---|---|
200 | The rows, with paging totals alongside them. |
400 | A required parameter is missing, or a value is out of range — pageIndex and pageSize must be 1–1000. |
401 | Missing, 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.
Only payments the bank has confirmed are returned, and test-mode payments are excluded. That is the right default for reconciliation. Pass include or includeTest=true to widen it.
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.
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.
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.
channel is a substring match, not an exact one. channel=E commerce returns every online payment, including the sub-channels E commerce -, E commerce -, E commerce -, E commerce - and E commerce -. 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 -, 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.
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.
A page of payments for the window you name.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
minAmount | number | No | Inclusive lower bound on the transaction amount. |
maxAmount | number | No | Inclusive upper bound on the transaction amount. |
includeUnconfirmed | boolean | No | Include payments the bank has not confirmed. Defaults to false — only confirmed money, which is what the merchant portal shows. |
includeTest | boolean | No | Include test-mode payments. Defaults to false. |
channel | string | No | Case-insensitive substring match on how the payment was taken, e.g. Soundbox, Terminal, Business App. |
orderId | string | No | Case-insensitive substring match on the Order ID or on your own order reference. |
bankReference | string | No | Case-insensitive substring match on the bank reference number. |
terminal | string | No | Case-insensitive substring match on the terminal identifier. |
description | string | No | Case-insensitive substring match on the payment description. |
pageIndex | integer | No | Page number, 1-based, 1–1000. Defaults to 1. Split the window rather than paging deeper than that. |
pageSize | integer | No | Records per page, 1–100. Defaults to 50. Lower than the 1000 the campaign endpoints allow — this is a much heavier query. |
Responses
| Status | Meaning |
|---|---|
200 | The requested page of transactions, with paging totals alongside them. |
400 | The window is missing, inverted, longer than 90 days, or pageSize is above 100. The message says which. |
401 | Missing, 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.
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 /.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
minAmount | number | No | Inclusive lower bound on the transaction amount. |
maxAmount | number | No | Inclusive upper bound on the transaction amount. |
Responses
| Status | Meaning |
|---|---|
200 | The figures for the requested window. |
400 | The window is missing, inverted, or longer than 90 days. The message says which. |
401 | Missing, 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.
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.
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 /.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
minAmount | number | No | Inclusive lower bound on the transaction amount. |
maxAmount | number | No | Inclusive upper bound on the transaction amount. |
Responses
| Status | Meaning |
|---|---|
200 | The figures for the requested window. |
400 | The window is missing, inverted, or longer than 90 days. The message says which. |
401 | Missing, 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.
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.
A page of SINPE payment requests for the window you name.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
pageIndex | integer | No | Page number, 1-based, 1–1000. Defaults to 1. |
pageSize | integer | No | Records per page, 1–100. Defaults to 50. |
Responses
| Status | Meaning |
|---|---|
200 | The requested page of transactions, with paging totals alongside them. |
400 | The window is missing, inverted, longer than 90 days, or pageSize is above 100. The message says which. |
401 | Missing, 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>"
Requests, recipients, paid and unpaid, added up over the whole window.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
Responses
| Status | Meaning |
|---|---|
200 | The figures for the requested window. |
400 | The window is missing, inverted, or longer than 90 days. The message says which. |
401 | Missing, 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.
Your account's stores, oldest first.
Responses
| Status | Meaning |
|---|---|
200 | data: every store of the account. |
401 | Missing, 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.
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.
A page of daily stamp card activity per store, oldest first.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
pageIndex | integer | No | Page number, 1-based, 1–1000. Defaults to 1. |
pageSize | integer | No | Records per page, 1–100. Defaults to 50. |
Responses
| Status | Meaning |
|---|---|
200 | The requested page of transactions, with paging totals alongside them. |
400 | The window is missing, inverted, longer than 90 days, or pageSize is above 100. The message says which. |
401 | Missing, 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>"
Stamps earned, cards completed and gifts redeemed, added up over the whole window.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
Responses
| Status | Meaning |
|---|---|
200 | The figures for the requested window. |
400 | The window is missing, inverted, or longer than 90 days. The message says which. |
401 | Missing, 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.
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.
Your stores, each with whether the Marketing Suite is on.
Responses
| Status | Meaning |
|---|---|
200 | data: every store of the account with marketingSuite. |
401 | Missing, 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).
| File | One row per | Ids for joining |
|---|---|---|
/v1/exports/payments | payment | transactionId, storeId |
/ | SINPE payment request | requestId, storeId |
/ | email, SMS or WhatsApp send | sendId, campaignId |
/v1/exports/stamps | store per day of stamp card activity | storeId |
A window with more rows is refused with 400, code export_ and the row count — choose a shorter date range and download it in parts. A file is never cut short silently.
storeId joins payments and SINPE requests to your stores. sendId is the id the /, / and / 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.
Payments for the window, every page in one file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
minAmount | number | No | Inclusive lower bound on the transaction amount. |
maxAmount | number | No | Inclusive upper bound on the transaction amount. |
includeUnconfirmed | boolean | No | Include payments the bank has not confirmed. Defaults to false — only confirmed money, which is what the merchant portal shows. |
includeTest | boolean | No | Include test-mode payments. Defaults to false. |
channel | string | No | The same filter as on revenue transactions. |
orderId | string | No | The same filter as on revenue transactions. |
bankReference | string | No | The same filter as on revenue transactions. |
terminal | string | No | The same filter as on revenue transactions. |
description | string | No | The same filter as on revenue transactions. |
format | string | No | csv (default) or xlsx. One file per request. |
Responses
| Status | Meaning |
|---|---|
200 | The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/. |
400 | The 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_ and rowCount says how many: choose a shorter date range. |
401 | Missing, 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
SINPE payment requests for the window in one file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
format | string | No | csv (default) or xlsx. One file per request. |
Responses
| Status | Meaning |
|---|---|
200 | The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/. |
400 | The 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_ and rowCount says how many: choose a shorter date range. |
401 | Missing, 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
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
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
channel | string | No | email, sms or whatsapp. Omit for all three. |
format | string | No | csv (default) or xlsx. One file per request. |
Responses
| Status | Meaning |
|---|---|
200 | The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/. |
400 | The 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_ and rowCount says how many: choose a shorter date range. |
401 | Missing, 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
Daily stamp card activity per store for the window in one file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
startDate | date-time | Yes | Start of the window, inclusive, in your account's own timezone (not UTC) — e.g. 2026-08-01T00:00:00. |
endDate | date-time | Yes | End of the window, inclusive to the minute, in your account's own timezone. No more than 90 days after startDate. |
storeIds | guid[] | No | Restrict to specific stores. Repeat the parameter, or pass a comma-separated list. Omit for every store on the account. |
format | string | No | csv (default) or xlsx. One file per request. |
Responses
| Status | Meaning |
|---|---|
200 | The file, as an attachment: text/csv (UTF-8 with a byte-order mark) or application/. |
400 | The 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_ and rowCount says how many: choose a shorter date range. |
401 | Missing, 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
| Status | What it means | What to do |
|---|---|---|
200 | The query ran. | An empty data array is a valid answer — it means no rows matched. |
400 | A required parameter is missing, or a value is out of range. | Check id/queueId is present and that paging values are within bounds. |
401 | The token is missing, expired or invalid. | Fetch a new token and retry once. |
404 | Nothing matches that id on this channel. | Confirm the id came from the matching list endpoint — campaign and distribution ids are not interchangeable. |
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
| Limit | Value |
|---|---|
pageIndex | 1–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 file | 5,000 |