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&From=fromUser&Attributes=%7B+%22foo%22%3A+%22bar%22+%7D&DateCreated=2015-12-16T22%3A18%3A37Z&DateUpdated=2015-12-16T22%3A18%3A38Z&LastUpdatedBy=username'
Request example
{"Body"=>"Hello", "From"=>"fromUser", "Attributes"=>"{ \"foo\": \"bar\" }", "DateCreated"=>"2015-12-16T22:18:37Z", "DateUpdated"=>"2015-12-16T22:18:38Z", "LastUpdatedBy"=>"username"}
Response examples (200)
{
"to": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/IMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"body": "Hello",
"from": "fromUser",
"type": "text",
"index": 0,
"media": null,
"attributes": "{ \"foo\": \"bar\" }",
"was_edited": true,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-12-16T22:18:37Z",
"date_updated": "2015-12-16T22:18:38Z",
"last_updated_by": "username"
}