Docs
Reports

Bulk account report

Per-account warmup stats for up to 50 accounts

Batched form of the single-account stats endpoint. 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.

POST
/v2/workspaces/{workspaceId}/analytics/accounts/stats

Path Parameters

workspaceIdnumber
accountIdsarray<number>

Account ids to read. Max 50 per request.

days?number

Window size in days. Capped at 30, matching the single-account stats endpoint.

Default30
Range1 <= value <= 30

Response Body

curl -X POST "https://lynx-api.trulyinbox.com/v2/workspaces/0/analytics/accounts/stats" \  -H "Content-Type: application/json" \  -d '{    "accountIds": [      1,      2,      3    ],    "days": 30  }'
{
  "data": {
    "days": 30,
    "accounts": [
      {
        "accountId": 0,
        "emailAddress": "string",
        "poolTier": "string",
        "warmupStatus": "string",
        "currentLimit": 0,
        "rampupDay": 0,
        "deliverabilityRate": 0,
        "dailyBreakdown": [
          {
            "date": "string",
            "sent": 0,
            "received": 0,
            "bounced": 0,
            "spamDetected": 0
          }
        ]
      }
    ],
    "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"
  }
}