# Intercom Destination Config Reference

<p><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/" >Intercom</a> is a customer messaging destination. RudderStack sends <code>identify</code>, <code>track</code>, and <code>group</code> events to Intercom&rsquo;s REST API from its servers, or loads Intercom&rsquo;s own SDKs in device mode — the Messenger on web, and the mobile SDKs on Android and iOS.</p>
<p>In an Intercom destination spec:</p>
<ul>
<li><code>type: intercom</code></li>
<li><code>definition_version: 1</code></li>
</ul>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="sample-configuration">Sample configuration</h2><div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">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: &#34;{{ .INTERCOM_APP_ID }}&#34;
    api_key: &#34;{{ .INTERCOM_ACCESS_TOKEN }}&#34;
    api_version: v2
    api_server: standard
    send_anonymous_id: true

    mobile_api_key_android: &#34;{{ .INTERCOM_ANDROID_API_KEY }}&#34;
    mobile_api_key_ios: &#34;{{ .INTERCOM_IOS_API_KEY }}&#34;

    event_filtering:
      blacklist:
        - Credit Card Added

    connection_mode:
      web: device
      android: device
      ios: device
      cloud: cloud
    consent_management:
      web:
        - provider: oneTrust
          consents:
            - analytics</code></pre></div>
</div>
<p>The above example loads Intercom&rsquo;s SDKs on web, Android, and iOS in <code>device</code> mode, which use <code>app_id</code> and the mobile API keys, and sends server-side events in <code>cloud</code> mode with <code>api_key</code> — see <a href="#key-dependencies" >Key dependencies</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="config-keys">Config keys</h2><p><code>config</code> accepts only the keys listed below. The <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#config-key-rules" >shared config key rules</a> cover unknown keys, defaults, and immutability.</p>

<html lang="en">
<blockquote class="info">
  <div class="tip-quote">
    
    <div class="tip-text"><p>Most Intercom keys affect only one connection mode, or one platform&rsquo;s SDK, and each key says which. Rudder CLI accepts every key whatever the mode — a key for another mode is stored and ignored.</p>
<p>In <code>cloud</code> mode Intercom accepts <code>identify</code>, <code>track</code>, and <code>group</code> events. In <code>device</code> mode, web sources send <code>identify</code>, <code>track</code>, and <code>page</code>, and Android and iOS sources send <code>identify</code> and <code>track</code>.</p>
</div>
  </div>
</blockquote>

</html>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="key-dependencies">Key dependencies</h3><p>Device mode loads Intercom with <code>app_id</code>, and cloud mode calls Intercom&rsquo;s API with <code>api_key</code>. Rudder CLI checks for each key twice — once on the destination, and once on each connection:</p>
<table>
  <thead>
      <tr>
          <th>Key</th>
          <th>Destination check: required when</th>
          <th>Connection check: required when</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><code>app_id</code></td>
          <td><code>connection_mode</code> is set, and every entry in it maps <code>web</code>, <code>android</code>, or <code>ios</code> to <code>device</code></td>
          <td>A <code>web</code>, <code>android</code>, or <code>ios</code> source connects in <code>device</code> mode</td>
      </tr>
      <tr>
          <td><code>api_key</code></td>
          <td><code>connection_mode</code> is set, and every entry in it maps <code>web</code>, <code>android</code>, <code>ios</code>, <code>unity</code>, <code>react_native</code>, <code>flutter</code>, or <code>cordova</code> to <code>cloud</code></td>
          <td>A source connects in <code>cloud</code> mode, except a <code>cloud</code>, <code>android_kotlin</code>, <code>ios_swift</code>, or <code>warehouse</code> source</td>
      </tr>
  </tbody>
</table>
<p>A <code>connection_mode</code> that mixes modes, or that names <code>cloud</code>, <code>android_kotlin</code>, <code>ios_swift</code>, or <code>warehouse</code>, requires neither key at the destination check, and neither does a spec without <code>connection_mode</code>. A spec that misses a key the destination check requires fails validation. For the connection check, see <a href="#connect-a-source" >Connect a source</a>.</p>

