v1 is deprecated. Please move to API v2 (recommended). v1 keeps working until March 31, 2027, then it stops. See Moving from v1.

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.

GEThttps://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_before 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

  • Authorizationstringrequired

    Bearer <your API token>. The token needs Read access.

Query parameters

  • organization_idstringrequired

    Your workspace id (org_...). Must be a workspace this token was made for.

  • weeksstringoptional

    How many weeks to return, from 1 to 12. Default 1 (the newest week).

  • beforestringoptionaldate

    A date (YYYY-MM-DD): only weeks older than this. Pass the next_before of the last answer to get the next older page.

Response (200)

  • totalintegerrequired

    How many reports are in this page.

  • reportsobject[]required

    Weekly reports, newest week first. One report per Reporting order per week.

    Show child fields
    • idstringrequired

      Id of this weekly report.

    • payment_idstringrequired

      The order id (sub_...) the report belongs to.

    • org_idstringrequired

      The workspace id (org_...).

    • status"Complete"required
    • reporting_substringrequired

      Same as payment_id.

    • weekofstringrequireddate

      The week of the test (YYYY-MM-DD).

    • domainsobject[]required

      One entry per tested domain.

      Show child fields
      • domain_idstringrequired

        The domain name (same as domain_name).

      • order_typeenumrequired

        Provider of the order the domain is on.

        One of: google microsoft smtp

      • step"complete"required
      • domain_namestringrequired

        The domain name.

      • statsobjectrequired
        Show child fields
        • overall_scorenumberrequired0 to 100

          Inbox score, 0 to 100: share of test emails that reached the inbox.

        • domain_reputationnumber | nullrequired

          Spamhaus domain reputation score. null when there is no data for the domain, or the check could not run.

        • blacklistedstring[]required

          Blocklists the domain is on, e.g. SURBL, Spamhaus. Empty = not listed, or the blocklist check is still running or could not run.

    • avgReputationnumber | nullrequired

      Average domain_reputation, 2 decimals. Domains without data are left out; null when none has data.

    • avgInboxScorenumberrequired

      Average overall_score, 2 decimals. 0 when there are no domains.

  • next_beforestring | nullrequired

    Pass this as before for the next older weeks. null = no older weeks.

Responses

  • 200OK. The reports of the asked weeks. No Reporting orders = an empty list.
  • 400Invalid paging. before is not a YYYY-MM-DD date or weeks is not a number from 1 to 12.
  • 400No workspace. organization_id is missing.
  • 401Wrong workspace. The token can't use this organization_id. Check the token's workspaces in Settings › API tokens.
  • 429Busy. Too many large calls are running for this workspace or on the server. Wait for the Retry-After seconds (5). Over 120 calls a minute gives rate_limited.
  • 500Server error. The reports could not be loaded. Note the text shape: error holds text, there is no code. Try again; if it keeps failing, send the requestId to support.