Fetch a message from the conversation
A Message resource represents a message in a conversation.
Fetch a message from the conversation
Path parameters
-
The unique ID of the Conversation for this message.
-
A 34 character string that uniquely identifies this resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IM[0-9a-fA-F]{32}$
.
GET
/v1/Conversations/{ConversationSid}/Messages/{Sid}
curl \
--request GET 'https://conversations.twilio.com/v1/Conversations/{ConversationSid}/Messages/{Sid}' \
--user "username:password"
Response examples (200)
{
"sid": "IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"body": "Welcome!",
"index": 0,
"links": {
"channel_metadata": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelMetadata",
"delivery_receipts": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Receipts"
},
"media": null,
"author": "system",
"delivery": {
"read": "some",
"sent": "all",
"total": 2,
"failed": "none",
"delivered": "some",
"undelivered": "none"
},
"attributes": "{ \"importance\": \"high\" }",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"content_sid": null,
"date_created": "2016-03-24T20:37:57Z",
"date_updated": "2016-03-24T20:37:57Z",
"participant_sid": null,
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}