Intercom Destination Config Reference
Beta- free
- growth
- enterprise
10 minute read
Intercom is a customer messaging destination. RudderStack sends identify, track, and group events to Intercom’s REST API from its servers, or loads Intercom’s own SDKs in device mode — the Messenger on web, and the mobile SDKs on Android and iOS.
In an Intercom destination spec:
type: intercomdefinition_version: 1
Sample configuration
version: rudder/v1
kind: destination
metadata:
name: intercom-prod
spec:
id: intercom-prod
display_name: Intercom Production
type: intercom
definition_version: 1
enabled: true
config:
app_id: "{{ .INTERCOM_APP_ID }}"
api_key: "{{ .INTERCOM_ACCESS_TOKEN }}"
api_version: v2
api_server: standard
send_anonymous_id: true
mobile_api_key_android: "{{ .INTERCOM_ANDROID_API_KEY }}"
mobile_api_key_ios: "{{ .INTERCOM_IOS_API_KEY }}"
event_filtering:
blacklist:
- Credit Card Added
connection_mode:
web: device
android: device
ios: device
cloud: cloud
consent_management:
web:
- provider: oneTrust
consents:
- analyticsThe above example loads Intercom’s SDKs on web, Android, and iOS in device mode, which use app_id and the mobile API keys, and sends server-side events in cloud mode with api_key — see Key dependencies.
Config keys
config accepts only the keys listed below. The shared config key rules cover unknown keys, defaults, and immutability.
Most Intercom keys affect only one connection mode, or one platform’s SDK, and each key says which. Rudder CLI accepts every key whatever the mode — a key for another mode is stored and ignored.
In
cloudmode Intercom acceptsidentify,track, andgroupevents. Indevicemode, web sources sendidentify,track, andpage, and Android and iOS sources sendidentifyandtrack.
Key dependencies
Device mode loads Intercom with app_id, and cloud mode calls Intercom’s API with api_key. Rudder CLI checks for each key twice — once on the destination, and once on each connection:
| Key | Destination check: required when | Connection check: required when |
|---|---|---|
app_id | connection_mode is set, and every entry in it maps web, android, or ios to device | A web, android, or ios source connects in device mode |
api_key | connection_mode is set, and every entry in it maps web, android, ios, unity, react_native, flutter, or cordova to cloud | A source connects in cloud mode, except a cloud, android_kotlin, ios_swift, or warehouse source |
A connection_mode that mixes modes, or that names cloud, android_kotlin, ios_swift, or warehouse, requires neither key at the destination check, and neither does a spec without connection_mode. A spec that misses a key the destination check requires fails validation. For the connection check, see Connect a source.
Set
app_idif any source connects indevicemode, andapi_keyif any source connects incloudmode. Withoutapi_key, RudderStack fails every cloud-mode event, whatever the source type — including the four source types Rudder CLI doesn’t check.Android and iOS device mode also need the platform’s mobile API key, which Rudder CLI never requires — see Mobile device mode.
Connection
app_id
RequiredSecretType:
string
Description: ID of your Intercom workspace, which Intercom’s web Messenger and mobile SDKs load with. The dashboard calls it App Id.
Notes:
- Required when a
web,android, oriossource connects indevicemode — see Key dependencies. Leave it unset otherwise. - 1 to 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
Supply it as a {{ .VAR }} reference rather than a literal — see Secrets.
api_key
RequiredSecretType:
string
Description: Intercom access token RudderStack calls Intercom’s REST API with. The dashboard calls it Access Token.
Notes:
- Required when a source connects in
cloudmode — see Key dependencies. Leave it unset otherwise. - 1 to 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
Supply it as a {{ .VAR }} reference rather than a literal — see Secrets.
See Connection settings for where to find the access token.
Cloud mode
These keys configure how RudderStack calls Intercom’s API, so they apply only to events sent in cloud mode. The dashboard shows them only then.
api_version
Type:
string
Default value:
v2
Description: Intercom REST API version RudderStack sends to. The dashboard calls it Intercom REST API Version.
Notes:
v2— the latest API version, 2.10.v1— API version 1.4, kept for backward compatibility.
api_server
Type:
string
Default value:
standard
Description: Region of your Intercom workspace. The dashboard calls it API Server.
Notes:
- One of
standard(US),eu, orau. - Applies when
api_versionisv2. Withv1, RudderStack always calls the US endpoint.
api_version: v2
api_server: eusend_anonymous_id
Type:
boolean
Default value:
false
Description:
Send the event’s anonymousId as the Intercom user ID when userId is absent. The dashboard calls it Send AnonymousId as Secondary UserId.
Notes:
- Without it, an
identifyortrackevent carrying neither auserIdnor an email fails, because Intercom needs one of them.
update_last_request_at
Type:
boolean
Default value:
true
Description:
Set the user’s last seen time in Intercom to the time of each identify call. The dashboard calls it Enable this to update the last seen to the current time.
Notes:
- Applies when
api_versionisv1. It has no effect withv2.
api_version: v1
update_last_request_at: falseSee Review connection settings in the migration guide.
Mobile device mode
These keys configure Intercom’s mobile SDKs. Each is a plain string, not keyed by source type, though it applies to one platform only.
Rudder CLI doesn’t require these keys, even whenandroidoriosconnects indevicemode. Without the platform’s key, the SDK doesn’t initialize Intercom, so no device-mode events from that platform reach it.
mobile_api_key_android
SecretType:
string
Description:
Intercom API key for Android, from the Android installation settings in Intercom. The Android SDK initializes Intercom with it and app_id. The dashboard calls it Android API Key.
Notes:
- Applies to
androidsources indevicemode only. - At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
Supply it as a {{ .VAR }} reference rather than a literal — see Secrets.
See Configuration settings for where to find the key.
mobile_api_key_ios
SecretType:
string
Description:
Intercom API key for iOS, used on the same terms as mobile_api_key_android. The dashboard calls it iOS API Key.
Notes:
- Applies to
iossources indevicemode only. - At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
{{ .VAR }} reference rather than a literal — see Secrets.Event filtering
Client-side event filtering applies only to sources connected in
devicemode —web,android, orios. The dashboard shows these controls only then, and the SDK is what applies the filter.Rudder CLI accepts the block in any mode, but events sent in
cloudmode reach Intercom unfiltered.
event_filtering
Type:
object
Description:
Restricts which track events the SDK passes to Intercom, by event name.
Notes:
- Applies to sources connected in
devicemode. whitelist— array of event names to allow; every othertrackevent is dropped.blacklist— array of event names to drop; every othertrackevent is allowed.- The two are mutually exclusive, and Rudder CLI enforces it — setting both fails validation.
- Each name is at most 100 characters, or a
{{ path || fallback }}template.
connection_mode:
web: device
event_filtering:
blacklist:
- Credit Card AddedPer-source keys
Both keys are objects keyed by the local source type — the tokens listed under Source types. A key naming a source type this destination doesn’t support fails validation.
connection_mode
Type:
object
Description: Maps each source type you connect to the mode its events reach Intercom in, using the modes in Source types.
Notes:
- An entry is required for each source type you connect — see Connect a source.
- A mode the source type doesn’t support on this destination fails validation — for example
deviceforandroid_kotlin. - The entries also decide which credentials the destination needs — see Key dependencies.
connection_mode:
web: device
ios: device
cloud: cloudconsent_management
Type:
object
Description:
Consent provider configuration per source type. The entry shape, accepted providers, and the rules on resolution_strategy and consents are shared across all destination types — see Consent management.
Source types
Intercom accepts events from these source types in the mentioned connection modes:
| Source type | Connection mode |
|---|---|
android | cloud, device |
android_kotlin | cloud |
ios | cloud, device |
ios_swift | cloud |
web | cloud, device |
unity | cloud |
react_native | cloud |
flutter | cloud |
cordova | cloud |
cloud | cloud |
warehouse | cloud |
web, android, and ios offer device mode, which loads Intercom’s own SDK in the browser or app. The Kotlin and Swift SDKs — android_kotlin and ios_swift — are cloud only. See Adding device mode integration and RudderStack Connection Modes.
warehouse is the token a Reverse ETL source resolves to. Rudder CLI manages the destination’s warehouse entry — if the destination is connected to a Reverse ETL source, set connection_mode.warehouse: cloud in its spec, or apply removes it.
Rudder CLI can also declare the Reverse ETL connection itself, for the types listed under Supported destinations — see Manage Reverse ETL Connections using Rudder CLI.
The dashboard additionally offers Intercom to AMP and Shopify sources. Rudder CLI doesn’t manage those connections, soampandshopifyare invalid here.
Connect a source
An event stream connection to this destination is checked against three rules at validate time.
The source’s type must be supported. A source’s type resolves to one of the tokens above before the check — a JavaScript source resolves to web, and webhook and server-side SDK sources resolve to cloud. Every type an event stream source can resolve to is supported here, so this check always passes.
The destination config must carry a connection_mode entry for that source type. This lives on the destination spec, not on the connection spec. Without it:
destination 'intercom-prod' config has no 'connection_mode' entry for source type 'web'The destination config must carry the credential for the connection’s mode. A web, android, or ios source connecting in device mode needs app_id. Without it:
destination 'intercom-prod' config is missing fields required to connect a 'web' source: app_idA source connecting in cloud mode needs api_key. Without it:
destination 'intercom-prod' config is missing fields required to connect a 'web' source: api_keycloud, android_kotlin, and ios_swift sources connect without either check. Set api_key for them anyway — see Key dependencies.
Secrets
api_key, app_id, mobile_api_key_android, and mobile_api_key_ios are the secret keys. Write each one you use as a {{ .VAR }} reference and supply the value at apply time:
config:
app_id: "{{ .INTERCOM_APP_ID }}"
api_key: "{{ .INTERCOM_ACCESS_TOKEN }}"
mobile_api_key_android: "{{ .INTERCOM_ANDROID_API_KEY }}"
mobile_api_key_ios: "{{ .INTERCOM_IOS_API_KEY }}"export RUDDER_INTERCOM_APP_ID="..."
export RUDDER_INTERCOM_ACCESS_TOKEN="..."
export RUDDER_INTERCOM_ANDROID_API_KEY="..."
export RUDDER_INTERCOM_IOS_API_KEY="..."
rudder-cli apply
# or
rudder-cli apply --var-file secrets.vars.yamlNote that:
rudder-cli importwrites only the secrets the API returns, as{{ .VAR }}references, and leaves the others out. Add any secret key it leaves out, then supply the variables before you apply — see Secrets.- In
devicemode,app_idand the mobile API keys are embedded in the page or app, so masking them protects your YAML, not the values themselves.
See How to Use Variable Substitution in Rudder CLI.
Changes by release
No changes since this type became available.
For changes across every destination type, see Destination Type Changes by Release.
See more
- Intercom Destination for credentials, device mode setup, and how RudderStack maps each event
- Intercom API v2.10 Migration Guide for the differences between
v1andv2 - Destination Type Reference for Rudder CLI for the rules shared across destination types
- Destination YAML Reference for the spec envelope