<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text"><p>Set <code>app_id</code> if any source connects in <code>device</code> mode, and <code>api_key</code> if any source connects in <code>cloud</code> mode. Without <code>api_key</code>, RudderStack fails every cloud-mode event, whatever the source type — including the four source types Rudder CLI doesn&rsquo;t check.</p>
<p>Android and iOS device mode also need the platform&rsquo;s mobile API key, which Rudder CLI never requires — see <a href="#mobile-device-mode" >Mobile device mode</a>.</p>
</div>
  </div>
</blockquote>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="connection">Connection</h3><div class="rs-ckeys">
<div class="rs-ckey" id="app_id">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">app_id</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  ID of your Intercom workspace, which Intercom&rsquo;s web Messenger and mobile SDKs load with. The dashboard calls it <strong>App Id</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when a <code>web</code>, <code>android</code>, or <code>ios</code> source connects in <code>device</code> mode — see <a href="#key-dependencies" >Key dependencies</a>. Leave it unset otherwise.</li>
<li>1 to 100 characters, and must not contain line breaks.</li>
<li>A <code>{{ path || fallback }}</code> template is accepted in place of a literal.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <p>Supply it as a <code>{{ .VAR }}</code> reference rather than a literal — see <a href="#secrets" >Secrets</a>.</p>
<p>See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#adding-device-mode-integration" >Adding device mode integration</a>.</p>

</div>

</div>

<div class="rs-ckey" id="api_key">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">api_key</p>RequiredSecret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Intercom access token RudderStack calls Intercom&rsquo;s REST API with. The dashboard calls it <strong>Access Token</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when a source connects in <code>cloud</code> mode — see <a href="#key-dependencies" >Key dependencies</a>. Leave it unset otherwise.</li>
<li>1 to 100 characters, and must not contain line breaks.</li>
<li>A <code>{{ path || fallback }}</code> template is accepted in place of a literal.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <p>Supply it as a <code>{{ .VAR }}</code> reference rather than a literal — see <a href="#secrets" >Secrets</a>.</p>
<p>See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#connection-settings" >Connection settings</a> for where to find the access token.</p>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="cloud-mode">Cloud mode</h3><p>These keys configure how RudderStack calls Intercom&rsquo;s API, so they apply only to events sent in <code>cloud</code> mode. The dashboard shows them only then.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="api_version">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">api_version</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p><p class="rs-ckey__field">
    Default value:
    <code>v2</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Intercom REST API version RudderStack sends to. The dashboard calls it <strong>Intercom REST API Version</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>v2</code> — the latest API version, 2.10.</li>
<li><code>v1</code> — API version 1.4, kept for backward compatibility.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/migration-guide/" >Intercom API v2.10 Migration Guide</a>.
</div>

</div>

<div class="rs-ckey" id="api_server">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">api_server</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p><p class="rs-ckey__field">
    Default value:
    <code>standard</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Region of your Intercom workspace. The dashboard calls it <strong>API Server</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>One of <code>standard</code> (US), <code>eu</code>, or <code>au</code>.</li>
<li>Applies when <code>api_version</code> is <code>v2</code>. With <code>v1</code>, RudderStack always calls the US endpoint.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">api_version: v2
api_server: eu</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="send_anonymous_id">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">send_anonymous_id</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>boolean</code>
  </p><p class="rs-ckey__field">
    Default value:
    <code>false</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Send the event&rsquo;s <code>anonymousId</code> as the Intercom user ID when <code>userId</code> is absent. The dashboard calls it <strong>Send AnonymousId as Secondary UserId</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Without it, an <code>identify</code> or <code>track</code> event carrying neither a <code>userId</code> nor an email fails, because Intercom needs one of them.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#configuration-settings" >Configuration settings</a>.
</div>

