Intercom REST API bindings: the surface a support agent works.
::intercom::conversationslists, searches, replies, adds notes, assigns, snoozes, opens and closes conversations::intercom::contactscreates, finds, updates and searches contacts, and manages their notes and companies::intercom::companiescreates or updates companies::intercom::tagslists and creates tags, and tags or untags contacts and conversations::intercom::ticketscreates, updates and searches tickets::intercom::articleslists, reads and searches Help Center articles::intercom::eventssubmits data events::intercom::adminsfinds the admin id to act as::intercom::webhooksverifiesX-Hub-Signature::intercom::api/requestis the escape hatch for anything else
Setup: context variables:
intercom.token: an access token from the Developer Hubintercom.admin.id: the admin to act as for replies, notes, assignment and state changes (find it with::intercom::admins/me())intercom.region(optional):us(default),euorau, the region your workspace is hosted inintercom.version(optional): override the pinnedIntercom-Version
Every API-calling function also takes a trailing opts Map for
per-call credentials and settings; see ::intercom::api.
Quick start
::conversations ::intercom::conversations
page ::conversations/search-conversations({field: "open", operator: "=", value: true}, {per_page: 20})
convo first(page.conversations)
::conversations/add-note(convo.id, "Customer is on the enterprise plan; escalate to tier 2.")
::conversations/reply(convo.id, "Thanks for the report! A fix ships this week.")
Values
API_VERSION
API_VERSION: Str "2.17"
BASE_URLS
BASE_URLS: Map {
us: "https://api.intercom.io",
eu: "https://api.eu.intercom.io",
au: "https://api.au.intercom.io"
}