API Docs / Operations / Email - Configs / Create Email Config

Create Email Config

POST /tenants/{tenant}/email-configs

Creates a new email configuration. For SMTP: provide SmtpSettings. For OAuth (Microsoft365/Google): provide OAuthSettings with returnUrl - response includes authorisationUrl to redirect user to. If IsDefault is true, IsShared must also be true.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

Request Body*

{
  "providerType": "Smtp",
  "fromEmail": "string",
  "fromName": "string",
  "isDefault": false,
  "isShared": false
}

Responses

201 Created
400 Bad Request
401 Unauthorized – Invalid or missing API key