Reporting
Get reporting
Get the weekly test results of your domains with Reporting: inbox score, domain reputation and blocklists. Pages go by week, newest first.
https://server.scaledmail.com/api/v1/reporting- Token access
- Read
- Rate limit
- 120 read calls per minute per token
Without weeks and before you get only the newest week. To go back, call again with before = the next_ you got, until it is null.
A big workspace's week can be a large answer. When the server is busy with other large calls you get 429 busy: wait a few seconds and try again.
Headers
AuthorizationstringrequiredBearer <your API token>. The token needs Read access.
Query parameters
organization_idstringrequiredYour workspace id (
org_). Must be a workspace this token was made for.. . . weeksstringoptionalHow many weeks to return, from 1 to 12. Default 1 (the newest week).
beforestringoptionaldateA date (
YYYY-MM-DD): only weeks older than this. Pass thenext_of the last answer to get the next older page.before
Response (200)
totalintegerrequiredHow many reports are in this page.
reportsobject[]requiredWeekly reports, newest week first. One report per Reporting order per week.
ShowHide child fields
idstringrequiredId of this weekly report.
payment_idstringrequiredThe order id (
sub_) the report belongs to.. . . org_idstringrequiredThe workspace id (
org_).. . . status"Complete"requiredreporting_substringrequiredSame as
payment_.id weekofstringrequireddateThe week of the test (
YYYY-MM-DD).domainsobject[]requiredOne entry per tested domain.
ShowHide child fields
domain_idstringrequiredThe domain name (same as
domain_).name order_typeenumrequiredProvider of the order the domain is on.
One of:
googlemicrosoftsmtpstep"complete"requireddomain_namestringrequiredThe domain name.
statsobjectrequiredShowHide child fields
overall_scorenumberrequired0 to 100Inbox score, 0 to 100: share of test emails that reached the inbox.
domain_reputationnumber | nullrequiredSpamhaus domain reputation score.
nullwhen there is no data for the domain, or the check could not run.blacklistedstring[]requiredBlocklists the domain is on, e.g.
SURBL,Spamhaus. Empty = not listed, or the blocklist check is still running or could not run.
avgReputationnumber | nullrequiredAverage
domain_, 2 decimals. Domains without data are left out;reputation nullwhen none has data.avgInboxScorenumberrequiredAverage
overall_, 2 decimals.score 0when there are no domains.
next_beforestring | nullrequiredPass this as
beforefor the next older weeks.null= no older weeks.
Responses
- 200OK. The reports of the asked weeks. No Reporting orders = an empty list.
- 400Invalid paging.
beforeis not aYYYY-MM-DDdate orweeksis not a number from 1 to 12. - 400No workspace.
organization_is missing.id - 401Wrong workspace. The token can't use this
organization_. Check the token's workspaces in Settings › API tokens.id - 429Busy. Too many large calls are running for this workspace or on the server. Wait for the
Retry-Afterseconds (5). Over 120 calls a minute givesrate_.limited - 500Server error. The reports could not be loaded. Note the text shape:
errorholds text, there is nocode. Try again; if it keeps failing, send therequestIdto support.
