# Iterable Destination Config Reference

<p><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/iterable/setting-up-iterable/" >Iterable</a> is a cross-channel marketing destination. RudderStack sends events to Iterable&rsquo;s API from its servers, or — for web sources — through Iterable&rsquo;s web SDK in device mode, which also shows in-app messages.</p>
<p>In an Iterable destination spec:</p>
<ul>
<li><code>type: iterable</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: iterable-prod
spec:
  id: iterable-prod
  display_name: Iterable Production
  type: iterable
  definition_version: 1
  enabled: true
  config:
    api_key: &#34;{{ .ITERABLE_API_KEY }}&#34;
    data_center: USDC

    register_device_or_browser_api_key: &#34;{{ .ITERABLE_MOBILE_WEB_KEY }}&#34;
    prefer_user_id: true
    merge_nested_objects: true
    map_to_single_event: true
    track_all_pages: false
    track_categorized_pages: true
    track_named_pages: true

    package_name: acme-web
    initialisation_identifier:
      web: email
    get_in_app_event_mapping:
      web:
        - Viewed Pricing
    handle_links:
      web: open-all-new-tab
    close_button_position:
      web: top-right

    connection_mode:
      web: device
      cloud: cloud
    consent_management:
      web:
        - provider: oneTrust
          consents:
            - marketing</code></pre></div>
</div>
<p>The above example connects web sources in <code>device</code> mode, which is what makes <code>package_name</code> required, and sends server-side events in <code>cloud</code> mode, where the page settings apply — see <a href="#web-device-mode" >Web device mode</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">In <code>cloud</code> mode Iterable accepts <code>identify</code>, <code>page</code>, <code>screen</code>, <code>track</code>, and <code>alias</code> events. In <code>device</code> mode, web sources send <code>identify</code> and <code>track</code>.</div>
  </div>
</blockquote>

</html>
<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="connection">Connection</h3><div class="rs-ckeys">
<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:
  Your Iterable API key, from <strong>Integrations</strong> &gt; <strong>API Keys</strong> in Iterable.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<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">
  See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/iterable/setting-up-iterable/#where-can-i-find-the-iterable-api-key" >Where can I find the Iterable API key?</a>.
</div>

</div>

<div class="rs-ckey" id="data_center">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">data_center</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Region of your Iterable project.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>USDC</code> or <code>EUDC</code>.</li>
<li>The dashboard defaults this field to <code>USDC</code>. Rudder CLI requires it explicitly.</li>
<li>A spec that omits this key fails validation.</li>
</ul>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="cloud-mode">Cloud mode</h3><p>These keys apply to events sent in <code>cloud</code> mode. The dashboard shows them only when the destination has a cloud-mode connection.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="register_device_or_browser_api_key">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">register_device_or_browser_api_key</p>Secret</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Iterable mobile or web API key, used to register device and browser tokens. Needed when <code>identify</code> calls carry token information.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<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>

<div class="rs-ckey" id="prefer_user_id">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">prefer_user_id</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:
  Create a new Iterable user when an event&rsquo;s <code>userId</code> doesn&rsquo;t match an existing one, using Iterable&rsquo;s <code>preferUserId</code> parameter. The dashboard calls this <strong>Create new user if userID exists</strong>.
</p>

<div class="rs-ckey__extra">
  See Iterable&rsquo;s <a href="https://api.iterable.com/api/docs#users_updateUser" >Update user data API</a>.
</div>

</div>

<div class="rs-ckey" id="merge_nested_objects">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">merge_nested_objects</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:
  Merge top-level objects on the user profile instead of overwriting them, using Iterable&rsquo;s <code>mergeNestedObjects</code> parameter. The dashboard calls this <strong>Merge top-level objects</strong>.
</p>

</div>

<div class="rs-ckey" id="map_to_single_event">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">map_to_single_event</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:
  Send every page under one event name — <code>Loaded a Page</code> for <code>page</code> calls and <code>Loaded a Screen</code> for <code>screen</code> calls.
