v50

latestOpenAPI 3.0.1Apache 2.0raw.githubusercontent.com2026-02-055427357.6 KB
ChatV2Message

post/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages

Path parameters

ServiceSidstring required

The SID of the Service to create the Message resource under.

ChannelSidstring required

The SID of the Channel the new Message resource belongs to. This value can be the Channel resource's sid or unique_name.

Headers

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

The X-Twilio-Webhook-Enabled HTTP request header

Response

Created

sidstring nullable

The unique string that we created to identify the Message resource.

account_sidstring nullable

The SID of the Account that created the Message resource.

attributesstring nullable

The JSON string that stores application-specific data. If attributes have not been set, {} is returned.

service_sidstring nullable

The SID of the Service the Message resource is associated with.

tostring nullable

The SID of the Channel that the message was sent to.

channel_sidstring nullable

The SID of the Channel the Message resource belongs to.

date_createdstring date-time nullable

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updatedstring date-time nullable

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

last_updated_bystring nullable

The Identity of the User who last updated the Message, if applicable.

was_editedboolean nullable

Whether the message has been edited since it was created.

fromstring nullable

The Identity of the message's author. The default value is system.

bodystring nullable

The content of the message.

indexinteger

The index of the message within the Channel. Indices may skip numbers, but will always be in order of when the message was received.

typestring nullable

The Message type. Can be: text or media.

{"stackTrail":"components:schemas:chat.v2.service.channel.message:properties:media","oasType":"schema","type":"unknown","description":"An object that describes the Message's media, if the message contains media. The object contains these fields: `content_type` with the MIME type of the media, `filename` with the name of the media, `sid` with the SID of the Media resource, and `size` with the media object's file size in bytes. If the Message has no media, this value is `null`.","extensionFields":{"x-twilio":{"pii":{"handling":"standard","deleteSla":30}}},"nullable":true}
urlstring uri nullable

The absolute URL of the Message resource.