Create/update an email delivery provider (unified)

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
enum
required

Which provider to save. Determines which config object is read; the others are ignored.

Allowed:
string
required

Display name of the delivery instance; upserts by this name. For m365 it is sanitized to [a-zA-Z0-9-].

smtpConfig
object

Required when provider is "smtp".

m365Config
object

Required when provider is "m365". Azure app registration for white-label Direct Email Injection; applicationId/azureTenantId must match ^[a-zA-Z0-9-]+$.

googleConfig
object

Required when provider is "google".

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json