Prompt
How do I get delivery receipts from an SMS API?
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
To get delivery receipts from an SMS API, you usually need to do two things:
- Enable delivery receipt callbacks/webhooks in your SMS provider
- Store and correlate the provider’s message ID with your internal message record
Typical flow
- You send an SMS through the API.
- The API returns a message ID.
- Later, the provider sends a delivery receipt to your webhook/callback URL, or you poll an endpoint for status updates.
- You match that receipt to the original message using the message ID.
What to look for in the API
Most SMS APIs offer one or more of these:
- Status callback / webhook URL
- Delivery status field
- Message status polling endpoint
- Receipt or callback events like:
queuedsentdeliveredundeliveredfailed
Example pattern
1. Send message
POST /messages
{
"to": "+15551234567",
"from": "+15557654321",
"body": "Hello",
"status_callback": "https://yourapp.com/sms/status"
}
Response:
{
"message_id": "abc123",
"status": "queued"
}
2. Receive delivery receipt
Your webhook might get:
{
"message_id": "abc123",
"status": "delivered",
"timestamp": "2026-10-14T12:34:56Z"
}
Important notes
- Delivery receipts are not always guaranteed. Some carriers or devices don’t support them.
- “Delivered” usually means the message reached the handset or carrier-reported destination, not necessarily that the user read it.
- Make sure your webhook endpoint is:
- publicly reachable
- HTTPS
- fast and returns
200 OKquickly
- Verify callbacks if your provider signs them.
If you’re using a specific provider
The exact steps depend on the API:
- Twilio: use
StatusCallback - Vonage/Nexmo: use
callback/ delivery receipt URL - MessageBird: delivery reports via webhooks
- Telnyx: message status webhooks
- AWS SNS / Pinpoint: delivery status logs/feedback mechanisms
If you tell me which SMS API you’re using, I can show the exact setup and example code.