Fetch a message belonging to the account used to make the request
A Message resource represents an inbound or outbound message.
Fetch a message belonging to the account used to make the request
Path parameters
-
The SID of the Account that created the Message resource to fetch.
-
The Twilio-provided string that uniquely identifies the Message resource to fetch.
GET /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json \
--user "username:password"
Response examples (200)
{
"account_sid": "string",
"api_version": "string",
"body": "string",
"date_created": "string",
"date_sent": "string",
"date_updated": "string",
"direction": "inbound",
"error_code": 42,
"error_message": "string",
"from": "string",
"messaging_service_sid": "string",
"num_media": "string",
"num_segments": "string",
"price": "string",
"price_unit": "string",
"sid": "string",
"status": "queued",
"subresource_uris": {},
"to": "string",
"uri": "string"
}
Response examples (200)
{
"account_sid": "string",
"api_version": "string",
"body": "string",
"date_created": "string",
"date_sent": "string",
"date_updated": "string",
"direction": "inbound",
"error_code": 42,
"error_message": "string",
"from": "string",
"messaging_service_sid": "string",
"num_media": "string",
"num_segments": "string",
"price": "string",
"price_unit": "string",
"sid": "string",
"status": "queued",
"subresource_uris": {},
"to": "string",
"uri": "string"
}