Create draft

Create a draft message which is the first message of a new conversation.

Path Params
string
required
Defaults to cha_123

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

Body Params
string

ID of the teammate on behalf of whom the draft will be created. Alternatively, you can supply the author ID as a resource alias. If omitted, will post as the API Token or Application making the request.

to
array of strings

List of recipient handles who will receive the message once the draft is sent

to
cc
array of strings

List of recipient handles who will receive a copy of the message once the draft is sent

cc
bcc
array of strings

List of the recipient handles who will receive a blind copy of the message once the draft is sent

bcc
string

Subject of the draft.

string
required

Body of the draft

string

Body for the quote that the message is referencing. Only available on email channels.

attachments
array of files

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

attachments
string
Defaults to private

Mode of the draft to create. Can be 'private' (draft is visible to the author only) or 'shared' (draft is visible to all teammates with access to the conversation).

string

ID of the signature to attach to this draft. If null, no signature is attached.

boolean

Whether or not Front should try to resolve a signature for the message. Is ignored if signature_id is included. Default false;

Response

Language
Credentials
Choose an example:
application/json