Retrieve a message
Read one message, on any channel, with its current status, cost, failure details, and the content the recipient received.
/v1/messaging/messages/{messageId}Authorization
Bearer token
- Authorizationrequiredheader
Send your API key as
Bearer YOUR_API_KEY.
Path parameters
messageIdrequiredstringThe message ID returned by Send a message, starting with
msg_.
Response
Example identifiers below are illustrative.
data is the message object, with the content the recipient received. Messages are kept for 30 days; after that this endpoint returns 404.
The message object
idstringMessage ID, starting with
msg_.channelstringwhatsapp. The channel the message was sent on; it decides the channel-specific fields.statusstringSee Message statuses.
One of
"sending""accepted""sent""delivered""read""failed""uncertain"senderstringPhone number the message was sent from, in E.164 format.
sender_namestring or nullThe number's display name approved by WhatsApp, when there is one.
recipientstringRecipient phone number, in E.164 format.
categorystring or nullThe template's category when the message was sent.
One of
"marketing""utility""authentication"templateobject or nullThe template sent:
id,name,language(such asen_US), andversion, which increases when the template's content or category changes.is_billablebooleanWhether the message counts toward your plan's included messages or is paid from your wallet beyond them.
coststringWhat Nexiom Connect charged for the message, as a decimal string such as
"0.1000"."0.0000"for included messages and messages not charged. Never includes Meta's fees.cost_currencystringISO 4217 currency of
cost, such asDZD.failure_codestring or nullFor a failed message:
meta_followed by WhatsApp's error code, such asmeta_131026, ormeta_error. See failure codes.failure_reasonstring or nullFor a failed message: WhatsApp's explanation.
created_atstringWhen the message was created.
accepted_atstring or nullWhen WhatsApp accepted the message.
sent_atstring or nullWhen WhatsApp sent it to the recipient's phone.
delivered_atstring or nullWhen it reached the recipient's phone.
nullif WhatsApp skipped straight toread.read_atstring or nullWhen the recipient opened it. Only for recipients who share read receipts.
failed_atstring or nullWhen the message failed.
contentobject or nullThe message as the recipient received it.
content.headerarray or nullThe header as text segments, or
nullwhen the template has no text header.content.bodyarray or nullThe body as text segments.
content.footerstring or nullThe footer text.
content.buttonsstring[]The button labels, in order.
Timestamps are ISO 8601 strings in UTC. Each segment of content.header and content.body is either template text, with variable set to null, or a variable, with variable set to its key and text set to the value sent:
[
{ "text": "Hi ", "variable": null },
{ "text": "Amina", "variable": "1" }
]Join the segments' text to get the full text. Meta's own message ID and your API credentials are never returned.