Lewati ke konten

Get Message Status

GET
/v1/messages/{message_id}
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_…).

message_id
required
string

The internal Message ID, prefixed with ‘msg_’

Message status retrieved successfully

Media type application/json

The response body for the message status endpoint.

object
created_at
required

Timestamp when the message was created in the system.

string format: date-time
delivered_at

Timestamp when the message was delivered to the recipient.

string | null format: date-time
failed_at

Timestamp when the message failed to send.

string | null format: date-time
failure_reason

Reason for failure, if applicable.

string | null
id
required

The system-generated unique identifier for the message, prefixed with ‘msg_’.

string
provider_message_id

The unique identifier for the message provided by the upstream provider (e.g., Meta’s WAMID).

string | null
read_at

Timestamp when the message was read by the recipient.

string | null format: date-time
recipient_country_code
required

The ISO 3166-1 alpha-2 country code of the recipient.

string
recipient_phone_number
required

The phone number of the recipient.

string
sender_id
required

The ID of the sender (e.g., user ID or ‘api_key_user’).

string
sender_phone_number_id
required

The Meta Phone Number ID of the sender.

string
sender_type
required

The type of sender (e.g., ‘agent’, ‘contact’).

string
sent_at

Timestamp when the message was sent to the provider.

string | null format: date-time
status
required

The most recent delivery status of the message.

string
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