Sign inGet started

Programmable Push Notifications

Sending push notifications

In order to send a push notification, you must have an active Push Notifications channel installed in your workspace with valid credentials for the gateway(s) you intend to use (Firebase Cloud Messaging for Android, APNs for iOS, or VAPID for Web Push). Send a push by performing an HTTP request to the channel's messages endpoint with a valid access key.

Send a message

POST
/workspaces/{workspaceId}/channels/{channelId}/messages
Send a message to a channel
Corps de la requête
sender
object
Afficher les paramètres enfants
sender.connector
object
obligatoire
The sender of the message. For email messages, the sender is used to override the default sender username.
Afficher les paramètres enfants
sender.connector.identifierValue
string
obligatoire
The identifier value of the sender.
sender.connector.annotations
object
Annotations are used to add additional information to a message. For email messages, it can be used to specify a custom sender name.
Afficher les paramètres enfants
sender.connector.annotations.name
string
receiver
object
obligatoire
Afficher les paramètres enfants
receiver.contacts
array of object
Afficher les paramètres enfants
receiver.contacts.id
string
The ID of the receiver. This is a reference to a contact.
receiver.contacts.identifierKey
string
The identifier key for finding the contact. For WhatsApp channels with BSUID support, use whatsappbsuid to send to a contact by their Business-Scoped User ID without needing to know the channel's portfolio ID.
receiver.contacts.identifierValue
string
The identifier value for finding the contact.
receiver.contacts.type
string
The type of the receiver.
Possible values: cc, bcc, to
receiver.contacts.identifiers
array of object
Afficher les paramètres enfants
receiver.contacts.identifiers.identifierKey
string
obligatoire
The identifier key for finding the contact.
receiver.contacts.identifiers.identifierValue
string
obligatoire
The identifier value for finding the contact.
receiver.contacts.platformAddress
string
The value that is used to send the message to the platform.
receiver.contacts.platformAddressSelector
string
An expression that defines how we resolve the platform address (e.g. phone number or email address) from a contact. This is an optional override for the default resolution logic (i.e. sending to the first identifier key-value pair for the relevant platform).
reference
string
A reference to the message. This can be used to identify the message in the channel.
template
object
obligatoire
Afficher les paramètres enfants
template.name
string
The platform name of the template.
template.projectId
string
the ID of the project from the project from Studio
template.version
string
The version of the template.
template.locale
string
template.attachments
array of object
Afficher les paramètres enfants
template.attachments.mediaUrl
string
obligatoire
The URL of the attachment.
template.attachments.filename
string
obligatoire
The filename of the attachment.
template.attachments.inline
boolean
template.shortLinks
object
SMS link shortening options.
Afficher les paramètres enfants
template.shortLinks.enabled
boolean
Enables link shortening for SMS messages.
template.shortLinks.domain
string
The domain to use when shortening links. When set to default, uses the default link shortening domain for the workspace.
template.variables
object
Deprecated: Use parameters instead (string parameter for variables). This property is maintained for backward compatibility but will be removed in a future version.
Afficher les paramètres enfants
template.variables.default
string
template.utmParameters
array of object
The list of UTM parameters.
Afficher les paramètres enfants
template.utmParameters.key
string
obligatoire
The name of the parameter in the query string.
template.utmParameters.value
string
obligatoire
The static value of the parameter. Mutually exclusive with Reference.
template.parameters
array of object
Afficher les paramètres enfants
template.parameters.type
string
obligatoire
Possible values: string
template.parameters.key
string
obligatoire
template.parameters.value
string
template.settings
object
Afficher les paramètres enfants
template.settings.disallowMmLite
boolean
This is specific for WhatsApp marketing templates and requires MM Lite to be disabled for the WABAID.
meta
object
Afficher les paramètres enfants
meta.extraInformation
object
Free-form metadata. The useCase key (marketing, otp, transactional, or conversation) classifies the message and affects handling such as routing, frequency capping, email deliverability, and the messaging type/tag used on Meta channels (Messenger, Instagram).
meta.referral
object
Afficher les paramètres enfants
meta.referral.source
string
meta.referral.title
string
meta.referral.text
string
meta.referral.group
string
meta.referral.metadata
object
Afficher les paramètres enfants
meta.referral.metadata.source_id
string
meta.referral.metadata.source_url
string
meta.referral.metadata.media_url
string
meta.referral.metadata.tracking_id
string
meta.order
object
The order object contains information about the purchase order.
Afficher les paramètres enfants
meta.order.products
array of object
Afficher les paramètres enfants
meta.order.products.externalCatalogId
string
The platform-specific catalog ID of the product.
meta.order.products.externalProductId
string
The platform-specific product ID.
meta.order.products.quantity
integer
The number of items purchased.
meta.order.products.price
object
The price of the product.
Afficher les paramètres enfants
meta.order.products.price.amount
integer
meta.order.products.price.exponent
integer
meta.order.products.price.currencyCode
string
meta.referredProduct
object
Referred product in an incoming message.
Afficher les paramètres enfants
meta.referredProduct.externalCatalogId
string
The platform-specific catalog ID of the product.
meta.referredProduct.externalProductId
string
The platform-specific product ID.
meta.email
object
Afficher les paramètres enfants
meta.email.subject
string
meta.email.headers
object
meta.email.from
object
Afficher les paramètres enfants
meta.email.from.username
string
meta.email.from.displayName
string
meta.sms
object
Afficher les paramètres enfants
meta.sms.smartEncoding
boolean
When enabled, attempts to transliterate Unicode characters to GSM-7 equivalents. If the resulting text is fully GSM-7 compatible, fewer message segments may be required. The original message body is preserved; transliteration is only applied when sending.
meta.pushNotifications
object
Afficher les paramètres enfants
meta.pushNotifications.gatewayTypeOverride
string
Possible values: apns, firebase, web
meta.navigatorId
string
meta.navigatorMessageId
string
meta.flow
object
Afficher les paramètres enfants
meta.flow.id
string
meta.flow.name
string
meta.flow.stepId
string
meta.flow.runId
string
meta.journey
object
Afficher les paramètres enfants
meta.journey.id
string
meta.journey.name
string
meta.journey.stepId
string
meta.journey.runId
string
meta.campaign
object
Afficher les paramètres enfants
meta.campaign.id
string
meta.campaign.name
string
replyTo
object
Afficher les paramètres enfants
replyTo.id
string
obligatoire
The ID of the message that is being replied to.
replyTo.order
integer
The order of the message in the conversation.
replyTo.type
string
obligatoire
Possible values: message, click, referrals
notification
object
Afficher les paramètres enfants
notification.url
string
A custom webhook url to send events to. Note: you should have a created webhook subscription. Refer to the Notifications API to learn how to create a webhook subscription.
capFrequency
boolean
If set to true, the frequency capping settings of the platform will be used to either allow or reject the message to a contact. Can only be set to true if the message is sent to a contact and .meta.extraInformation.useCase is marketing.
enableLinkTracking
boolean
If set to true, UTM parameters will be appended to the links in the message. For SMS channels, the shortLinks property must also be included in the request to enable link tracking.
ignoreQuietHours
boolean
If set to true, quiet hours settings will be ignored and the message will be sent as soon as possible.
ignoreGlobalHoldout
boolean
Do not check if the recipient is part of global holdout. To be used to send transactional messages.
tags
array of string
Tags to associate with the message. Tags are converted to lower case and tags that do not exist are automatically created. You can view your created tags in the UI. You can specify up to 10 tags per message.
shortLinks
object
SMS link shortening options. Must be included in the request for SMS channels when enableLinkTracking is set to true. When using templates, please refer to the template level shortLinks instead.
Afficher les paramètres enfants
shortLinks.domain
string
obligatoire
The domain to use when shortening links. When set to default, uses the default link shortening domain for the workspace.
scheduledFor
string
Scheduled time to send message at. Must be formated as RFC3339 timestamp. When set, the message status will be scheduled until it's sent. Messages scheduled for a time in the past or within 10 minutes of the request may be sent immediately. Messages scheduled farther than 35 days will be rejected.
validity
integer
Validity determines for how many seconds a message is valid. If none is provided, the channel message type will be used to determine it. A promotional, conversational or transactional channel message is valid for 36 hours (129600 seconds). A message sent from a 2FA channel is valid for 10 minutes (600 seconds).
Corps de la réponse
body
object
Afficher les attributs enfants
body.text
object
obligatoire
Afficher les attributs enfants
body.text.actions
array of object
Afficher les attributs enfants
body.text.actions.link
object
obligatoire
Afficher les attributs enfants
body.text.actions.link.metadata
object
Afficher les attributs enfants
body.text.actions.link.metadata.description
object
Afficher les attributs enfants
body.text.actions.link.metadata.description.label
string
obligatoire
body.text.actions.link.text
string
obligatoire
body.text.actions.link.url
string
obligatoire
body.text.actions.type
string
obligatoire
Possible values: link
body.text.attachments
array of object
Afficher les attributs enfants
body.text.attachments.content
string
body.text.attachments.contentId
string
body.text.attachments.contentType
string
body.text.attachments.filename
string
obligatoire
body.text.attachments.inline
boolean
body.text.attachments.mediaUrl
string
obligatoire
body.text.metadata
object
Afficher les attributs enfants
body.text.metadata.apple
object
Afficher les attributs enfants
body.text.metadata.apple.appClipPreview
boolean
body.text.metadata.apple.appClipRegion
string
body.text.metadata.apple.summaryText
string
body.text.metadata.headers
object
body.text.metadata.line
object
Afficher les attributs enfants
body.text.metadata.line.emoji
object
Afficher les attributs enfants
body.text.metadata.line.emoji.items
array of object
Afficher les attributs enfants
body.text.metadata.line.emoji.items.emojiId
string
obligatoire
body.text.metadata.line.emoji.items.index
integer
obligatoire
body.text.metadata.line.emoji.items.length
integer
body.text.metadata.line.emoji.items.productId
string
obligatoire
body.text.metadata.paymentDetails
object
Afficher les attributs enfants
body.text.metadata.paymentDetails.amount
string
obligatoire
body.text.metadata.paymentDetails.currency
string
obligatoire
body.text.metadata.paymentDetails.sessionIdentifier
string
body.text.metadata.paymentDetails.state
string
obligatoire
body.text.metadata.subject
string
body.text.metadata.telegram
object
Afficher les attributs enfants
body.text.metadata.telegram.parseMode
string
body.text.metadata.whatsapp
object
Afficher les attributs enfants
body.text.metadata.whatsapp.callPermissionExpiration
string
body.text.metadata.whatsapp.callPermissionResponse
string
Possible values: accept, reject
body.text.metadata.whatsapp.previewUrl
boolean
obligatoire
body.text.metadata.whatsapp.sharedContacts
array of object
Afficher les attributs enfants
body.text.metadata.whatsapp.sharedContacts.origin
string
obligatoire
body.text.metadata.whatsapp.sharedContacts.phones
array of object
Afficher les attributs enfants
body.text.metadata.whatsapp.sharedContacts.phones.phone
string
obligatoire
body.text.metadata.whatsapp.sharedContacts.phones.type
string
obligatoire
body.text.metadata.whatsapp.sharedContacts.phones.waId
string
obligatoire
body.text.metadata.whatsapp.sharedContacts.vcard
string
body.text.text
string
obligatoire
body.type
string
obligatoire
Possible values: text
bodyId
string
bodyStorage
object
Afficher les attributs enfants
bodyStorage.type
string
obligatoire
Possible values: s3
bodyStorage.s3
object
obligatoire
Afficher les attributs enfants
bodyStorage.s3.bucketArn
string
obligatoire
bodyStorage.s3.encryptionKey
string
obligatoire
bodyStorage.s3.key
string
obligatoire
channelId
string
obligatoire
chargeableUnits
integer
context
object
Afficher les attributs enfants
context.id
string
context.tagIds
array of string
context.type
string
createdAt
string
obligatoire
details
string
This field is used to store additional information related to the message status.
direction
string
Possible values: incoming, outgoing
failure
object
Afficher les attributs enfants
failure.code
integer
omni channel interpretation of the failure to categorise the nature of message error
failure.description
string
human readable description of the error
failure.source
object
Afficher les attributs enfants
failure.source.code
string
numerical, text or alphanumeric code that indicates the error or issue while delivering the message in the last step
failure.source.name
string
Possible values: pre-processing, accounting, contact, touchpoint, sms-messagebird, sms-twilio, email-messagebird, whatsapp, facebook, instagram, line, telegram, apple-business-chat, viber, chat, google-business-messages, voice, smtp-messagebird, rcs-google, service
id
string
obligatoire
ignorePersistedEventhooks
boolean
lastStatusAt
string
obligatoire
meta
object
Afficher les attributs enfants
meta.campaign
object
Afficher les attributs enfants
meta.campaign.id
string
meta.campaign.name
string
meta.campaignId
string
meta.chargeOnceDelivered
boolean
meta.email
object
Afficher les attributs enfants
meta.email.from
object
Afficher les attributs enfants
meta.email.from.displayName
string
meta.email.from.username
string
meta.email.headers
object
meta.email.subject
string
meta.extraInformation
object
meta.flow
object
Afficher les attributs enfants
meta.flow.id
string
meta.flow.name
string
meta.flow.runId
string
meta.flow.scheduleExecutionId
string
meta.flow.stepId
string
meta.formResponse
object
Afficher les attributs enfants
meta.formResponse.id
string
obligatoire
meta.formResponse.jsonResponse
string
obligatoire
meta.formResponse.requestIdentifier
string
obligatoire
meta.formResponse.selections
array of object
Afficher les attributs enfants
meta.formResponse.selections.items
array of object
Afficher les attributs enfants
meta.formResponse.selections.items.identifier
string
obligatoire
meta.formResponse.selections.items.title
string
obligatoire
meta.formResponse.selections.items.type
string
obligatoire
meta.formResponse.selections.items.value
string
obligatoire
meta.formResponse.selections.pageIdentifier
string
obligatoire
meta.formResponse.selections.subtitle
string
obligatoire
meta.formResponse.selections.title
string
obligatoire
meta.formResponse.sessionIdentifier
string
obligatoire
meta.formResponse.template
string
obligatoire
meta.formResponse.version
string
obligatoire
meta.ignoreGlobalHoldout
boolean
meta.ignoreQuietHours
boolean
meta.journey
object
Afficher les attributs enfants
meta.journey.id
string
meta.journey.name
string
meta.journey.runId
string
meta.journey.scheduleExecutionId
string
meta.journey.stepId
string
meta.longToShortLinks
object
meta.metaThreadId
string
meta.navigatorId
string
meta.navigatorMessageId
string
meta.order
object
The order object contains information about the purchase order associated with the message.
Afficher les attributs enfants
meta.order.products
array of object
Afficher les attributs enfants
meta.order.products.externalCatalogId
string
The platform-specific catalog ID of the product.
meta.order.products.externalProductId
string
obligatoire
The platform-specific product ID.
meta.order.products.price
object
obligatoire
Afficher les attributs enfants
meta.order.products.price.amount
integer
obligatoire
meta.order.products.price.currencyCode
string
obligatoire
meta.order.products.price.exponent
integer
obligatoire
meta.order.products.quantity
integer
obligatoire
The number of items purchased.
meta.pushNotifications
object
Afficher les attributs enfants
meta.pushNotifications.gatewayTypeOverride
string
Possible values: firebase, apns, web
meta.referral
object
Afficher les attributs enfants
meta.referral.group
string
meta.referral.metadata
object
Afficher les attributs enfants
meta.referral.metadata.caption
string
meta.referral.metadata.mediaType
string
meta.referral.metadata.mediaUrl
string
meta.referral.metadata.sourceId
string
obligatoire
meta.referral.metadata.sourceUrl
string
meta.referral.metadata.timestamp
string
meta.referral.metadata.trackingId
string
meta.referral.metadata.username
string
meta.referral.source
string
obligatoire
meta.referral.text
string
meta.referral.title
string
meta.referredProduct
object
Referred product in an incoming message (e.g. a product shared in a WhatsApp catalog message).
Afficher les attributs enfants
meta.referredProduct.externalCatalogId
string
The platform-specific catalog ID of the product.
meta.referredProduct.externalProductId
string
obligatoire
The platform-specific product ID.
meta.renderedContentBlocks
array of string
meta.shortToLongLinks
object
meta.skipThisMessage
string
Possible values: campaignHoldout, globalHoldout, journeyHoldout
meta.sms
object
Afficher les attributs enfants
meta.sms.gatewayId
integer
meta.sms.registeredDelivery
string
Possible values: final, intermediate, all, noDlr
meta.sms.smartEncoding
boolean
When enabled, attempts to transliterate Unicode characters to GSM-7 equivalents. If the resulting text is fully GSM-7 compatible, fewer message segments may be required. The original message body is preserved; transliteration is only applied when sending.
meta.sms.smpp
object
Afficher les attributs enfants
meta.sms.smpp.segments
array of object
Afficher les attributs enfants
meta.sms.smpp.segments.id
string
obligatoire
meta.sms.smpp.segments.registeredDelivery
string
obligatoire
Possible values: final, intermediate, all, noDlr
meta.sms.smpp.userId
string
obligatoire
meta.sms.validity
string
meta.useFallback
boolean
parts
array of object
Afficher les attributs enfants
parts.id
string
parts.order
integer
parts.platformReferenceId
string
parts.platformStatusAt
string
parts.rawBody
string
parts.reason
string
parts.status
string
Possible values: accepted, processing, sent, sending_failed, delivered, delivery_failed, deleted, scheduled, skipped, rejected
parts.statusAt
string
platformId
string
platformReferenceId
string
previousMessages
array of object
Afficher les attributs enfants
previousMessages.id
string
obligatoire
previousMessages.useCaseType
string
obligatoire
Possible values: unspecified, marketing, otp, transactional, conversation, test
reason
string
receiver
object
obligatoire
Afficher les attributs enfants
receiver.connector
object
Afficher les attributs enfants
receiver.connector.annotations
object
Annotations add extra information to a sender or receiver. For email messages, the name annotation overrides the display name.
Afficher les attributs enfants
receiver.connector.annotations.name
string
receiver.connector.id
string
obligatoire
receiver.connector.identifierValue
string
The identifier value of the sender or receiver connector (e.g. email address or phone number).
receiver.connector.types
array of string
receiver.contacts
array of object
Afficher les attributs enfants
receiver.contacts.contactAnnotation
object
Annotations add extra information to a sender or receiver. For email messages, the name annotation overrides the display name.
Afficher les attributs enfants
receiver.contacts.contactAnnotation.name
string
receiver.contacts.countryCode
string
receiver.contacts.id
string
The ID of the contact.
receiver.contacts.identifierKey
string
The identifier key for finding the contact (e.g. emailaddress, phonenumber). For WhatsApp channels with BSUID support, use whatsappbsuid to send to a contact by their Business-Scoped User ID.
receiver.contacts.identifierValue
string
The identifier value for finding the contact.
receiver.contacts.identifiers
array of object
Additional identifiers to augment the contact during resolution.
Afficher les attributs enfants
receiver.contacts.identifiers.identifierKey
string
obligatoire
The identifier key for finding the contact (e.g. emailaddress, phonenumber).
receiver.contacts.identifiers.identifierValue
string
obligatoire
The identifier value for finding the contact.
receiver.contacts.platformAddress
string
The resolved platform address used to deliver the message (e.g. phone number or email address).
receiver.contacts.platformAddressSelector
string
An expression that defines how we resolve the platform address from a contact. Optional override for the default resolution logic.
receiver.contacts.receiverExpression
string
receiver.contacts.receiverValue
string
receiver.contacts.type
string
The type of the receiver (e.g. to, cc, bcc for email).
receiver.device
object
Afficher les attributs enfants
receiver.device.gateway
string
obligatoire
Possible values: firebase, apns, web
receiver.device.id
string
obligatoire
receiver.device.identifierValue
string
obligatoire
receiver.inbox
object
Afficher les attributs enfants
receiver.inbox.emailRecipientType
string
receiver.inbox.id
string
obligatoire
receiver.inbox.identifierKey
string
obligatoire
receiver.inbox.identifierValue
string
obligatoire
receiver.inbox.type
string
obligatoire
Possible values: user, group
receiver.userContacts
array of object
Afficher les attributs enfants
receiver.userContacts.id
string
obligatoire
receiver.userContacts.identifierKey
string
obligatoire
receiver.userContacts.identifierValue
string
obligatoire
receiver.userContacts.type
string
reference
string
A reference to the message. This can be used to identify the message in the channel.
replyTo
object
Afficher les attributs enfants
replyTo.id
string
The ID of the message that is being replied to.
replyTo.order
integer
The order of the message part in the conversation.
replyTo.platformReference
string
replyTo.type
string
Possible values: message, click
schedule
object
Afficher les attributs enfants
schedule.reason
string
obligatoire
schedule.scheduledAt
string
obligatoire
scheduledFor
string
Scheduled message send time (RFC3339). Messages scheduled within 10 minutes may be sent immediately; messages scheduled more than 35 days out will be rejected.
sendAt
string
sender
object
obligatoire
Afficher les attributs enfants
sender.connector
object
Afficher les attributs enfants
sender.connector.annotations
object
Annotations add extra information to a sender or receiver. For email messages, the name annotation overrides the display name.
Afficher les attributs enfants
sender.connector.annotations.name
string
sender.connector.id
string
obligatoire
sender.connector.identifierValue
string
The identifier value of the sender or receiver connector (e.g. email address or phone number).
sender.connector.types
array of string
sender.contact
object
Afficher les attributs enfants
sender.contact.contactAnnotation
object
Annotations add extra information to a sender or receiver. For email messages, the name annotation overrides the display name.
Afficher les attributs enfants
sender.contact.contactAnnotation.name
string
sender.contact.countryCode
string
sender.contact.id
string
The ID of the contact.
sender.contact.identifierKey
string
The identifier key for finding the contact (e.g. emailaddress, phonenumber). For WhatsApp channels with BSUID support, use whatsappbsuid to send to a contact by their Business-Scoped User ID.
sender.contact.identifierValue
string
The identifier value for finding the contact.
sender.contact.identifiers
array of object
Additional identifiers to augment the contact during resolution.
Afficher les attributs enfants
sender.contact.identifiers.identifierKey
string
obligatoire
The identifier key for finding the contact (e.g. emailaddress, phonenumber).
sender.contact.identifiers.identifierValue
string
obligatoire
The identifier value for finding the contact.
sender.contact.platformAddress
string
The resolved platform address used to deliver the message (e.g. phone number or email address).
sender.contact.platformAddressSelector
string
An expression that defines how we resolve the platform address from a contact. Optional override for the default resolution logic.
sender.contact.receiverExpression
string
sender.contact.receiverValue
string
sender.contact.type
string
The type of the receiver (e.g. to, cc, bcc for email).
sender.inbox
object
Afficher les attributs enfants
sender.inbox.emailRecipientType
string
sender.inbox.id
string
obligatoire
sender.inbox.identifierKey
string
obligatoire
sender.inbox.identifierValue
string
obligatoire
sender.inbox.type
string
obligatoire
Possible values: user, group
sender.userContact
object
Afficher les attributs enfants
sender.userContact.id
string
obligatoire
sender.userContact.identifierKey
string
obligatoire
sender.userContact.identifierValue
string
obligatoire
sender.userContact.type
string
shortLinks
object
Afficher les attributs enfants
shortLinks.domain
string
obligatoire
The domain to use when shortening links. When set to default, uses the default link shortening domain for the workspace.
status
string
obligatoire
Possible values: accepted, processing, sent, sending_failed, delivered, delivery_failed, deleted, scheduled, skipped, rejected
tagIds
array of string
tags
array of string
Tags to associate with the message. Tags are converted to lower case and automatically created if they don't exist. Up to 10 tags per message.
template
object
Afficher les attributs enfants
template.attachments
array of object
Afficher les attributs enfants
template.attachments.content
string
template.attachments.contentType
string
template.attachments.filename
string
obligatoire
template.attachments.inline
boolean
obligatoire
template.attachments.mediaUrl
string
obligatoire
template.deployment
object
template.locale
string
obligatoire
template.name
string
The platform name of the template.
template.parameters
array of object
Afficher les attributs enfants
template.parameters.key
string
obligatoire
template.parameters.sourceUrl
object
Afficher les attributs enfants
template.parameters.sourceUrl.fullyReplaced
boolean
obligatoire
template.parameters.sourceUrl.value
string
obligatoire
template.parameters.type
string
obligatoire
Possible values: string, timeslotList, productSections, productList, number, boolean, sectionList, shippingMethodList, lineItemList, whatsappProductSections, whatsappProductItems, shortLink, object, carouselCards, appleFormPageItems
template.parameters.value
object or array or string or number or boolean
obligatoire
template.projectId
string
obligatoire
The ID of the project from Studio.
template.settings
object
Afficher les attributs enfants
template.settings.disallowMmLite
boolean
template.shortLinks
object
Afficher les attributs enfants
template.shortLinks.domain
string
obligatoire
The domain to use when shortening links. When set to default, uses the default link shortening domain for the workspace.
template.shortLinks.enabled
boolean
obligatoire
Enables link shortening for SMS messages.
template.templateBody
object
Afficher les attributs enfants
template.templateBody.text
object
obligatoire
Afficher les attributs enfants
template.templateBody.text.actions
array of object
Afficher les attributs enfants
template.templateBody.text.actions.link
object
obligatoire
Afficher les attributs enfants
template.templateBody.text.actions.link.metadata
object
Afficher les attributs enfants
template.templateBody.text.actions.link.metadata.description
object
Afficher les attributs enfants
template.templateBody.text.actions.link.metadata.description.label
string
obligatoire
template.templateBody.text.actions.link.text
string
obligatoire
template.templateBody.text.actions.link.url
string
obligatoire
template.templateBody.text.actions.type
string
obligatoire
Possible values: link
template.templateBody.text.attachments
array of object
Afficher les attributs enfants
template.templateBody.text.attachments.content
string
template.templateBody.text.attachments.contentId
string
template.templateBody.text.attachments.contentType
string
template.templateBody.text.attachments.filename
string
obligatoire
template.templateBody.text.attachments.inline
boolean
template.templateBody.text.attachments.mediaUrl
string
obligatoire
template.templateBody.text.metadata
object
Afficher les attributs enfants
template.templateBody.text.metadata.apple
object
Afficher les attributs enfants
template.templateBody.text.metadata.apple.appClipPreview
boolean
template.templateBody.text.metadata.apple.appClipRegion
string
template.templateBody.text.metadata.apple.summaryText
string
template.templateBody.text.metadata.headers
object
template.templateBody.text.metadata.line
object
Afficher les attributs enfants
template.templateBody.text.metadata.line.emoji
object
Afficher les attributs enfants
template.templateBody.text.metadata.line.emoji.items
array of object
Afficher les attributs enfants
template.templateBody.text.metadata.line.emoji.items.emojiId
string
obligatoire
template.templateBody.text.metadata.line.emoji.items.index
integer
obligatoire
template.templateBody.text.metadata.line.emoji.items.length
integer
template.templateBody.text.metadata.line.emoji.items.productId
string
obligatoire
template.templateBody.text.metadata.paymentDetails
object
Afficher les attributs enfants
template.templateBody.text.metadata.paymentDetails.amount
string
obligatoire
template.templateBody.text.metadata.paymentDetails.currency
string
obligatoire
template.templateBody.text.metadata.paymentDetails.sessionIdentifier
string
template.templateBody.text.metadata.paymentDetails.state
string
obligatoire
template.templateBody.text.metadata.subject
string
template.templateBody.text.metadata.telegram
object
Afficher les attributs enfants
template.templateBody.text.metadata.telegram.parseMode
string
template.templateBody.text.metadata.whatsapp
object
Afficher les attributs enfants
template.templateBody.text.metadata.whatsapp.callPermissionExpiration
string
template.templateBody.text.metadata.whatsapp.callPermissionResponse
string
Possible values: accept, reject
template.templateBody.text.metadata.whatsapp.previewUrl
boolean
obligatoire
template.templateBody.text.metadata.whatsapp.sharedContacts
array of object
Afficher les attributs enfants
template.templateBody.text.metadata.whatsapp.sharedContacts.origin
string
obligatoire
template.templateBody.text.metadata.whatsapp.sharedContacts.phones
array of object
Afficher les attributs enfants
template.templateBody.text.metadata.whatsapp.sharedContacts.phones.phone
string
obligatoire
template.templateBody.text.metadata.whatsapp.sharedContacts.phones.type
string
obligatoire
template.templateBody.text.metadata.whatsapp.sharedContacts.phones.waId
string
obligatoire
template.templateBody.text.metadata.whatsapp.sharedContacts.vcard
string
template.templateBody.text.text
string
obligatoire
template.templateBody.type
string
obligatoire
Possible values: text
template.utmParameters
array of object
Afficher les attributs enfants
template.utmParameters.key
string
obligatoire
template.utmParameters.value
string
obligatoire
template.variables
object
template.version
string
obligatoire
The version of the template.
updatedAt
string
obligatoire
Exemple de code
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/messages' \
  -H 'Authorization: AccessKey YOUR_ACCESS_KEY'

