
Common Use Cases
Key Features
Automatic Contact Management
- Contact Upsert: Contacts are automatically created or updated before sending
- Profile Enrichment: Template data is automatically merged with existing contact profile information
- Data Consistency: Ensures contact information is always current
Template Data Enrichment
When you send a transactional email, Notifuse automatically:- Looks up the contact by email address in your workspace
- Merges your API data with the existing contact profile
- Enriches the template with the complete contact information
- Sends the personalized email with all available data
{"order_id": "12345"}
but the contact profile contains {"first_name": "John", "last_name": "Doe"}
, the template will have access to both the order data and the contact’s full profile.
Deduplication with External ID
- Prevent Duplicates: Use
external_id
to prevent sending the same notification multiple times - Idempotent Requests: Notifications with the same
external_id
will only be sent once - Custom Identifiers: Use your own unique identifiers (order IDs, event IDs, etc.)
external_id: "order-12345"
ensures that even if your system sends the same order confirmation multiple times, the email will only be delivered once.
Email Delivery Options
Configure email routing with flexible options:- Reply-To: Set custom reply-to addresses
- CC: Add carbon copy recipients
- BCC: Include blind carbon copy recipients
API Endpoint
Send transactional emails using a simple POST request:Request
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
workspace_id | string | Yes | Your workspace identifier |
notification.id | string | Yes | Template identifier for the email |
notification.external_id | string | No | Unique identifier for deduplication |
notification.channels | array | Yes | Must include “email” |
notification.contact | object | Yes | Contact object with at least an email field |
notification.data | object | No | Template variables for email content |
notification.metadata | object | No | Tracking data (not available in templates) |
notification.email_options | object | No | Email routing configuration |
Email Options
Parameter | Type | Description |
---|---|---|
reply_to | string | Set custom reply-to email address |
cc | array | List of carbon copy recipients |
bcc | array | List of blind carbon copy recipients |
Data vs Metadata
Template Variables (data
)
The data
object contains variables that will be available in your email templates:
{{ order_id }}
, {{ total }}
, {{ discount_code }}
Tracking Data (metadata
)
The metadata
object stores information for analytics and tracking but is not available in templates:
Template Integration
Data Structure in Templates
Your templates have access to both API data and contact profile:Complete Example
API Request:API Reference
Deduplication Examples
Order Confirmations
Password Resets
Welcome Emails
external_id
patterns ensures that duplicate notifications are automatically prevented, even if your application sends multiple requests.
For complete API documentation and additional parameters, see the API Reference.