Creates a conversation
Changed onYou 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.
Request
- Base URLhttps://api.intercom.io
- AuthHTTP bearer
Headers
Intercom API version.</br>By default, it's equal to the version set in the app package.
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"
}Changes
- info
added the new optional request property
- info
- breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added to the response body
allOflist for the response status
- breaking