curl --request POST \
--url https://{notifuseDomain}/api/transactional.send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "ws_1234567890",
"notification": {
"id": "welcome_email",
"contact": {
"email": "[email protected]",
"external_id": "user_12345",
"timezone": "America/New_York",
"language": "en-US",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"phone": "+15551234567",
"address_line_1": "123 Main St",
"address_line_2": "Apt 4B",
"country": "US",
"postcode": "10001",
"state": "NY",
"job_title": "Software Engineer",
"custom_string_1": "Premium tier",
"custom_string_2": "<string>",
"custom_string_3": "<string>",
"custom_string_4": "<string>",
"custom_string_5": "<string>",
"custom_number_1": 42,
"custom_number_2": 123,
"custom_number_3": 123,
"custom_number_4": 123,
"custom_number_5": 123,
"custom_datetime_1": "2023-06-01T09:00:00Z",
"custom_datetime_2": "2023-11-07T05:31:56Z",
"custom_datetime_3": "2023-11-07T05:31:56Z",
"custom_datetime_4": "2023-11-07T05:31:56Z",
"custom_datetime_5": "2023-11-07T05:31:56Z",
"custom_json_1": {
"preferences": {
"theme": "dark",
"notifications": true
}
},
"custom_json_2": {},
"custom_json_3": {},
"custom_json_4": {},
"custom_json_5": {}
},
"external_id": "txn_12345",
"channels": [
"email"
],
"data": {
"user_name": "John Doe",
"activation_link": "https://example.com/activate/abc123"
},
"metadata": {
"campaign_id": "spring_promo_2023",
"source": "user_signup"
},
"email_options": {
"from_name": "Support Team",
"cc": [
"[email protected]"
],
"bcc": [
"[email protected]"
],
"reply_to": "[email protected]",
"attachments": [
{
"filename": "invoice.pdf",
"content": "JVBERi0xLjQKJeLjz9MKMy4uLg==",
"content_type": "application/pdf",
"disposition": "attachment"
}
]
}
}
}
'{
"message_id": "msg_1234567890abcdef",
"success": true
}Sends a transactional notification to a contact through specified channels. Requires authentication.
curl --request POST \
--url https://{notifuseDomain}/api/transactional.send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "ws_1234567890",
"notification": {
"id": "welcome_email",
"contact": {
"email": "[email protected]",
"external_id": "user_12345",
"timezone": "America/New_York",
"language": "en-US",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"phone": "+15551234567",
"address_line_1": "123 Main St",
"address_line_2": "Apt 4B",
"country": "US",
"postcode": "10001",
"state": "NY",
"job_title": "Software Engineer",
"custom_string_1": "Premium tier",
"custom_string_2": "<string>",
"custom_string_3": "<string>",
"custom_string_4": "<string>",
"custom_string_5": "<string>",
"custom_number_1": 42,
"custom_number_2": 123,
"custom_number_3": 123,
"custom_number_4": 123,
"custom_number_5": 123,
"custom_datetime_1": "2023-06-01T09:00:00Z",
"custom_datetime_2": "2023-11-07T05:31:56Z",
"custom_datetime_3": "2023-11-07T05:31:56Z",
"custom_datetime_4": "2023-11-07T05:31:56Z",
"custom_datetime_5": "2023-11-07T05:31:56Z",
"custom_json_1": {
"preferences": {
"theme": "dark",
"notifications": true
}
},
"custom_json_2": {},
"custom_json_3": {},
"custom_json_4": {},
"custom_json_5": {}
},
"external_id": "txn_12345",
"channels": [
"email"
],
"data": {
"user_name": "John Doe",
"activation_link": "https://example.com/activate/abc123"
},
"metadata": {
"campaign_id": "spring_promo_2023",
"source": "user_signup"
},
"email_options": {
"from_name": "Support Team",
"cc": [
"[email protected]"
],
"bcc": [
"[email protected]"
],
"reply_to": "[email protected]",
"attachments": [
{
"filename": "invoice.pdf",
"content": "JVBERi0xLjQKJeLjz9MKMy4uLg==",
"content_type": "application/pdf",
"disposition": "attachment"
}
]
}
}
}
'{
"message_id": "msg_1234567890abcdef",
"success": true
}API token for authentication
The ID of the workspace
"ws_1234567890"
Show child attributes
ID of the notification to send
"welcome_email"
Show child attributes
Email address of the contact
External identifier for the contact
"user_12345"
Timezone of the contact
"America/New_York"
Preferred language of the contact
"en-US"
First name of the contact
"John"
Last name of the contact
"Doe"
Full name of the contact (for systems that don't have separate first/last names)
"John Doe"
Phone number of the contact
"+15551234567"
First line of address
"123 Main St"
Second line of address
"Apt 4B"
Country of the contact
"US"
Postal code
"10001"
State or province
"NY"
Job title of the contact
"Software Engineer"
Custom string field 1
"Premium tier"
Custom string field 2
Custom string field 3
Custom string field 4
Custom string field 5
Custom number field 1
42
Custom number field 2
Custom number field 3
Custom number field 4
Custom number field 5
Custom datetime field 1
"2023-06-01T09:00:00Z"
Custom datetime field 2
Custom datetime field 3
Custom datetime field 4
Custom datetime field 5
Custom JSON field 1
{
"preferences": { "theme": "dark", "notifications": true }
}Custom JSON field 2
Custom JSON field 3
Custom JSON field 4
Custom JSON field 5
External ID for idempotency checks
"txn_12345"
Specific channels to send through (if empty, use all configured channels)
email ["email"]Data to populate the template with
{
"user_name": "John Doe",
"activation_link": "https://example.com/activate/abc123"
}Additional metadata for tracking
{
"campaign_id": "spring_promo_2023",
"source": "user_signup"
}Email-specific options
Show child attributes
Override default sender from name
"Support Team"
Reply-To email address
Email attachments (max 20 files, 3MB per file, 10MB total)
20Show child attributes
Name of the file (max 255 characters, no path separators)
255"invoice.pdf"
Base64-encoded file content (max 3MB per file)
"JVBERi0xLjQKJeLjz9MKMy4uLg=="
MIME type of the file (auto-detected if not provided)
"application/pdf"
How the attachment should be displayed (defaults to 'attachment')
attachment, inline "attachment"
[
{
"filename": "invoice.pdf",
"content": "JVBERi0xLjQKJeLjz9MKMy4uLg==",
"content_type": "application/pdf",
"disposition": "attachment"
}
]