Skip to content
Get Started
Getting Started

Receiving messages

Receiving Messages as a Business | iMessage for Business - Sendblue

In order to enable receiving messages, you have to specify the webhooks that you want to use in your API dashboard.

Received Messages will be sent as a POST request to the webhook which you define. These messages will be delivered in the JSON of a POST body which looks like this:

{
"accountEmail": "your-account-email",
"content": "Hello!",
"is_outbound": false,
"status": "RECEIVED",
"error_code": null,
"error_message": null,
"error_reason": null,
"message_handle": "99DCC379-DD76-4712-BA65-11EFB33B8CD6",
"date_sent": "2025-12-12T15:41:20.932Z",
"date_updated": "2025-12-12T15:41:20.995Z",
"from_number": "+19998887777",
"number": "+19998887777",
"to_number": "+15122164639",
"was_downgraded": null,
"plan": "dedicated",
"media_url": "",
"message_type": "message",
"group_id": "",
"participants": [
"+19998887777",
"+15122164639"
],
"send_style": "",
"opted_out": false,
"error_detail": null,
"sendblue_number": "+15122164639",
"service": "iMessage",
"group_display_name": null
}
Callback Body FieldTypeDescription
accountEmailstringAssociated account email
contentstringMessage content
is_outboundbooleanTrue if message is sent, false if message is received
statusstringThe current status of the message
error_codeintError code (null if no error)
error_messagestringDescriptive error message (null if no error)
error_reasonstringAdditional error context (null if no error)
error_detailstringDetailed error information (null if no error)
message_handlestringSendblue message handle
date_sentstringISO 8601 formatted date string of the date this message was created
date_updatedstringISO 8601 formatted date string of the date this message was last updated
from_numberstringE.164 formatted phone number string of the message dispatcher
numberstringE.164 formatted phone number string of your end-user (not the Sendblue-provided phone number)
to_numberstringE.164 formatted phone number string of the message recipient
was_downgradedbooleanTrue if the end user does not support iMessage, null otherwise
planstringValue of the Sendblue account plan
media_urlstringA CDN link to any media attached to the message (expires after 30 days for inbound)
message_typestringType of message (e.g., “message”)
group_idstringGroup identifier (empty string for non-group messages)
participantsarrayArray of participant phone numbers
send_stylestringExpressive message style if used (empty string if none)
opted_outbooleanTrue if the recipient has opted out
sendblue_numberstringThe Sendblue phone number that received the message
servicestringThe messaging service used (e.g., “iMessage”, “SMS”)
group_display_namestringDisplay name for group chats (null for non-group messages)