</p>

</div>

<div class="rs-ckey" id="track_all_pages">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">track_all_pages</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 every <code>page</code> event to Iterable.
</p>

</div>

<div class="rs-ckey" id="track_categorized_pages">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">track_categorized_pages</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:
  Send <code>page</code> events that have a category.
</p>

</div>

<div class="rs-ckey" id="track_named_pages">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">track_named_pages</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:
  Send <code>page</code> events that have a name.
</p>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="web-device-mode">Web device mode</h3><p>These keys configure Iterable&rsquo;s web SDK, so they apply only when <code>connection_mode.web</code> is <code>device</code>. Apart from <code>package_name</code>, each is keyed by <code>web</code>.</p>
<div class="rs-ckeys">
<div class="rs-ckey" id="package_name">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">package_name</p>Required</div>
  <p class="rs-ckey__field">
    Type:
    <code>string</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Name of the website Iterable shows in-app messages for.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li>Required when <code>connection_mode.web</code> is <code>device</code>. Leave it unset otherwise.</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>

<div class="rs-ckey" id="initialisation_identifier">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">initialisation_identifier</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Identifier the SDK uses to recognize a user across a session.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — <code>email</code> (default) or <code>userId</code>.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="get_in_app_event_mapping">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">get_in_app_event_mapping</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Event names that trigger fetching and showing in-app messages.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — array of event names, each at most 100 characters or a 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">get_in_app_event_mapping:
  web:
    - Viewed Pricing
    - Started Checkout</code></pre></div>
</div>

</div>

</div>

<div class="rs-ckey" id="purchase_event_mapping">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">purchase_event_mapping</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Event names sent to Iterable as purchase events.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — array of event names, each at most 100 characters or a template.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="send_track_for_inapp">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">send_track_for_inapp</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Send a <code>track</code> event each time an in-app message is shown.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — boolean.</li>
</ul>

</div>

</div>

</div>

<!-- end-chunk -->
<!-- begin-chunk -->
<h3 id="in-app-message-display">In-app message display</h3><p>These keys shape how in-app messages look and behave in the browser. They apply only when <code>connection_mode.web</code> is <code>device</code>, and each is keyed by <code>web</code>. Unless noted, the value is a string and isn&rsquo;t validated locally:</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">animation_duration:
  web: &#34;400&#34;
top_offset:
  web: &#34;10%&#34;
handle_links:
  web: open-all-new-tab
close_button_position:
  web: top-right
is_required_to_dismiss_message:
  web: false</code></pre></div>
</div>
<div class="rs-ckeys">
<div class="rs-ckey" id="animation_duration">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">animation_duration</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Time, in milliseconds, that messages take to animate in and out.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string, for example <code>&quot;400&quot;</code>.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="display_interval">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">display_interval</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Time, in milliseconds, to wait after a message closes before showing the next one.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="top_offset">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">top_offset</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Space between the top of the screen and a message, in <code>px</code> or <code>%</code>. Doesn&rsquo;t apply to center, top, or full-screen messages.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string, for example <code>&quot;10%&quot;</code>.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="right_offset">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">right_offset</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Space between the right edge of the screen and a message, in <code>px</code> or <code>%</code>. Doesn&rsquo;t apply to center, top, or full-screen messages.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="bottom_offset">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">bottom_offset</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Space between the bottom of the screen and a message, in <code>px</code> or <code>%</code>. Doesn&rsquo;t apply to center, top, or full-screen messages.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="handle_links">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">handle_links</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  How links inside a message open.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — <code>open-all-new-tab</code> (default), <code>open-all-same-tab</code>, or <code>external-new-tab</code>.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="on_open_screen_reader_message">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">on_open_screen_reader_message</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Text a screen reader announces when a message opens.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="on_open_node_to_take_focus">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">on_open_node_to_take_focus</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  DOM element that takes keyboard focus when a message opens.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string, for example a CSS selector.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="close_button_color">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">close_button_color</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Color of the close button.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="close_button_size">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">close_button_size</p>Internal</div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Size of the close button.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="close_button_position">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">close_button_position</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Position of the close button on the message.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — <code>top-right</code> (default) or <code>top-left</code>.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="close_button_color_top_offset">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">close_button_color_top_offset</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Space between the close button and the message&rsquo;s top border. Despite <code>color</code> in its name, this is an offset.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="close_button_color_side_offset">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">close_button_color_side_offset</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Space between the close button and the message&rsquo;s side borders. Despite <code>color</code> in its name, this is an offset.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="icon_path">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">icon_path</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Path to an image or SVG shown instead of the default close icon.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — string.</li>
</ul>

