Skip to content

Send a notification

POST
/send
object
notificationId
deprecated
string
user
deprecated
object
id
required

Unique user identifier. Required.

string
email

User’s email address for email notifications.

string
number

User’s phone number for SMS/call notifications.

string
pushTokens

Mobile push tokens (FCM, APN) for push notifications.

Array<object>
object
type
required
string
Allowed values: FCM APN
token
required
string
device
required
object
app_id
string
ad_id
string
device_id
required
string
platform
string
manufacturer
string
model
string
environment

Used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)

string
default: undefined
webPushTokens

Web push subscription config from the browser.

Array<object>
object
sub
required

Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify’ing a PushSubscription in the browser.

object
endpoint
required
string
keys
required
object
p256dh
required
string
auth
required
string
timezone

User’s timezone (e.g. “America/New_York”) for scheduling.

string
slackChannel

The destination channel of slack notifications sent to this user. Can be either of the following:

  • Channel name, e.g. “test”
  • Channel name with # prefix, e.g. “#test”
  • Channel ID, e.g. “C1234567890”
  • User ID for DM, e.g. “U1234567890”
  • Username with @ prefix, e.g. “@test”
string
slackToken
object
access_token
string
app_id
string
authed_user
object
access_token
string
expires_in
number
id
string
refresh_token
string
scope
string
token_type
string
bot_user_id
string
enterprise
object
id
string
name
string
error
string
expires_in
number
incoming_webhook
object
channel
string
channel_id
string
configuration_url
string
url
string
is_enterprise_install
boolean
needed
string
ok
required
boolean
provided
string
refresh_token
string
scope
string
team
object
id
string
name
string
token_type
string
warning
string
response_metadata
object
warnings
Array<string>
next_cursor
string
scopes
Array<string>
acceptedScopes
Array<string>
retryAfter
number
messages
Array<string>
lastSeenTime

Last activity timestamp. Updated automatically. Read-only.

string
updatedAt

Last update timestamp. Read-only.

string
createdAt

Creation timestamp. Read-only.

string
emailSuppressionStatus

Bounce or complaint status if email was suppressed. Read-only.

object
reason
required
string
Allowed values: Bounce Complaint
details
required
object
mergeTags
deprecated
object
replace
deprecated
object
key
additional properties
string
type

ID of the notification type (e.g. “welcome_email”). Creates a new notification if it does not exist.

string
to

Recipient user. Provide id, email, or number to identify the user.

object
id

Unique user identifier. Required.

string
email

User’s email address for email notifications.

string
number

User’s phone number for SMS/call notifications.

string
pushTokens

Mobile push tokens (FCM, APN) for push notifications.

Array<object>
object
type
required
string
Allowed values: FCM APN
token
required
string
device
required
object
app_id
string
ad_id
string
device_id
required
string
platform
string
manufacturer
string
model
string
environment

Used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)

string
default: undefined
webPushTokens

Web push subscription config from the browser.

Array<object>
object
sub
required

Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify’ing a PushSubscription in the browser.

object
endpoint
required
string
keys
required
object
p256dh
required
string
auth
required
string
timezone

User’s timezone (e.g. “America/New_York”) for scheduling.

string
slackChannel

The destination channel of slack notifications sent to this user. Can be either of the following:

  • Channel name, e.g. “test”
  • Channel name with # prefix, e.g. “#test”
  • Channel ID, e.g. “C1234567890”
  • User ID for DM, e.g. “U1234567890”
  • Username with @ prefix, e.g. “@test”
string
slackToken
object
access_token
string
app_id
string
authed_user
object
access_token
string
expires_in
number
id
string
refresh_token
string
scope
string
token_type
string
bot_user_id
string
enterprise
object
id
string
name
string
error
string
expires_in
number
incoming_webhook
object
channel
string
channel_id
string
configuration_url
string
url
string
is_enterprise_install
boolean
needed
string
ok
required
boolean
provided
string
refresh_token
string
scope
string
team
object
id
string
name
string
token_type
string
warning
string
response_metadata
object
warnings
Array<string>
next_cursor
string
scopes
Array<string>
acceptedScopes
Array<string>
retryAfter
number
messages
Array<string>
lastSeenTime

Last activity timestamp. Updated automatically. Read-only.

string
updatedAt

Last update timestamp. Read-only.

string
createdAt

Creation timestamp. Read-only.

string
emailSuppressionStatus

Bounce or complaint status if email was suppressed. Read-only.

object
reason
required
string
Allowed values: Bounce Complaint
details
required
object
forceChannels