</div>

<div class="rs-ckey" id="update_last_request_at">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">update_last_request_at</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>boolean</code>
  </p><p class="rs-ckey__field">
    Default value:
    <code>true</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Set the user&rsquo;s last seen time in Intercom to the time of each <code>identify</code> call. The dashboard calls it <strong>Enable this to update the last seen to the current time</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies when <code>api_version</code> is <code>v1</code>. It has no effect with <code>v2</code>.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">api_version: v1
update_last_request_at: false</code></pre></div>
</div>
<p>See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/migration-guide/#step-2-review-connection-settings" >Review connection settings</a> in the migration guide.</p>
</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="mobile-device-mode">Mobile device mode</h3><p>These keys configure Intercom&rsquo;s mobile SDKs. Each is a plain string, not keyed by source type, though it applies to one platform only.</p>

<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text">Rudder CLI doesn&rsquo;t require these keys, even when <code>android</code> or <code>ios</code> connects in <code>device</code> mode. Without the platform&rsquo;s key, the SDK doesn&rsquo;t initialize Intercom, so no device-mode events from that platform reach it.</div>
  </div>
</blockquote>
<div class="rs-ckeys">
<div class="rs-ckey" id="mobile_api_key_android">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">mobile_api_key_android</p>Secret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Intercom API key for Android, from the Android installation settings in Intercom. The Android SDK initializes Intercom with it and <code>app_id</code>. The dashboard calls it <strong>Android API Key</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies to <code>android</code> sources in <code>device</code> mode only.</li>
<li>At most 100 characters, and must not contain line breaks.</li>
<li>A <code>{{ path || fallback }}</code> template is accepted in place of a literal.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <p>Supply it as a <code>{{ .VAR }}</code> reference rather than a literal — see <a href="#secrets" >Secrets</a>.</p>
<p>See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#configuration-settings" >Configuration settings</a> for where to find the key.</p>

</div>

</div>

<div class="rs-ckey" id="mobile_api_key_ios">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">mobile_api_key_ios</p>Secret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Intercom API key for iOS, used on the same terms as <code>mobile_api_key_android</code>. The dashboard calls it <strong>iOS API Key</strong>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies to <code>ios</code> sources in <code>device</code> mode only.</li>
<li>At most 100 characters, and must not contain line breaks.</li>
<li>A <code>{{ path || fallback }}</code> template is accepted in place of a literal.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  Supply it as a <code>{{ .VAR }}</code> reference rather than a literal — see <a href="#secrets" >Secrets</a>.
</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="event-filtering">Event filtering</h3>
<blockquote class="warning">
  <div class="tip-quote">
    
    <div class="tip-text"><p><a href="https://www.rudderstack.com/docs/sources/event-streams/sdks/event-filtering/" >Client-side event filtering</a> applies only to sources connected in <code>device</code> mode — <code>web</code>, <code>android</code>, or <code>ios</code>. The dashboard shows these controls only then, and the SDK is what applies the filter.</p>
<p>Rudder CLI accepts the block in any mode, but events sent in <code>cloud</code> mode reach Intercom unfiltered.</p>
</div>
  </div>
</blockquote>
<div class="rs-ckeys">
<div class="rs-ckey" id="event_filtering">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">event_filtering</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Restricts which <code>track</code> events the SDK passes to Intercom, by event name.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Applies to sources connected in <code>device</code> mode.</li>
<li><code>whitelist</code> — array of event names to allow; every other <code>track</code> event is dropped.</li>
<li><code>blacklist</code> — array of event names to drop; every other <code>track</code> event is allowed.</li>
<li>The two are mutually exclusive, and Rudder CLI enforces it — setting both fails validation.</li>
<li>Each name is at most 100 characters, or a <code>{{ path || fallback }}</code> template.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">connection_mode:
  web: device
event_filtering:
  blacklist:
    - Credit Card Added</code></pre></div>
