Skip to main content

GET WhatsApp Delivery Record by UUID

This endpoint retrieves the full delivery record for a specific WhatsApp message by its unique identifier. Use this to check the current status of a message after it has been sent — for example, to confirm whether it was delivered or read by the recipient.

Configure the API Endpoint

https://api.betatel.com/api/v1/connect-hub/whatsapp/{uuid}/wdr
  • Method: GET

Set Up the Headers

ParamValueDescription
Content-typeapplication/jsonSpecifies the payload format.
x-api-key{{x-api-key}}API key for authorization.
x-account-id{{x-account-id}}User identifier for added security and tracking.

URL Parameters

ParameterTypeRequiredDescription
uuidstringYesThe unique identifier of the WhatsApp message, returned when the OTP was sent.

Code Snippets

Example - cURL
curl --location 'https://api.betatel.com/api/v1/connect-hub/whatsapp/01JV5V54KPYK9GB29265EQRZ2P/wdr' \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-account-id: YOUR_ACCOUNT_ID'

Understanding the Response

The endpoint returns the full WhatsApp Delivery Record (WDR) for the requested message.

JSON Schema:

{
"uuid": "01JV5V54KPYK9GB29265EQRZ2P",
"wam_id": "wamid.HBgLMzg3NjE0NDQ1NTUVAgARGBI",
"to": "38761444555",
"text": "482910",
"status": "DELIVERED",
"timestamp": "2024-01-15T10:30:00.000Z",
"delivery_timestamp": "2024-01-15T10:30:02.000Z",
"delivery_time": 2143,
"webhook_delivered": true
}
FieldTypeDescription
uuidstringThe unique identifier for the WhatsApp message.
wam_idstringThe WhatsApp platform message ID assigned by Meta.
tostringThe recipient's phone number.
textstringThe message text that was sent.
statusstringThe current delivery status of the message (see table below).
timestampstringISO 8601 timestamp of when the message was created.
delivery_timestampstringISO 8601 timestamp of when the message was delivered (if applicable).
delivery_timenumberTime in milliseconds between sending and delivery confirmation.
webhook_deliveredbooleanWhether the status update was successfully delivered to your webhook.

Message Status Values

StatusDescription
PENDINGMessage accepted and queued for delivery.
SENTMessage dispatched to the WhatsApp platform.
DELIVEREDMessage delivered to the recipient's device.
READRecipient has opened and read the message.
FAILEDMessage could not be delivered.
EXPIREDMessage expired before delivery was confirmed.
DELETEDMessage was deleted by the recipient.
UNKNOWNStatus could not be determined.

Error Handling

  • 401 - Unauthorized: Authentication failed
  • 404 - Not Found: No message found with the provided UUID
  • 500 - Internal Server Error: An unexpected error occurred on the server