provider Messages POST /channels/{channel_id}/messages
@utdk/front /channels/{channel_id}/messages
Create message
Send a new message from a channel. This is one of the ways to create a new [conversation](https://dev.frontapp.com/reference/conversations#creating-a-new-conversation). The new conversation will support both messages and comments (discussions). Required scope: `messages:send`
channel_id path required
The sending channel ID. Alternatively, you can supply the sending channel address as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1).
string

Try it

Authentication
Configure credentials for Core API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createMessage
POST/channels/{channel_id}/messages
Send a new message from a channel. This is one of the ways to create a new [conversation](https://dev.frontapp.com/reference/conversations#creating-a-new-conversation). The new conversation will support both messages and comments (discussions). Required scope: `messages:send`

Parameters

required

The sending channel ID. Alternatively, you can supply the sending channel address as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1).

Input

required

List of the recipient handles who will receive this message. One of `to`, `cc`, or `bcc` is required.

List of the recipient handles who will receive a copy of this message. One of `to`, `cc`, or `bcc` is required.

List of the recipient handles who will receive a blind copy of this message. One of `to`, `cc`, or `bcc` is required.

Name used for the sender info of the message

Subject of the message for email message

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

required

Body of the message

Text version of the body for email messages

Binary data of attached files. Must use `Content-Type: multipart/form-data` if specified. See [example](https://gist.github.com/hdornier/e04d04921032e98271f46ff8a539a4cb) or read more about [Attachments](https://dev.frontapp.com/docs/attachments-1). Max 25 MB.

ID of the signature to attach to this draft. Only supported for email channels; using this on other channel types returns a 403 forbidden error. If null, no signature is attached.

Whether or not Front should try to resolve a signature for the message. Only applies to email channels and is ignored if signature_id is included or if author_id is omitted. Default false.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import front from '@utdk/front';

await front.createMessage({
  "channel_id": "cha_123"
})