Create a new message Interaction to send directly from your system to one [Participant](https://www.twilio.com/docs/proxy/api/participant). The `inbound` properties for the Interaction will always be empty.
Create a new message Interaction to send directly from your system to one Participant. The inbound
properties for the Interaction will always be empty.
Path parameters
-
The SID of the parent Service resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KS[0-9a-fA-F]{32}$
. -
The SID of the parent Session resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KC[0-9a-fA-F]{32}$
. -
The SID of the Participant resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KP[0-9a-fA-F]{32}$
.
POST
/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions
curl \
--request POST 'https://proxy.twilio.com/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Body=some+message'
Request example
{"Body"=>"some message"}
Response examples (200)
{
"sid": "KIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/MessageInteractions/KIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data": "{\"body\":\"some message\"}",
"type": "message",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"session_sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"participant_sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"inbound_resource_sid": null,
"inbound_resource_url": null,
"inbound_resource_type": null,
"outbound_resource_sid": "SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"outbound_resource_url": null,
"outbound_resource_type": "Message",
"inbound_participant_sid": null,
"inbound_resource_status": null,
"outbound_participant_sid": "KPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"outbound_resource_status": "sent"
}