Single endpoint for all delivery providers. Set provider and supply the matching config object —
smtpConfig, m365Config (white-label flow: your own Azure app registration) or googleConfig.
Upserts by instanceName. The instanceName is sanitized (non-alphanumeric characters become
hyphens), and for smtp and google the reserved name "Managed Instance" is stored as "Customer Managed Instance".
For m365 the app registration needs the Microsoft Graph application permissions Mail.ReadWrite and
User.Read.All with admin consent, and the details are tested (a sign-in that checks those permissions; nothing
is sent) before anything is saved. It can use a federated credential instead of a client secret
(m365Config.credentialType "federated"), for tenants that block new client secrets: add a federated
credential to the app registration with issuer https://id.caniverify.com, subject
workspace:{tenantID}:injection:{instanceName as stored} and the audience Entra fills in (api://AzureADTokenExchange
in the global cloud; US Government and China tenants get their cloud's own).
Switching an instance to a federated credential removes its stored client secret.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||