</div>

</div>

<div class="rs-ckey" id="is_required_to_dismiss_message">
  <div class="rs-ckey__title">
    <p class="rs-ckey__name">is_required_to_dismiss_message</p></div>
  <p class="rs-ckey__field">
    Type:
    <code>object</code>
  </p>
<p class="rs-ckey__field">
  Description:
  Stop users from dismissing a message by clicking outside it.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<li><code>web</code> — boolean.</li>
</ul>

</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"><a href="https://www.rudderstack.com/docs/sources/event-streams/sdks/event-filtering/" >Client-side event filtering</a> applies only when <code>connection_mode.web</code> is <code>device</code> — the dashboard shows these controls only for device-mode connections, and the SDK is what applies the filter. Rudder CLI accepts the block in any mode, but it has no effect on cloud-mode events.</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 Iterable, by event name.
</p>

<div class="rs-ckey__notes">
  <p class="rs-ckey__field">Notes:</p>
  <ul>
<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>

</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 Iterable 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</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">connection_mode:
  web: 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>Iterable 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></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></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>
</tbody>
</table>
<p>Only <code>web</code> offers <code>device</code> mode, which loads Iterable&rsquo;s web SDK — recommended if you use Iterable&rsquo;s web push notifications. See <a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/iterable/iterable-device-mode/" >Iterable device mode</a>.</p>

<html lang="en">
<blockquote class="info">
  <div class="tip-quote">
    
    <div class="tip-text">The dashboard additionally offers Iterable to AMP, Shopify, and Reverse ETL sources. Rudder CLI doesn&rsquo;t manage those connections, so <code>amp</code>, <code>shopify</code>, and <code>warehouse</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 two 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>. An unsupported type reports:</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;iterable-prod&#39; (type &#39;iterable&#39;) does not support source &#39;my-source&#39;:
source type &#39;amp&#39; is not among supported source types: android, android_kotlin, ...</code></pre></div>
</div>
<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;iterable-prod&#39; config has no &#39;connection_mode&#39; entry for source type &#39;web&#39;</code></pre></div>
</div>
<p>Iterable needs no additional config keys to connect a source of any type, in any mode. <code>package_name</code> is checked on the destination instead — see <a href="#web-device-mode" >Web device mode</a>.</p>
<!-- end-chunk -->
<!-- begin-chunk -->
<h2 id="secrets">Secrets</h2><p><code>api_key</code> and <code>register_device_or_browser_api_key</code> are the secret keys. Write each 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:
  api_key: &#34;{{ .ITERABLE_API_KEY }}&#34;
  register_device_or_browser_api_key: &#34;{{ .ITERABLE_MOBILE_WEB_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_ITERABLE_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>The YAML that <code>rudder-cli import</code> writes may or may not include secret keys. Before you apply, make sure every secret key your configuration needs is present and populated through variable substitution.</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="see-more">See more</h2><ul>
<li><a href="https://www.rudderstack.com/docs/destinations/streaming-destinations/iterable/setting-up-iterable/" >Iterable Destination</a> for the API key, web SDK, and Iterable catalogs</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>

