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.
sid
type: SID<KI>The unique string that we created to identify the MessageInteraction resource.
data
type: stringA JSON string that includes the message body sent to the participant. (e.g. {"body": "hello"}
)
type
type: enum<string>The Type of Message Interaction. This value is always message
.
message
voice
unknown
inbound_resource_status
type: enum<string>Always empty for created Message Interactions.
outbound_resource_status
type: enum<string>The outbound message resource status. Can be: accepted
, deleted
, delivered
, delivery-unknown
, failed
, queued
, received
, receiving
, scheduled
, sending
, sent
, undelivered
, or unknown
.
date_updated
type: string<date-time>The ISO 8601 date and time in GMT when the resource was last updated.
POST https://proxy.twilio.com/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions