Notification Senders configurations¶
The RESTful API for managing notification sender configurations in WSO2 Identity Server supports Email and SMS as the notification channels.
The following section provides the instructions to contruct requests for each notification sender type.
Important
-
The email notification sender configuration is not supported for carbon.super tenant via this API.
Refer email sending module configuration to setup email notification sender for carbon.super tenant. Underlying, the event publishers in
<IS_HOME>/repository/deployment/server/eventpublisherswill send the notifications. For more information on writing an event publisher, see Event Publisher Types. -
The following properties are used for internal operations. Therefore, avoid using these properties when configuring notification senders.
Property Purpose streamName The name of the event stream where events are picked for notification sending version The version of the event stream type Type of the notification sender (email/sms)
Email Sender Configuration
- If you want to add properties related to email adaptor configurations (eg: SMTP configurations), define property keys with the exact names given in the Email Event Publisher documentation.
SMS Sender Configuration
- Some SMS providers’ SMS sending API payloads are templated in the
<IS_HOME>/repository/conf/sms/sms-providers-api-body-templates.xmlfile. - You can add new SMS providers’ payloads, or modify the existing SMS provider payloads by adding new attributes.
-
Attribute values that need to be replaced by the POST /notification-senders/sms API’s input should be templated with a prefix, “$”. For example,
Properties in POST /notification-senders/sms request
- Properties that need to be included in SMS provider API’s body should be defined with the prefix, ”body.”.
- If the property named “body” is present, the corresponding value will be used as the SMS provider API’s body.
-
If you want to add properties related to HTTPOutputEventAdaptor, define keys with the exact names defined in the HTTP Event Publisher documentation.
Example:
-
Let's assume you change the
Bulksmstemplate as follows. -
The POST /notification-senders/sms request should have a property with a key named “body.routingGroup”.
-