Sign inGet started

List sending domains and their Inbox Insights status

GET
/v1/email/inbox-insights/domains
// Requires Insights preview access for the organization.
for await (const domain of bird.email.inboxInsights.domains.list({ limit: 25 })) {
  console.log(domain.domain, domain.monitored);
}
Antwort200
{
  "data": [
    {
      "domain": "mail.acme.com",
      "monitored": true
    }
  ],
  "next_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE0OjAzOjEwWlwiIiwiaSI6IjAxOTJmM2IxLTRjN2UtN2EyYi05ZDYxLThmM2E1YzJlN2I0MCJ9",
  "prev_cursor": null,
  "refresh_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE2OjQyOjAxWlwiIiwiaSI6IjAxOTJmM2IxLTllMDQtN2NkMy1iODE3LTJhNmY0ZDFjOGUwOSJ9"
}
Returns a page of sending domains this workspace can report on, in alphabetical order by default, and whether Inbox Insights is switched on for each.
Only verified domains appear. Verifying a domain proves it is yours, which is what Inbox Insights needs before it will report on it, and a domain that loses its verification drops out of this list even if it was switched on.
A domain does not have to be ready to send to appear here. Verification and sending readiness are reported separately on your sending domains, and this list follows the first.
Use this list to select a verified domain for placement and reputation reports. The monitored field records the workspace's monitoring preference; report access depends on verified ownership and remains available when monitoring is off.
API-key calls require Insights preview access for your organization.
Abfrageparameter
sending_domain
string
Exact sending domain to return. Matching is case-insensitive.
search
string
Substring match against the sending domain (case-insensitive).
sort
string
Field to sort by. Defaults to domain.
Possible values: domain
order
string
Sort direction. Defaults to asc, which sorts alphabetically or from oldest to newest, depending on the selected sort field.
Possible values: asc, desc
limit
integer
Maximum number of items to return per page.
starting_after
string
Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
ending_before
string
Cursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.
Antwort-Payload
data
array of object
erforderlich
One entry per verified domain in this page, whether or not it is switched on. A domain that has not been verified does not appear, because verification is what proves the domain is yours to report on.
Untergeordnete Attribute anzeigen
data.domain
string
erforderlich
The sending domain, lowercased, as it appears in your sending domains.
data.monitored
boolean
erforderlich
Whether Inbox Insights reports on this domain. Switching it off stops the reporting and keeps the measurement history, so switching it back on restores the full history rather than starting again.
next_cursor
nullable string
erforderlich
Cursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.
prev_cursor
nullable string
erforderlich
Cursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.
refresh_cursor
nullable string
erforderlich
Refresh anchor, the first row of this response. Pass back as ending_before to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-null whenever data is non-empty; null only on an empty page. Distinct from prev_cursor.