We can send text messages through the Proxy API by creating a Message Interaction on a Participant. The referenced Participant will receive the message from their allocated proxy number on the appropriate channel.
Note: Only POST
(create) is available on Message Interactions. To query past messages you've created with this resource, query the Interaction resource.
The unique string that we created to identify the MessageInteraction resource.
A JSON string that includes the message body sent to the participant. (e.g. {"body": "hello"}
)
The Type of Message Interaction. This value is always message
.
message
voice
unknown
Always empty for created Message Interactions.
The outbound message resource status. Can be: accepted
, deleted
, delivered
, delivery-unknown
, failed
, queued
, received
, receiving
, scheduled
, sending
, sent
, undelivered
, or unknown
.
The ISO 8601 date and time in GMT when the resource was created.
The ISO 8601 date and time in GMT when the resource was last updated.
The absolute URL of the MessageInteraction resource.
POST https://proxy.twilio.com/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions