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.
Authentication
Path parameters
Headers
A unique key that makes this request idempotent, for example a UUID such as XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. If Fyno receives another request with the same key, it returns the stored response from the first request without firing the notification again, including the original status code and any error. Use this to safely retry a request after a network failure without sending duplicate notifications. The key is scoped to this endpoint.
How long the idempotency key stays valid, as a Unix epoch timestamp in seconds (for example 1789012345) or an ISO 8601 date string (for example 2026-09-16T12:40:20.997+05:30). Applies only when Idempotency-Key is sent. If omitted, the key is retained for 24 hours. The maximum is 1 year.
Request
Your event payload must specify at least distinct_id or to while firing a notification event. Choose one of the three options below.
Option 1: to only
Required: event, to
The notification event uses all destination values from the to object, as they are.
{
"event": "event_name",
"to": {
"email": "abcde@fghi.com",
"sms": "+49XXXXXXXXX"
},
"data": {
"placeholder_key_1": "placeholder_value_1"
}
}
Option 2: distinct_id only
Required: event, distinct_id
The notification event uses all destination values (such as SMS, WhatsApp, Email, Push, and Voice) from the user’s profile and sends the notification.
{
"event": "event_name",
"distinct_id": "XXXXXXXX",
"data": {
"placeholder_key_1": "placeholder_value_1"
}
}
Option 3: both distinct_id and to
Required: event, distinct_id, to
The to and distinct_id channel data merges, with the to object taking precedence, and the notification is sent. The sent notification is tagged to the ID specified, which you can then use to search the logs by distinct_id.
{
"event": "event_name",
"distinct_id": "XXXXXXXX",
"to": {
"email": "abcde@fghi.com"
},
"data": {
"placeholder_key_1": "placeholder_value_1"
}
}
data and callback are optional in all three options.