Sign inGet Started

Get the choices available for a new seed test

GET
/v1/email/inbox-insights/seed-tests/configuration
// Requires Insights preview access for the organization.
let sendingDomain: string | undefined;
for await (const domain of bird.email.inboxInsights.domains.list({ search: "mail.example.com" })) {
  if (domain.domain === "mail.example.com") { sendingDomain = domain.domain; break; }
}
if (!sendingDomain) throw new Error("Verify mail.example.com in this workspace first");
const report = await bird.email.inboxInsights.seedTests.configuration.get({ sending_domain: sendingDomain });
console.log(report);
Reactie200
{
  "resource": "seed-test-configuration",
  "domain": "mail.acme.com",
  "list_types": [
    {
      "value": "private",
      "available": true
    }
  ],
  "regions": [
    {
      "value": "North America - US"
    }
  ],
  "engagement_profiles": [
    {
      "value": "all",
      "available": true
    }
  ]
}

Returns what a new seed test can be configured with for a sending domain: the seed pools the account can use, the regions seeds can be placed in, and the engagement behaviours the seeds can simulate.

A seed pool flagged unavailable is one the account has not been provisioned for, and no self-serve route enables one, so leave it out of the choices you offer rather than showing it unpickable. This is reference data that changes only when provisioning does, so it suits being fetched when a configuration form opens rather than on every page view.

Scoped API keys, OAuth and service accounts require organization preview access.

Queryparameters

sending_domainstring

The sending domain a test would be registered for: one of the workspace's verified sending domains, exactly as it appears there. A domain that is not verified in this workspace answers not-found.

Response Payload

resource
string
verplicht

Which resource this response is, echoed for self-description.

domain
string
verplicht

The sending domain these choices apply to.

list_types
array of object
verplicht

The seed pools, each flagged with whether the account can use it.

Onderliggende attributen tonen
regions
array of object
verplicht

The regions seeds can be placed in. Objects rather than bare strings, to match the two lists beside it: the measurement reports no availability for a region today, and an object can carry one later without a second array.

Onderliggende attributen tonen
regions.value
string
verplicht

The value to send when registering a test against this region. Free text rather than an enumeration: the set belongs to the measurement and is wider than the continents it looks like, so send one of these back verbatim rather than composing your own.

engagement_profiles
array of object
verplicht

The engagement behaviours the seeds can simulate, each flagged with whether the account can use it.

Onderliggende attributen tonen

Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.