Different types of Email Configuration APIs

Add or Update Provider Configuration

The Add or Update Provider Configuration API accepts the provider name and configuration properties as input parameters. You need to use this API to set up the email provider before sending emails by using the provider.

IMPORTANT:
  • This API sets the specified HTTP provider (SendGrid or Outlook) as the default email provider.
  • Only one email provider can be active at any point in time.

If you add an HTTP provider by using this API, all other HTTP providers and SMTP providers are deactivated.
Similarly, if you set an SMTP email provider by using the SMTP config URL, all HTTP providers are deactivated.

URL

http://<host or ip>:<port>/api/v1/emailconfig

Method

POST

The payload's request header includes Authorization headers and also includes Content-Type as application/json;charset=UTF-8.

Input Parameters

Input Parameter Level – Two Required Type Description
provider   Required String The name of the email provider, for example: SENDGRID, OUTLOOK
properties   Required Array of JSON An array of configuration properties
  key Required String

The name of the property. The properties are specific to the provider.

For example, the following values are applicable for SendGrid:

  • Account Key
  • Auth Token
  • From
  • To
  • Subject
  • Content

For more information, refer to the sample requests in the following section.

  value Required String A value that corresponds to the key, for example, a value for the From key, is user.name@temenos.com.
  encrypt Required Boolean
(true/false)
Specifies whether the value must be encrypted in the request.
IMPORTANT:

The following points are applicable to the SendGrid provider.

  • The SendGrid URL must be publicly accessible.
  • Personalized attributes cannot be used if you are sending a group email.
  • The unsubscribe link is enabled for transactional emails but disabled for group emails.

The following points are applicable to the Outlook provider.

  • The Outlook provider contains sending limits and must not be used as a bulk email provider.
  • The SenderName value is fetched from the back-end server even if you provide a value in the request payload.

Sample Request

Test Email Configuration

The Engagement Server supports testing an email configuration that is set up by using the Add or Update Provider Configuration API.

URL

http://<host or ip>:<port>/api/v1/emailconfig/test

Method

POST

Header

This API does not use a payload header.

Input Parameters

Input Parameter Level – Two Required Type Description
provider   Required String The name of the email provider, for example: SENDGRID, OUTLOOK
properties   Required Array of JSON An array of configuration properties
  key Required String

The name of the property. The properties are specific to the provider.

For example, the following values are applicable for SendGrid:

  • Account Key
  • Auth Token
  • From
  • To
  • Subject
  • Content

For more information, refer to the sample requests in the following section.

  value Required String A value that corresponds to the key, for example, a value for the From key, is user.name@temenos.com.
  encrypt Required Boolean
(true/false)
Specifies whether the value must be encrypted in the request.

Sample Request

Response Codes