</div>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="per-source-keys">Per-source keys</h3><p>Both keys are objects keyed by the local source type — the tokens listed under <a href="#source-types" >Source types</a>. A key naming a source type this destination doesn&rsquo;t support fails validation.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="connection_mode">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">connection_mode</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Maps each source type you connect to the mode its events reach Intercom in, using the modes in <a href="#source-types" >Source types</a>.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>An entry is required for each source type you connect — see <a href="#connect-a-source" >Connect a source</a>.</li>
<li>A mode the source type doesn&rsquo;t support on this destination fails validation — for example <code>device</code> for <code>android_kotlin</code>.</li>
<li>The entries also decide which credentials the destination needs — see <a href="#key-dependencies" >Key dependencies</a>.</li>
</ul>

</div>

<div class="rs-ckey__extra">
  <div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">connection_mode:
  web: device
  ios: device
  cloud: cloud</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="consent_management">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">consent_management</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Consent provider configuration per source type. The entry shape, accepted providers, and the rules on <code>resolution_strategy</code> and <code>consents</code> are shared across all destination types — see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#consent-management" >Consent management</a>.
</p>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="source-types">Source types</h2><p>Intercom accepts events from these source types in the mentioned connection modes:</p>
<table>
  <thead>
      <tr>
          <th>Source type</th>
          <th>Connection mode</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><code>android</code></td>
          <td><code>cloud</code>, <code>device</code></td>
      </tr>
      <tr>
          <td><code>android_kotlin</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>ios</code></td>
          <td><code>cloud</code>, <code>device</code></td>
      </tr>
      <tr>
          <td><code>ios_swift</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>web</code></td>
          <td><code>cloud</code>, <code>device</code></td>
      </tr>
      <tr>
          <td><code>unity</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>react_native</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>flutter</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>cordova</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>cloud</code></td>
          <td><code>cloud</code></td>
      </tr>
      <tr>
          <td><code>warehouse</code></td>
          <td><code>cloud</code></td>
      </tr>
  </tbody>
</table>
<p><code>web</code>, <code>android</code>, and <code>ios</code> offer <code>device</code> mode, which loads Intercom&rsquo;s own SDK in the browser or app. The Kotlin and Swift SDKs — <code>android_kotlin</code> and <code>ios_swift</code> — are <code>cloud</code> only. See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#adding-device-mode-integration" >Adding device mode integration</a> and <a href="https://www.rudderstack.com/docs/destinations/rudderstack-connection-modes/" >RudderStack Connection Modes</a>.</p>

<p><code>warehouse</code> is the token a <a href="https://www.rudderstack.com/docs/sources/reverse-etl/" >Reverse ETL source</a> resolves to. Rudder CLI manages the destination’s <code>warehouse</code> entry — if the destination is connected to a Reverse ETL source, set <code>connection_mode.warehouse: cloud</code> in its spec, or <code>apply</code> removes it.</p>
<p>Rudder CLI can also declare the Reverse ETL connection itself, for the types listed under <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-retl-connections/#supported-destinations" >Supported destinations</a> — see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/retl-connections/" >Manage Reverse ETL Connections using Rudder CLI</a>.</p>

<html lang="en">
<blockquote class="info">
  <div class="tip-quote">
    
    <div class="tip-text">The dashboard additionally offers Intercom to AMP and Shopify sources. Rudder CLI doesn&rsquo;t manage those connections, so <code>amp</code> and <code>shopify</code> are invalid here.</div>
  </div>
</blockquote>

