メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

メッセージの送信

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.

MessageInteraction properties

Names in PHP format
sid
sid<KI> Not PII

A 34 character string that uniquely identifies this Message Interaction.

sessionSid
sid<KC> Not PII

The unique SID identifier of the parent Session.

serviceSid
sid<KS> Not PII

The unique SID identifier of the parent Service.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account.

data
文字列 PII MTL: 30 DAYS

The body of the message sent to the participant as a JSON structure. (e.g. {"body": "hello"})

type
enum:type Not PII

The Type of this Message Interaction. Will always be message.

participantSid
sid<KP> Not PII

The unique SID identifier of the Participant.

inboundParticipantSid
sid<KP> Not PII

Always empty for created Message Interactions.

inboundResourceSid
sid Not PII

Always empty for created Message Interactions.

inboundResourceStatus
enum:resource_status Not PII

Always empty for created Message Interactions.

inboundResourceType
文字列 Not PII

Always empty for created Message Interactions.

inboundResourceUrl
url Not PII

Always empty for created Message Interactions.

outboundParticipantSid
sid<KP> Not PII

The unique SID identifier of the Outbound Participant.

outboundResourceSid
sid Not PII

The unique SID identifier of the Outbound Message resource.

outboundResourceStatus
enum:resource_status Not PII

The status of the outbound message resource. One of accepted, deleted, delivered, delivery-unknown, failed, queued, received, receiving, scheduled, sending, sent, undelivered or unknown.

outboundResourceType
文字列 Not PII

The type of the Outbound Resource; will always be Message.

outboundResourceUrl
url Not PII

The URL of the Twilio message resource.

dateCreated
date_time<iso8601> Not PII

The date that this Message Interaction was created, given in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date that this Message Interaction was last updated, given in ISO 8601 format.

url
url Not PII

The URL of this resource.

Create a MessageInteraction resource

post
https://proxy.twilio.com/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions
パラメーター
Names in None format
body
Required if media_url is not passed
post 文字列 Not PII

The message to send to the participant

media_url
Required if body is not passed
post url[] Not PII

Not currently supported during beta.

service_sid
必須
post sid<KS> Not PII

The unique SID identifier of the parent Service.

session_sid
必須
post sid<KC> Not PII

The unique SID identifier of the parent Session.

participant_sid
必須
post sid<KP> Not PII

The unique SID identifier of the Participant.

        
        
        
        
        Rate this page:

        ヘルプが必要ですか?

        We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.