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.
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
})