</html>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="connect-a-source">Connect a source</h2><p>An event stream connection to this destination is checked against three rules at <code>validate</code> time.</p>
<p><strong>The source&rsquo;s type must be supported.</strong> A source&rsquo;s type resolves to one of the tokens above before the check — a JavaScript source resolves to <code>web</code>, and webhook and server-side SDK sources resolve to <code>cloud</code>. Every type an event stream source can resolve to is supported here, so this check always passes.</p>
<p><strong>The destination config must carry a <code>connection_mode</code> entry for that source type.</strong> This lives on the destination spec, not on the <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-connections/" >connection spec</a>. Without it:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;intercom-prod&#39; config has no &#39;connection_mode&#39; entry for source type &#39;web&#39;</code></pre></div>
</div>
<p><strong>The destination config must carry the credential for the connection&rsquo;s mode.</strong> A <code>web</code>, <code>android</code>, or <code>ios</code> source connecting in <code>device</code> mode needs <code>app_id</code>. Without it:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;intercom-prod&#39; config is missing fields required to connect a &#39;web&#39; source: app_id</code></pre></div>
</div>
<p>A source connecting in <code>cloud</code> mode needs <code>api_key</code>. Without it:</p>
<div class="rs-code">
  <div class="rs-code__head"><button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-text" data-lang="text">destination &#39;intercom-prod&#39; config is missing fields required to connect a &#39;web&#39; source: api_key</code></pre></div>
</div>
<p><code>cloud</code>, <code>android_kotlin</code>, and <code>ios_swift</code> sources connect without either check. Set <code>api_key</code> for them anyway — see <a href="#key-dependencies" >Key dependencies</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="secrets">Secrets</h2><p><code>api_key</code>, <code>app_id</code>, <code>mobile_api_key_android</code>, and <code>mobile_api_key_ios</code> are the secret keys. Write each one you use as a <code>{{ .VAR }}</code> reference and supply the value at apply time:</p>
<div class="rs-code">
  <div class="rs-code__head">yaml<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">config:
  app_id: &#34;{{ .INTERCOM_APP_ID }}&#34;
  api_key: &#34;{{ .INTERCOM_ACCESS_TOKEN }}&#34;
  mobile_api_key_android: &#34;{{ .INTERCOM_ANDROID_API_KEY }}&#34;
  mobile_api_key_ios: &#34;{{ .INTERCOM_IOS_API_KEY }}&#34;</code></pre></div>
</div>
<div class="rs-code">
  <div class="rs-code__head">bash<button class="rs-code__copy" type="button">
      
      Copy
    </button>
  </div>
  <div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">export RUDDER_INTERCOM_APP_ID=&#34;...&#34;
export RUDDER_INTERCOM_ACCESS_TOKEN=&#34;...&#34;
export RUDDER_INTERCOM_ANDROID_API_KEY=&#34;...&#34;
export RUDDER_INTERCOM_IOS_API_KEY=&#34;...&#34;
rudder-cli apply

# or
rudder-cli apply --var-file secrets.vars.yaml</code></pre></div>
</div>
<p>Note that:</p>
<ul>
<li><code>rudder-cli import</code> writes only the secrets the API returns, as <code>{{ .VAR }}</code> references, and leaves the others out. Add any secret key it leaves out, then supply the variables before you apply — see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/#secrets" >Secrets</a>.</li>
<li>In <code>device</code> mode, <code>app_id</code> and the mobile API keys are embedded in the page or app, so masking them protects your YAML, not the values themselves.</li>
</ul>
<p>See <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/variable-substitution/" >How to Use Variable Substitution in Rudder CLI</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="changes-by-release">Changes by release</h2>
<p>No changes since this type became available.</p>
<p>For changes across every destination type, see <a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/changes/" >Destination Type Changes by Release</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="see-more">See more</h2><ul>
<li><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/" >Intercom Destination</a> for credentials, device mode setup, and how RudderStack maps each event</li>
<li><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/migration-guide/" >Intercom API v2.10 Migration Guide</a> for the differences between <code>v1</code> and <code>v2</code></li>
<li><a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/destination-types/" >Destination Type Reference for Rudder CLI</a> for the rules shared across destination types</li>
<li><a href="https://www.rudderstack.com/docs/dev-tools/rudder-cli/yaml-destinations/" >Destination YAML Reference</a> for the spec envelope</li>
</ul>

