Get Message Status
const url = 'https://example.com/v1/messages/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/messages/example \ --header 'Authorization: Bearer <token>'Retrieve the current status of any message (WhatsApp or RBM) using its internal Message ID (msg_…).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The internal Message ID, prefixed with ‘msg_’
Responses
Section titled “ Responses ”Message status retrieved successfully
The response body for the message status endpoint.
object
Timestamp when the message was created in the system.
Timestamp when the message was delivered to the recipient.
Timestamp when the message failed to send.
Reason for failure, if applicable.
The system-generated unique identifier for the message, prefixed with ‘msg_’.
The unique identifier for the message provided by the upstream provider (e.g., Meta’s WAMID).
Timestamp when the message was read by the recipient.
The ISO 3166-1 alpha-2 country code of the recipient.
The phone number of the recipient.
The ID of the sender (e.g., user ID or ‘api_key_user’).
The Meta Phone Number ID of the sender.
The type of sender (e.g., ‘agent’, ‘contact’).
Timestamp when the message was sent to the provider.
The most recent delivery status of the message.
Example
{ "id": "msg_f7a816e2-8397-11f0-8e34-010203040506", "provider_message_id": "wamid.HBgNNjI4MTMxMTMyMjM5ORUCABEYEjREMDdFMUZBMkZFRjREREU1MQA=", "status": "delivered"}Invalid Message ID format
Unauthorized - Invalid API Key
Forbidden - API Key does not have permission to view this message
Message not found