Webhook Topics

You can subscribe to the following Webhook topics, and you will receive notifications on your endpoint URL when an event occurs. The 'Object' column shows the Intercom object related to the event sent as part of the notification.

Each Webhook topic is associated with one or more permissions. When you set up a subscription to a particular topic, you will need to select the appropriate permissions to be able to receive a notification for that topic.

Multiple permissions

Some topic are associated with multiple permissions. In these cases you don't need to select all of these permissions to subscribe to that topic.

Admin topics

TopicObjectEvent descriptionPermissions
admin.added_to_workspaceAdminAn Admin being added to workspaceRead admins
admin.away_mode_updatedAdminAdmin away mode updatesRead admins
admin.removed_from_workspaceAdminAn Admin being removed from a workspaceRead admins

Company topics

TopicObjectEvent descriptionPermissions
company.createdCompanyCompany creationsRead users and companies Read one user and one company

Contact topics

TopicObjectEvent descriptionPermissions
contact.archiveContactContacts archivedRead users and companies Read and write users Read one user
contact.deletedContactContacts deletedRead users and companies Read one user and one company
contact.email.updatedContactA Contact email address is updatedRead users and companies Read and write users Read one user and one company
contact.lead.added_emailContactAn email address is added to a Contact (Lead)Read users and companies Read and write users Read one user and one company
contact.lead.createdContactContact creations (Lead)Read users and companies Read and write users Read one user and one company
contact.lead.signed_upContactContacts converting from Leads to UsersRead users and companies Read and write users Read one user and one company
contact.lead.tag.createdContact TagContacts being tagged (Lead)Read users and companies Read and write users Read one user and one company
contact.lead.tag.deletedContact TagContacts being untagged (Lead)Read users and companies Read and write users Read one user and one company
contact.lead.updatedContactContacts being updated (Lead)Read users and companies Read and write users Read one user and one company
contact.unsubscribedContactContacts unsubscribing from emailRead users and companies Read and write users Read one user and one company
contact.user.createdContactContact creations (User)Read users and companies Read and write users Read one user and one company
contact.user.tag.createdContact TagContacts being tagged (User)Read users and companies Read and write users Read one user and one company
contact.user.tag.deletedContact TagContacts being untagged (User)Read users and companies Read and write users Read one user and one company

Conversation topics

TopicObjectEvent descriptionPermissions
conversation.admin.assignedConversationAdmin conversation assignmentsRead conversations
conversation.admin.closedConversationAdmin conversation closedRead conversations
conversation.admin.notedConversationAdmin conversation notesRead conversations
conversation.admin.openedConversationAdmin conversation opensRead conversations
conversation.admin.repliedConversationAdmin conversation repliesRead conversations
conversation.admin.single.createdConversationAdmin initiated 1:1 conversationsRead conversations
conversation.admin.snoozedConversationAdmin conversation snoozesRead conversations
conversation.admin.unsnoozedConversationAdmin conversation unsnoozesRead conversations
conversation.deletedConversationConversation deletedRead conversations
conversation_part.redactedConversation PartConversation parts being deletedRead conversations
conversation_part.tag.createdConversation PartConversation parts being taggedRead conversations
conversation.priority.updatedConversationConversation priority updatedRead conversations
conversation.rating.addedConversationConversations getting a ratingRead conversations
conversation.user.createdConversationContact initiated conversations (User and Lead)Read conversations
conversation.user.repliedConversationContact conversation replies (Visitor, Lead and User)Read conversations

Event topics

TopicObjectEvent descriptionPermissions
event.createdEventEvents createdRead events

Subscription topics

TopicsObjectEvent descriptionPermissions
granular.unsubscribeSubscriptionA User unsubscribes from a message subscription typeRead and list users and companies Read and write users Read one user and one company

Visitor topics

TopicsObjectEvent descriptionPermissions
visitor.signed_upVisitorContacts converting from Visitors to UsersRead users and companies Read and write users Read one user and one company

Ping

pingPingSent when a post to the subscription's ping resource is received or periodically by Intercom. Ping is always subscribed to.

Webhook notification object

A notification object contains the following fields:

AttributeTypeDescription
typestringValue is 'notification_event'
idstringThe Intercom defined id representing the notification.
selfstringThe Intercom defined URL for the subscription. Optional.
created_attimestampThe timestamp the notification was created.
topicstringCorresponds to a topic.
delivery_attemptsnumberThe number of times this notification has been attempted.
first_sent_attimestampThe first time the delivery was attempted.
dataobjectA container for the data associated with the notification.
data.itemobjectThe data associated with the notification, which will have a 'type' field.

