Email Delivery Settings
Use the emailDeliverySettings endpoint to configure the sending of notifications via an external email service.
Note that you can only have a single set of email delivery settings for an environment, whether it be a custom SMTP mail server or an external email service.
Email delivery settings data model
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
Object |
Required |
Mutable |
Contains the information for authenticating with the email provider. |
|
String |
Required |
Mutable |
The assertion to use if |
|
String |
Required |
Mutable |
If you specified |
|
String |
Required |
Mutable |
The URL of the authorization server that provides the access token. |
|
String |
N/A |
Read-only |
The method used for sending credentials for OAuth2. Returned in responses for custom providers that require OAuth 2 authentication. For authentication based on client ID and secret, the value returned is |
|
String |
Required |
Mutable |
The client’s public identifier. |
|
String |
Required |
Mutable |
The client’s secret. |
|
String |
Optional |
Mutable |
The grant type used. Relevant for custom providers that require OAuth 2 authentication. Set to |
|
String |
Required |
Mutable |
The name of the custom header used for authentication. |
|
String |
Required |
Mutable |
The value to use for the custom header used for authentication. |
|
String |
Required |
Mutable |
The custom provider account’s authentication method. Possible values: * BASIC - username/password * BEARER - bearer token * OAUTH2 - OAuth 2 * CUSTOM_HEADER - authentication using a custom header |
|
String |
Required |
Mutable |
If you specified |
|
Array |
Optional |
Mutable |
When |
|
String |
Required |
Mutable |
If you specified |
|
String |
N/A |
Read-only |
The environment’s unique identifier. |
|
Object |
Optional |
Mutable |
Contains the "from" information to use for the notifications. |
|
String |
Optional |
Mutable |
The "from" name to use in the notifications that are sent. |
|
String |
Optional |
Mutable |
The "from" address to use in the notifications that are sent. |
|
String |
Required |
Mutable |
Name to use to identify the provider. |
|
String |
Required |
Immutable |
Set to |
|
String |
Required |
Immutable |
Must be set to |
|
Object |
Optional |
Mutable |
Contains the "reply-to" information to use for the notifications. |
|
String |
Optional |
Mutable |
The "reply-to" name to use in the notifications that are sent. |
|
String |
Optional |
Mutable |
The "reply-to" address to use in the notifications that are sent. |
|
Array |
Required |
Mutable |
Contains the object that is used to configure the API requests sent to the email provider. |
|
String |
Required |
Mutable |
Required if * The content of * You must enclose the JSON object in quotation marks and escape all quotation marks within the string, for example, |
|
String |
Required |
Immutable |
Should be set to |
|
Object |
Required |
Mutable |
Use this object to specify the headers that your email provider’s API expects. |
|
String |
Required |
Mutable |
Use |
|
String |
Required |
Mutable |
Use |
|
Date |
N/A |
Read-only |
The date and time the email delivery settings were last updated. |
Email delivery settings errors
In addition to the general error codes, email delivery settings operations can return the following errors:
| HTTP status | Top‑level code | Detail code | When it happens and what the response contains |
|---|---|---|---|
400 |
|
|
Message: When and detailsWhen: A create or update request body fails constraint validation (for example, the request omits Details: Per violated constraint: detail |
400 |
|
|
Message: When and detailsWhen: A request body is malformed JSON or contains a value of the wrong type (for example, an unknown Details: For a JSON field conversion error, detail |
400 |
|
|
Message: When and detailsWhen: An update request changes the authentication method without providing a new secret. Details: Detail |
400 |
|
|
Message: When and detailsWhen: A create or update request defines invalid OAuth2 authentication (a Details: Detail |
400 |
|
|
Message: When and detailsWhen: A create or update request defines provider requests that are invalid (a GET request with a body, a POST body whose form-encoded content does not match its Details: Detail |
400 |
|
|
Message: When and detailsWhen: A create or update request references an mTLS key pair that is expired, has the wrong usage type, or cannot be loaded. Details: Detail |
403 |
|
None |
Message: When and detailsWhen: The actor lacks the permission for the operation: Details: None. |
404 |
|
None |
Message: When and detailsWhen: A request specifies an environment that does not exist. Details: None. |
404 |
|
|
Message: When and detailsWhen: A create or update request references an mTLS key pair that does not exist. Details: Detail |