v1

latestOpenAPI 3.0.1Apache 2.02026-07-1410161228.2 KB

Add a new message to the conversation in a specific service

post/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages

Path parameters

ChatServiceSidstring required

The SID of the Conversation Service the Participant resource is associated with.

ConversationSidstring required

The unique ID of the Conversation for this message.

Headers

X-Twilio-Webhook-Enabled'true' | 'false'

The X-Twilio-Webhook-Enabled HTTP request header

Response

Created

account_sidstring nullable

The unique ID of the Account responsible for this message.

attributesstring nullable

A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

authorstring nullable

The channel specific identifier of the message's author. Defaults to system.

bodystring nullable

The content of the message, can be up to 1,600 characters long.

chat_service_sidstring nullable

The SID of the Conversation Service the Participant resource is associated with.

content_sidstring nullable

The unique ID of the multi-channel Rich Content template.

conversation_sidstring nullable

The unique ID of the Conversation for this message.

date_createdstring date-time nullable

The date that this resource was created.

date_updatedstring date-time nullable

The date that this resource was last updated. null if the message has not been edited.

{"stackTrail":"components:schemas:conversations.v1.service.service_conversation.service_conversation_message:properties:delivery","oasType":"schema","type":"unknown","description":"An object that contains the summary of delivery statuses for the message to non-chat participants.","nullable":true}
indexinteger nullable

The index of the message within the Conversation.

linksobject nullable

Contains an absolute API resource URL to access the delivery & read receipts of this message.

participant_sidstring nullable

The unique ID of messages's author participant. Null in case of system sent message.

sidstring nullable

A 34 character string that uniquely identifies this resource.

urlstring uri nullable

An absolute API resource URL for this message.