The contents of data.item object will be defined according to its type field. In the example to the right, the type value of Company indicates a company object.

{
  "type": "notification_event",
  "topic": "company.created",
  "id": "notif_ccd8a4d0-f965-11e3-a367-c779cae3e1b3",
  "app_id" : "a86dr8yl",
  "created_at": 1392731331,
  "delivery_attempts": 1,
  "first_sent_at": 1392731392,
  "data": {
    "item": {
      "type": "company",
      "id": "531ee472cce572a6ec000006",
      "name": "Example Company Inc.",
      "company_id": "6",
      "remote_created_at": 1394531169,
      "created_at": 1394533506,
      "updated_at": 1396874658,
      "custom_attributes": {
      }
    }
  }
}

Handling Webhook notifications

You will receive notifications on your chosen topics when you set up a subscription. How you handle those notifications, i.e. the HTTP status code returned, will determine the subsequent state of that subscription.

Timeout

You have 5 seconds to respond to a notification. If you don't send a response within that time, the notification is treated as failed and will be retried only once after 1 minute. If you respond with too many error responses, we drop future notifications for a period of 15 minutes.

Response CodeDescriptionAction
2xxSuccessThe webhook was successfully delivered.
410GoneWhen a 410 is received, we assume the resource is no longer available. We will disable the subscription and no more notifications will be sent.
429Too many requestsWhen a 429 is received, all notifications from that subscription will be throttled. Depending on the rate of delivery, this delay can be between 1 minute to 2 hours. If 429s continue and any notification is delayed for > 2 hours then we will drop that notification.
4xx (excl. 429) 5xxClient or service errorsWe will retry after 1 minute for all other errors. If the 2nd retry fails then we mark the notification delivery as failed.

Signed notifications

Intercom signs webhook notifications via an X-Hub-Signature header. We do this so that you can verify that the notification came from Intercom by decoding the signature.

We compute the value of this X-Hub-Signature header by creating a signature using the body of the JSON request and your App's client_secret value, which you can find on the Basic Info page of your App.

The signature is the hexadecimal (40-byte) representation of an SHA-1 signature computed using the HMAC algorithm defined in RFC2104.

The X-Hub-Signature header value starts with the string sha1= followed by the signature.

POST https://example.org/hooks
User-Agent: intercom-parrot-service-client/1.0
X-Hub-Signature: sha1=21ff2e149e0fdcac6f947740f6177f6434bda921
Accept: application/json
Content-Type: application/json

{
  "type" : "notification_event",
  "id" : "notif_78c122d0-23ba-11e4-9464-79b01267cc2e",
  "topic" : "user.created",
  "app_id" : "a86dr8yl",
  "data" : {
    "type" : "notification_event_data",
    "item" : {
      "type" : "user",
      "id" : "530370b477ad7120001d",
      "user_id" : "25",
      "name" : "Joe Example",
      "unsubscribed_from_emails" : false,
      "custom_attributes" : {}
    }
  }
}

Admin object for Webhooks

The Admin object is similar to the model returned via the API. You can see an example object below:

{
	"type": "admin",
	"id": "1",
	"name": "John Doe",
	"email": "john.doe@intercom.io",
	"job_title": "CEO",
	"away_mode_enabled": true,
	"away_mode_reassign": false,
	"away_status_reason": "🍔 On lunch",
	"has_inbox_seat": true,
	"team_ids": []
}

Contact Tag object for Webhooks

We only return the Contact Tag object for Webhooks. You can see an example object below:

{
  "type": "contact_tag",
  "created_at": 1392731331,
  "tag" : {
      "id": "1287",
      "name": "independent",
      "type": "tag"
    },
  "contact" : {
      "type": "contact",
      "id": "1287ab1287fefe",
        ........
  }
}

A contact tag is composed from the existing contact and tag JSON and is sent when contacts are tagged and untagged via the contact.user.tag.created, contact.lead.tag.created, contact.lead.tag.deleted and contact.user.tag.deleted topics.

AttributeTypeDescription
typestringValue is 'contact_tag'.
created_attimestampThe time the contact tag object was created.
tagTagThe tag that was added or removed.
contactcontactThe contact that was tagged or untagged.