provider Messages POST /messages
@utdk/intercom /messages
Create a message
You can create a message that has been initiated by an admin. The conversation can be either an in-app message or an email. > ๐Ÿšง Sending for visitors > > There can be a short delay between when a contact is created and when a contact becomes available to be messaged through the API. A 404 Not Found error will be returned in this case. This will return the Message model that has been created. > ๐Ÿšง Retrieving Associated Conversations > > As this is a message, there will be no conversation present until the contact responds. Once they do, you will have to search for a contact's conversations with the id of the message.
Intercom-Version header
enum: 1.0, 1.1, 1.2, 1.3โ€ฆ

Try it

Authentication
Configure credentials for Intercom 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/messages
You can create a message that has been initiated by an admin. The conversation can be either an in-app message or an email. > ๐Ÿšง Sending for visitors > > There can be a short delay between when a contact is created and when a contact becomes available to be messaged through the API. A 404 Not Found error will be returned in this case. This will return the Message model that has been created. > ๐Ÿšง Retrieving Associated Conversations > > As this is a message, there will be no conversation present until the contact responds. Once they do, you will have to search for a contact's conversations with the id of the message.

Input

The kind of message being created. Values: `in_app` or `email`.

The title of the email.

The content of the message. HTML and plaintext are supported.

The style of the outgoing message. Possible values `plain` or `personal`.

The sender of the message. If not provided, the default sender will be used.

The time the message was created. If not provided, the current time will be used.

Whether a conversation should be opened in the inbox for the message without the contact replying. Defaults to false if not provided.

Enter a gateway URL above to enable sending.

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

TypeScript

import intercom from '@utdk/intercom';

await intercom.createmessage({
  "Intercom-Version": "2.14",
  "create_conversation_without_contact_reply": false
})