Override which channels to send to (e.g. [“EMAIL”, “SMS”]). Bypasses notification channel config.

Array<string>
Allowed values: EMAIL INAPP_WEB SMS CALL PUSH WEB_PUSH SLACK
parameters

Key-value pairs for template merge tags. Replaces placeholders like {{firstName}} in templates.

object
key
additional properties
secondaryId

Optional sub-notification identifier for grouping or tracking.

string
templateId

Specific template ID to use. If omitted, uses the default template for each channel.

string
subNotificationId

Sub-notification identifier (e.g. for grouping related notifications).

string
options

Per-channel overrides for send options (email, APN, FCM).

object
email

Email-specific overrides.

object
replyToAddresses

Reply-to addresses for the email.

Array<string>
ccAddresses

CC recipients.

Array<string>
bccAddresses

BCC recipients.

Array<string>
fromAddress

Override sender email address.

string
fromName

Override sender display name.

string
attachments

File attachments (by URL or inline base64 content).

Array
Any of:
object
filename
required
string
url
required
string
condition

Conditional expression for when to send (e.g. merge tag logic).

string
apn

Apple Push Notification (APN) overrides.

object
expiry

Seconds until the notification expires.

number
priority

Delivery priority (10 = immediate, 5 = power-saving).

number
collapseId

Group notifications with the same ID (replaces previous).

string
threadId

Thread identifier for grouping notifications.

string
badge

Badge count on app icon.

number
sound

Sound file name.

string
contentAvailable

Silent background notification (no alert).

boolean
fcm

Firebase Cloud Messaging (FCM) overrides.

object
android

Android-specific FCM options.

object
collapseKey

Collapse key for grouping messages.

string
priority

Delivery priority.

string
Allowed values: high normal
ttl

Time to live in seconds.

number
restrictedPackageName

Restrict delivery to a specific package.

string
schedule
string
email

Inline email content (subject, html). Use when not using templates.

object
subject
required

Email subject line.

string
html
required

HTML body content.

string
previewText

Preview/snippet text shown in inbox.

string
senderName

Display name of sender.

string
senderEmail

Sender email address.

string
inapp

Inline in-app content (title, url, image).

object
title
required

Notification title.

string
url

URL to open when clicked.

string
image

Image URL.

string
sms

Inline SMS content (message, autoReply).

object
message

SMS body text.

string
autoReply
object
message
required

Auto-reply message to send when user texts in.

string
call

Inline call content (message).

object
message
required

Text to speak (TTS).

string
web_push

Inline web push content (title, message, icon, url).

object
title
required

Notification title.

string
message
required

Body text.

string
icon

Icon URL.

string
url

URL to open when clicked.

string
mobile_push

Inline mobile push content (title, message).

object
title
required

Notification title.

string
message
required

Body text.

string
slack

Inline Slack content (text, blocks, etc.).

object
text
required

Fallback plain text (required when using blocks).

string
blocks

Slack Block Kit blocks.

Array<object>
object
key
additional properties
username

Override bot username.

string
icon

Icon: emoji (e.g. “:smile:”) or URL. Default: bot’s icon.

string
thread_ts

Parent message ts to post in a thread.

string
reply_broadcast

When true with thread_ts, broadcasts reply to channel. Default: false.

boolean
parse

URL parsing: “full” (clickable links) or “none”. Default: “none”.

string
Allowed values: full none
link_names

Convert channel and username refs to Slack links. Default: false.

boolean
mrkdwn

Enable Slack markup (bold, italic, code). Default: true.

boolean
unfurl_links

Unfurl link previews. Default: true.

boolean
unfurl_media

Unfurl media previews. Default: true.

boolean
metadata

Slack message metadata with optional work object entities. Combines standard Slack message metadata fields with an array of entity objects.

object
entities

An array of work object entities.

Array<object>
object
entity_type
required

Entity type (e.g., ‘slack#/entities/task’, ‘slack#/entities/file’).

string
entity_payload
required

Schema for the given entity type.

object
key
additional properties
external_ref
required

Reference used to identify an entity within the developer’s system.

object
id
required
string
type
string
url
required

URL used to identify an entity within the developer’s system.

string
app_unfurl_url

The exact URL posted in the source message. Required in metadata passed to chat.unfurl.

string
event_type

A human readable alphanumeric string representing your application’s metadata event.

string
event_payload

A free-form object containing whatever data your application wishes to attach to messages.

object
key
additional properties

Successful response

object
trackingId
required
string
messages
required
Array<string>

Bad Request

Unauthorized

Internal Server Error