You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
In the BPA we have two places where we need to send notifications:
Send connection invitations by email
Send notifications (email, sms, etc.) when something happens that requires user interaction when running in manual mode e.g. receiving a connection request, credential proposal, or presentation request.
The first action is triggered by the user e.g. when creating a connection invitation. The second action is triggered automatically. To fit both of those needs the backend splits the messaging configuration into three parts:
Message Templates
This is the text that is send in the message. Currently this only plain text, and the backend will filter out any html tags, but if we need this we can easily activate it. The template supports placeholders, currently the backend knows {{event}}, {{time}}, but we probably need more like the user
Currently posting a template look like:
POST /api/messaging/template
{
"subject": "This is the emails subject",
"template": "Hello {{user}}, you have received a {{type}} event at {{time}}."
}
User Information
This is the information to whom the message is sent. Posting this looks like:
POST /api/messaging/user-info
{
"sendTo": "[email protected]",
"label": "Optional - Some human readable tag like: Test User"
}
Message Triggers
Triggers wire template, user info and event type together. The userInfoId is optional and there will be a fallback to a default message template if it is missing.
{
"templateId": "optional uuid of the template, if not set will use default message template",
"invitationId": "mandatory invitiationId returned from the create invitation endpoint",
"userInfoId": "optional uuid of the userInfo",
"email": "optional can be any email entered by the user. either email or userInfoId need to be set"
}
The text was updated successfully, but these errors were encountered:
In the BPA we have two places where we need to send notifications:
The first action is triggered by the user e.g. when creating a connection invitation. The second action is triggered automatically. To fit both of those needs the backend splits the messaging configuration into three parts:
This is the text that is send in the message. Currently this only plain text, and the backend will filter out any html tags, but if we need this we can easily activate it. The template supports placeholders, currently the backend knows
{{event}}
,{{time}}
, but we probably need more like the userCurrently posting a template look like:
POST /api/messaging/template
This is the information to whom the message is sent. Posting this looks like:
POST /api/messaging/user-info
Triggers wire template, user info and event type together. The userInfoId is optional and there will be a fallback to a default message template if it is missing.
POST /api/messaging/trigger
Possible message triggers are returned from the /api/admin/config endpoint like
POST /api/messaging/send-invitation
The text was updated successfully, but these errors were encountered: