Path parameters
-
Minimum length is
34, maximum length is34. Format should match the following pattern:^IS[0-9a-fA-F]{32}$. -
Minimum length is
34, maximum length is34. Format should match the following pattern:^IM[0-9a-fA-F]{32}$.
POST
/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}
curl \
--request POST 'https://ip-messaging.twilio.com/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "X-Twilio-Webhook-Enabled: true" \
--data 'Body=Hello&Attributes=%7B+%22foo%22%3A+%22bar%22+%7D&DateCreated=2015-12-16T22%3A18%3A37Z&DateUpdated=2015-12-16T22%3A18%3A38Z&LastUpdatedBy=username&From=fromUser'
Request example
{"Body" => "Hello", "Attributes" => "{ \"foo\": \"bar\" }", "DateCreated" => "2015-12-16T22:18:37Z", "DateUpdated" => "2015-12-16T22:18:38Z", "LastUpdatedBy" => "username", "From" => "fromUser"}
Response examples (200)
{
"sid": "IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"attributes": "{ \"foo\": \"bar\" }",
"date_created": "2015-12-16T22:18:37Z",
"date_updated": "2015-12-16T22:18:38Z",
"last_updated_by": "username",
"was_edited": true,
"from": "fromUser",
"body": "Hello",
"index": 0,
"type": "text",
"media": null,
"url": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}