v1

latestOpenAPI 3.0.02026-07-26254134307.1 KB
Messages

Create message

Send a new message from a channel. This is one of the ways to create a new conversation. The new conversation will support both messages and comments (discussions).

Required scope: messages:send

post/channels/{channel_id}/messages

Path parameters

channel_idstring required

The sending channel ID. Alternatively, you can supply the sending channel address as a resource alias.

Request body

sender_namestring

Name of the sender

subjectstring

Subject of the message

author_idstring

ID of the teammate on behalf of whom the message is sent

bodystring required

The body of the message in HTML or plain text format.

delivered_atinteger

Time in seconds at which message was created in external system

attachmentsstring[]

Binary data of attached files. Must use Content-Type: multipart/form-data if specified. See example or read more about Attachments. Max 25 MB.

Response

An accepted message

statusstring
message_uidstring

Message unique identifier