Notify a single user
This API enables you to fire a notification event, which sends out notifications to your users.
Before firing your first notification event, you must perform the following actions in your Fyno account:
- Create a Template
- Create a Notification Event
- Create an API Key
- And obtain your workspace ID from the API Keys page.
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
{
"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"
},
"event": "event_name",
"to": {
"discord": "101XXXXXXXXXX7XXXXX",
"email": "abcde@fghi.com",
"inapp": "12345",
"push": "ExponentPushToken[XXXXX]",
"slack": "CXXXXXXXXXX",
"sms": "+919879XXXXXX",
"teams": "General",
"voice": "+919879XXXXXX",
"whatsapp": "+919879XXXXXX"
}
}Response
Request accepted successfully and it will be processed asynchronously.
Example response
{
"event": "event_name",
"received_time": "2025-02-17T07:49:13.352Z",
"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"
},
"slack": {
"destination": "CXXXXXXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"sms": {
"destination": "+919879XXXXXX",
"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": "+919879XXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
},
"whatsapp": {
"destination": "+919879XXXXXX",
"msg_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXX",
"status": "ok"
}
}
}Changes
Changed in 8 of the 35 revisions of this API.943
- ▲
removed
subschema #1subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ▲
- ▲
removed
subschema #1subschema #2subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #2subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ▲
- ▲
removed
subschema #1subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ▲
- ▲
removed
subschema #1subschema #2subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ▲
the
received_timeresponse's property type/format changed fromnumber/tostring/datefor status202response-property-type-changed
- ○
added
subschema #1subschema #2subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ○
the response property
_messagebecame required for the status400response-property-became-required
- ○
the response property
_messagebecame required for the status401response-property-became-required
- ○
the response property
eventbecame required for the status202response-property-became-required
- ○
the response property
received_timebecame required for the status202response-property-became-required
- ○
the response property
request_idbecame required for the status202response-property-became-required
- ○
the response property
responsebecame required for the status202response-property-became-required
- ○
the response property
response/discord/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/discord/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/discord/statusbecame required for the status202response-property-became-required
- ○
the response property
response/email/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/email/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/email/statusbecame required for the status202response-property-became-required
- ○
the response property
response/inapp/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/inapp/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/inapp/statusbecame required for the status202response-property-became-required
- ○
the response property
response/push/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/push/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/push/statusbecame required for the status202response-property-became-required
- ○
the response property
response/slack/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/slack/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/slack/statusbecame required for the status202response-property-became-required
- ○
the response property
response/sms/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/sms/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/sms/statusbecame required for the status202response-property-became-required
- ○
the response property
response/teams/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/teams/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/teams/statusbecame required for the status202response-property-became-required
- ○
the response property
response/voice/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/voice/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/voice/statusbecame required for the status202response-property-became-required
- ○
the response property
response/whatsapp/destinationbecame required for the status202response-property-became-required
- ○
the response property
response/whatsapp/msg_idbecame required for the status202response-property-became-required
- ○
the response property
response/whatsapp/statusbecame required for the status202response-property-became-required
- ○
the response property
statusbecame required for the status400response-property-became-required
- ○
the response property
statusbecame required for the status401response-property-became-required
- ▲
- ▲
removed
subschema #1subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #3to the request bodyoneOflistrequest-body-one-of-added
This revision also has 22 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
subschema #1subschema #2subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #2subschema #3to the request bodyoneOflistrequest-body-one-of-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
subschema #1subschema #2subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #2subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ▲
- ▲
removed
subschema #1subschema #2subschema #3from the request bodyoneOflistrequest-body-one-of-removed
- ○
added
subschema #1subschema #2subschema #3to the request bodyoneOflistrequest-body-one-of-added
- ▲