provider Conversations POST
/conversations @utdk/intercom
/conversations Creates a conversation
You can create a conversation that has been initiated by a contact (ie. user or lead).
The conversation can be an in-app message only.
{% admonition type="info" name="Sending for visitors" %}
You can also send a message from a visitor by specifying their `user_id` or `id` value in the `from` field, along with a `type` field value of `contact`.
This visitor will be automatically converted to a contact with a lead role once the conversation is created.
{% /admonition %}
This will return the Message model that has been created.
- 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.createconversation({
"Intercom-Version": "2.14"
})