Skip to main content

SMS Details

Retrieve the details and delivery status of a specific SMS message.

Endpoint​

GET https://<api_key>:<api_token><subdomain>/v1/Accounts/<account_sid>/SMS/Messages/<SmsSid>

Path Parameters​

ParameterRequiredDescription
SmsSidMandatoryThe unique SMS identifier returned when the message was sent

Code Examples​

curl https://<your_api_key>:<your_api_token>@api.exotel.com/v1/Accounts/<your_sid>/SMS/Messages/<SmsSid>.json

Response​

{
"SMSMessage": {
"Sid": "sms_sid_value",
"AccountSid": "your_sid",
"From": "EXOTEL",
"To": "+919876543210",
"Body": "Your OTP is 123456",
"Status": "sent",
"DetailedStatusCode": 20005,
"DetailedStatus": "DELIVERED_TO_HANDSET",
"DateCreated": "2024-01-15 10:30:00",
"DateUpdated": "2024-01-15 10:30:05",
"DateSent": "2024-01-15 10:30:02",
"Price": 0.18,
"Uri": "/v1/Accounts/your_sid/SMS/Messages/sms_sid_value"
}
}

Response Fields​

FieldTypeDescription
SidStringUnique SMS identifier
StatusStringHigh-level status: queued, sending, submitted, sent, failed, failed-dnd
DetailedStatusCodeIntegerNumeric status code (see Status Codes)
DetailedStatusStringHuman-readable status description
DateCreatedDateTimeWhen the request was received
DateSentDateTimeWhen the SMS was sent to the operator
DateUpdatedDateTimeLast status update timestamp
PriceDoubleAmount charged

Try It​