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.
post/conversations
Headers
Intercom-Version'1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '2.0' | '2.1' | '2.2' | '2.3' | '2.4' | '2.5' | '2.6' | '2.7' | '2.8' | '2.9' | '2.10' | '2.11' | '2.12' | '2.13' | '2.14'
Intercom API version.</br>By default, it's equal to the version set in the app package.
Example:2.14
Request body
Example request
{
"from": {
"type": "user",
"id": "536e564f316c83104c000020"
},
"body": "Hello",
"subject": "Thanks for everything",
"created_at": 1671028894
}Response
conversation created
Example response
{
"type": "user_message",
"id": "1488971108",
"created_at": 1667560812,
"subject": "Greetings",
"body": "Hello",
"message_type": "inapp",
"conversation_id": "64619700005570"
}