Receiver identifier

Push notifications use a channel-scoped identifier key and a gateway-prefixed identifier value. This differs from SMS/WhatsApp where the identifier key is phonenumber and the value is a raw E.164 number.
  • identifierKey must be push-{channelId} — the literal string push- followed by the UUID of the push channel you are sending through. This is the same channel UUID that appears in the request URL.
  • identifierValue must be {gateway}:{deviceToken} where {gateway} is one of:
    • firebase — for Android devices registered with Firebase Cloud Messaging (FCM v1)
    • apns — for iOS devices registered with Apple Push Notification service
    • web — for browsers registered with the Web Push protocol via VAPID
A bare device token without the gateway prefix is rejected.
Example receiver block:
Exemple de code
{
  "receiver": {
    "contacts": [
      {
        "identifierKey":   "push-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "identifierValue": "firebase:fK3xLp9aQ8m...:APA91bF..."
      }
    ]
  }
}
Note: FCM tokens contain : characters internally — only the first colon (separating the gateway from the token) is parsed by Bird. The rest of the value is treated as one opaque token string.

Push notification body

Push messages use body.type: "list" with title and text fields. The text body type used by SMS, WhatsApp, and email is not supported by the push platform.
FieldDescription
body.typeMust be "list".
body.list.titleThe notification title that appears in bold at the top of the system notification.
body.list.textThe notification body text below the title.
Example:
Exemple de code
{
  "body": {
    "type": "list",
    "list": {
      "title": "New message",
      "text":  "Hello from your app"
    }
  }
}

