Notify multiple users
Changed onThis API enables you to notify multiple users with one event trigger.
Before firing your first notification event, you must perform the following actions in your Fyno account:
- Create a Template
- Create an Event
- Create an API Key
- And obtain your workspace ID from the API Keys page.
Request
- Base URLhttps://api.fyno.io/v1
- URLhttps://api.fyno.io/v1/{WSID}/{version}/event/bulk
- AuthHTTP bearer
Path parameters
Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.
Enter the version for which you wish to fire the notification.
Request body
Example request
{
"batch": [
{
"callback": {
"custom_id": "ID001",
"custom1": "EV001",
"custom2": "P001",
"custom3": "C001",
"enable": true
},
"data": {
"placeholder_key_1": "placeholder_value_1",
"placeholder_key_2": "placeholder_value_2"
},
"to": {
"discord": "101XXXXXXXXXX7XXXXX",
"email": "abcde@fghi.com",
"inapp": "12345",
"push": "ExponentPushToken[XXXXX]",
"slack": "CXXXXXXXXXX",
"sms": "+419XXXXXX",
"teams": "General",
"voice": "+19XXXXXXXX",
"whatsapp": "+419879XXXXXX"
}
}
],
"event": "event_name"
}Response
Request accepted successfully and it will be processed asynchronously.
Example response
{
"event": "event_name",
"received_time": 1672991866453,
"request_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"response": [
{
"discord": {
"destination": "101XXXXXXXXXX7XXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"email": {
"destination": "abcde@fghi.com",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"inapp": {
"destination": "12345",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"push": {
"destination": "ExponentPushToken[XXXXX]",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"seq": 1,
"slack": {
"destination": "CXXXXXXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"sms": {
"destination": "+49XXXXXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"teams": {
"destination": "General",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"voice": {
"destination": "+49XXXXXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"whatsapp": {
"destination": "+49XXXXXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
}
}
]
}Changes
- breaking
removed
subschema #1subschema #2subschema #3from the/request propertyoneOflist - info
added
subschema #1: Option 1: to onlysubschema #2: Option 2: distinct_id onlysubschema #3: Option 3: distinct_id and toto the/request propertyoneOflist
- breaking
- breaking
removed the enum value
livefrom thepathrequest parameterversion - breaking
removed the enum value
testfrom thepathrequest parameterversion - breaking
removed
subschema #1subschema #3from the/request propertyoneOflist - info
added
subschema #1subschema #3to the/request propertyoneOflist
- breaking