Engagement Adapter APIs

The Engagement Adapter provides the following operations:

Push API

sendPush

The sendPush API is used to send a push notification to the specified email addresses or devices. This API uses the authentication mechanism to connect to the Engagement Server.

URL

https://<Engagement URL>/api/v1/message

Request Method

POST

Request Body Parameters

IMPORTANT:
  • Make sure that you provide a value for the email parameter or the ksid parameter.
  • If you provide a value for both parameters (email and ksid), the adapter uses the ksid parameter.

 

Parameter Required Description
appId Required Specifies the name of the Engagement app that is used to invoke the APIs.
title Required Specifies the title of the push notification.
message Required Specifies the message of the push notification.
email Optional
(if using ksid)
Specifies the email address of the subscriber to which the notification is sent.
ksid Optional
(if using email)
Specifies the ksid value of the subscriber. The ksid value is used to communicate with the Engagement server.

sendPushWithAPIKey

The sendPushWithAPIKey API is used to send a push notification to the specified email addresses or devices. This API uses the API Key to connect to the Engagement Server.

URL

https://<Engagement URL>/api/v1/message

Request Method

POST

Request Body Parameters

IMPORTANT:
  • Make sure that you provide a value for the email parameter or the ksid parameter.
  • If you provide a value for both parameters (email and ksid), the adapter uses the ksid parameter.

 

Parameter Required Description
appId Required Specifies the name of the Engagement app that is used to invoke the APIs.
title Required Specifies the title of the push notification.
message Required Specifies the message of the push notification.
email Optional
(if using ksid)
Specifies the email address of the subscriber to which the notification is sent.
ksid Optional
(if using email)
Specifies the ksid value of the subscriber. The ksid value is used to communicate with the Engagement server.

Email API

sendEmail

The sendEmail API is used to send an email to the specified recipients. This API uses the authentication mechanism to connect to the Engagement Server.

URL

https://<Engagement URL>/api/v1/message/email

Request Method

POST

Request Body Parameters

Parameter Required Description
emailList Required Specifies the list of email addresses of the recipients. You can provide multiple values by separating them with a comma (,).
Subject Required Specifies the subject of the email.
message Required Specifies the message of the email.

sendEmailWithAPIKey

The sendEmailWithAPIKey API is used to send an email to the specified recipients. This API uses the API Key to connect to the Engagement Server.

URL

https://<Engagement URL>/api/v1/message/email

Request Method

POST

Request Body Parameters

Parameter Required Description
emailList Required Specifies the list of email addresses of the recipients. You can provide multiple values by separating them with a comma (,).
Subject Required Specifies the subject of the email.
message Required Specifies the message of the email.

SMS API

sendSMS

The sendSMS API is used to send an SMS to the specified phone numbers. This API uses the authentication mechanism to connect to the Engagement Server.

URL

https://<Engagement URL>/api/v1/message/sms

Request Method

POST

Request Body Parameters

Parameter Required Description
message Required Specifies the message of the SMS.
mobileNoList Required Specifies the mobile numbers of the recipients. You can provide multiple values by separating them with a comma (,).

sendSMSWithAPIKey

The sendSMSWithAPIKey API is used to send an SMS to the specified phone numbers. This API uses the API Key to connect to the Engagement Server.

URL

https://<Engagement URL>/api/v1/message/sms

Request Method

POST

Request Body Parameters

Parameter Required Description
message Required Specifies the message of the SMS.
mobileNoList Required Specifies the mobile numbers of the recipients. You can provide multiple values by separating them with a comma (,).