POST /conversations

You can create a conversation that has been initiated by a contact (ie. user or lead).

{% 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.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Intercom-Version String No

Valid values:

  • "1.1"
  • "2.0"
  • "1.0"
  • "2.9"
  • "Unstable"
  • "1.3"
  • "2.2"
  • "2.12"
  • "1.2"
  • "2.1"
  • "2.4"
  • "1.4"
  • "2.3"
  • "2.6"
  • "2.5"
  • "2.8"
  • "2.10"
  • "2.7"
  • "2.11"

Default value: "2.12"

Request body fields

Name Type Required Description
attachment_urls[] Array No

A list of image URLs that will be added as attachments. You can include up to 10 URLs.

body String Yes

The content of the message. HTML is not supported.

created_at Integer No

The time the conversation was created as a UTC Unix timestamp. If not provided, the current time will be used. This field is only recommneded for migrating past conversations from another source into Intercom.

from Object Yes
from.id String Yes

The identifier for the contact which is given by Intercom.

from.type String Yes

The role associated to the contact - user or lead.

Valid values:

  • "contact"
  • "lead"
  • "user"
message_type String No

The kind of message being created. Values: inapp (in-app messaging), email, sms, whatsapp, or facebook.

Valid values:

  • "email"
  • "inapp"
  • "whatsapp"
  • "facebook"
  • "sms"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.