Nodefy Docs
Nodefy Docs
  • Getting Started
    • Welcome!
    • Quickstart
    • Use Cases
    • Supported Blockchains
  • Our API Guide
    • Overview
    • Authentication
    • Notification API Methods
      • ⚡Create a notification
      • 🫴Fetch a user's notifications
      • 📴Delete a notification
    • Defining Event Types
      • 💼Wallets
      • 📃Smart Contracts
      • 🖼️NFTs
      • 💬Farcaster
    • Using Filters
    • Channels
      • Email
      • Custom Webhook
      • Slack
      • Telegram
      • In-App (coming soon)
    • User Info
Powered by GitBook
On this page
  • Configuration:
  • Notification Formats:
  • Default Template:
  1. Our API Guide
  2. Channels

Email

Learn how to send email notifications.

Configuration:

  1. Channel: Set the channel field in your notification payload to "EMAIL".

  2. Delivery Location: Specify the email address where you want the notification sent in the delivery_location field.

Example Payload:

{
  "channel": "EMAIL",
  "delivery_location": "user@example.com"
}

Notification Formats:

The email sent to the user will include:

  • Subject: This can be customized using the notification_name field in the request payload or a default template.

  • Body: The content of the notification, which can be customized using the template field in the request payload or a default template. This can include dynamic variables from the event data (e.g., transaction amount, token type).

Default Template:

Subject: New {{network}} Activity

Message:

  • From {{fromAddress}} to {{toAddress}}

  • Token: {{asset}}

  • Value: {{value}}

  • Transaction Hash: {{hash}}

Default Example:

PreviousChannelsNextCustom Webhook

Last updated 11 months ago