provider Messages POST /channels/{channel_id}/incoming_messages
@utdk/front /channels/{channel_id}/incoming_messages
Receive custom messages
Receive a custom message in Front. This endpoint is available for custom channels **ONLY**. Required scope: `messages:write`
channel_id path required
The channel ID. Alternatively, you can supply the 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.

receiveCustomMessages
POST/channels/{channel_id}/incoming_messages
Receive a custom message in Front. This endpoint is available for custom channels **ONLY**. Required scope: `messages:write`

Parameters

required

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

Input

required

Data of the sender

Subject of the message

required

Body of the message

Format of the message body. Can be `markdown` (default) or `html`.

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.

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.receiveCustomMessages({
  "channel_id": "cha_123",
  "body_format": "markdown"
})