Full request examples

Send to an Android device (Firebase)

Exemple de code
{
  "receiver": {
    "contacts": [
      {
        "identifierKey":   "push-{channelId}",
        "identifierValue": "firebase:{fcm_device_token}"
      }
    ]
  },
  "body": {
    "type": "list",
    "list": {
      "title": "New message",
      "text":  "Hello from your app"
    }
  }
}

Send to an iOS device (APNs)

Exemple de code
{
  "receiver": {
    "contacts": [
      {
        "identifierKey":   "push-{channelId}",
        "identifierValue": "apns:{apns_device_token}"
      }
    ]
  },
  "body": {
    "type": "list",
    "list": {
      "title": "New message",
      "text":  "Hello from your app"
    }
  }
}

Send to a browser (Web Push)

Exemple de code
{
  "receiver": {
    "contacts": [
      {
        "identifierKey":   "push-{channelId}",
        "identifierValue": "web:{web_push_subscription_token}"
      }
    ]
  },
  "body": {
    "type": "list",
    "list": {
      "title": "New message",
      "text":  "Hello from your app"
    }
  }
}

Troubleshooting

If a send fails, the failure.reason field on the message contains the underlying error. Fetch the message via GET /workspaces/{workspaceId}/channels/{channelId}/messages/{messageId} and check that field.
The three most common failure modes are payload-shape mismatches. Match the symptom to the fix:
failure.reason containsFix
invalid identifier value format, missing gateway type prefixThe identifierValue is missing the gateway prefix. Prepend firebase:, apns:, or web: to the device token.
PlatformAddress does not match any selector (visible in worker logs) / message stuck in sending_failed with no token-shaped valueThe identifierKey is wrong. It must be push-{channelId}, not pushtoken, user_id, emailaddress, etc.
message body is emptyThe body.type is something other than list (most commonly text). Switch to list with list.title and list.text.
Other failures (expired device tokens, FCM/APNs auth errors, throttling) are surfaced from the gateway response and should be self-explanatory.