Get inbox vs spam by provider (bulk)
Inbox vs spam by recipient provider for up to 50 accounts
Batched form of GET accounts/{id}/analytics/esp, with the same window, esps and timeZone fields in the body. POST rather than GET because the id list can exceed a practical query-string length. Partial-succeed: an account that cannot be read is reported in failed while the rest still return.
Path Parameters
Account ids to read. Max 50 per request.
Start date, inclusive (YYYY-MM-DD)
End date, inclusive (YYYY-MM-DD)
ESPs to include. Defaults to all of gmail, outlook, other.
"gmail" | "outlook" | "other"IANA time zone for day boundaries, e.g. Asia/Kolkata
"UTC"Response Body
curl -X POST "https://lynx-api.trulyinbox.com/v2/workspaces/0/analytics/accounts/esp" \ -H "Content-Type: application/json" \ -d '{ "accountIds": [ 1, 2, 3 ] }'{
"data": {
"from": "2026-11-01",
"to": "2026-11-19",
"accounts": [
{
"accountId": 12,
"perEsp": [
{
"esp": "gmail",
"sentCount": 0,
"inboxCount": 0,
"spamCount": 0,
"deliverabilityRate": 0
}
],
"totalSentCount": 1500,
"totalInboxCount": 1320,
"totalSpamCount": 180,
"deliverabilityRate": 88
}
],
"failed": [
{
"accountId": 456,
"reason": "not_found"
}
]
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}Get inbox vs spam by providerGET
Inbox vs spam by recipient provider (Gmail, Outlook, other) for one account Warmup emails this account sent in the window, split by the recipient's provider: sent, inbox and spam counts plus the inbox rate for each, and totals summed from those rows. Original sends only (replies are excluded). `from`/`to` are inclusive dates, at most 90 days apart, with day boundaries in `timeZone` (default UTC). Requires a plan with the deliverability-score report; other plans get 403.
Get deliverability score for an accountGET
Deliverability for a single account (rolling 30-day window) The same row `analytics/deliverability` returns for this account, without scanning the whole workspace. An account with no sends in the window reports zeros rather than 404ing. The window is fixed at 30 days and is not caller-configurable, so the number matches the workspace-level response.