⚡Create a notification
This endpoint lets you create a new notification.
Endpoint:
POST /api/v1/nodefy/notifications/Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonRequest Body:
{
"external_user_id": str, // Unique ID of the user to receive the notification
"channel": "EMAIL"|"WEBHOOK"|"TELEGRAM"|"SLACK", // Notification channel
"notification_name": str, // optional
"template": text, // optional
"delivery_location": str, // Recipient address (e.g. email address, telegram ID)
"event_details": {
"network": str, // Blockchain network
"event_type": str, // Type of event to monitor
"addresses": [str], // Array of single 0x address
"filters": [ // optional: Array of filter objects
{ "field_name": str, "operator": str, "value": str, "value_type": str },
# ... more filters if needed
],
"graphql": { // only for graphql webhook
"topic_0": str, // optional,
"topic_1": str, // optional
"topic_2": str, // optional
"topic_3": str // optional
},
}
}Example Request Body:
This creates an email notification to [email protected] for any ETH transactions incoming or outgoing from wallet 0x123...abc.
(See the "Defining Events" section for details on specific event_type parameters)
(See the "Using Filters" section for details on filters)
Response (Success):
Returns a unique identifier for the notification.
Last updated