Iterable Destination Config Reference
- free
- growth
- enterprise
10 minute read
Iterable is a cross-channel marketing destination. RudderStack sends events to Iterable’s API from its servers, or — for web sources — through Iterable’s web SDK in device mode, which also shows in-app messages.
In an Iterable destination spec:
type: iterabledefinition_version: 1
Sample configuration
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: "{{ .ITERABLE_API_KEY }}"
data_center: USDC
register_device_or_browser_api_key: "{{ .ITERABLE_MOBILE_WEB_KEY }}"
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:
- marketingThe above example connects web sources in device mode, which is what makes package_name required, and sends server-side events in cloud mode, where the page settings apply — see Web device mode.
Config keys
config accepts only the keys listed below. The shared config key rules cover unknown keys, defaults, and immutability.
Incloudmode Iterable acceptsidentify,page,screen,track, andaliasevents. Indevicemode, web sources sendidentifyandtrack.
Connection
api_key
RequiredSecretType:
string
Description: Your Iterable API key, from Integrations > API Keys in Iterable.
Notes:
- At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
data_center
RequiredType:
string
Description: Region of your Iterable project.
Notes:
USDCorEUDC.- The dashboard defaults this field to
USDC. Rudder CLI requires it explicitly. - A spec that omits this key fails validation.
Cloud mode
These keys apply to events sent in cloud mode. The dashboard shows them only when the destination has a cloud-mode connection.
register_device_or_browser_api_key
SecretType:
string
Description:
Iterable mobile or web API key, used to register device and browser tokens. Needed when identify calls carry token information.
Notes:
- At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
prefer_user_id
Type:
boolean
Default value:
true
Description:
Create a new Iterable user when an event’s userId doesn’t match an existing one, using Iterable’s preferUserId parameter. The dashboard calls this Create new user if userID exists.
merge_nested_objects
Type:
boolean
Default value:
true
Description:
Merge top-level objects on the user profile instead of overwriting them, using Iterable’s mergeNestedObjects parameter. The dashboard calls this Merge top-level objects.
map_to_single_event
Type:
boolean
Default value:
true
Description:
Send every page under one event name — Loaded a Page for page calls and Loaded a Screen for screen calls.
track_all_pages
Type:
boolean
Default value:
false
Description:
Send every page event to Iterable.
track_categorized_pages
Type:
boolean
Default value:
true
Description:
Send page events that have a category.
track_named_pages
Type:
boolean
Default value:
true
Description:
Send page events that have a name.
Web device mode
These keys configure Iterable’s web SDK, so they apply only when connection_mode.web is device. Apart from package_name, each is keyed by web.
package_name
RequiredType:
string
Description: Name of the website Iterable shows in-app messages for.
Notes:
- Required when
connection_mode.webisdevice. Leave it unset otherwise. - At most 100 characters, and must not contain line breaks.
- A
{{ path || fallback }}template is accepted in place of a literal.
initialisation_identifier
Type:
object
Description: Identifier the SDK uses to recognize a user across a session.
Notes:
web—email(default) oruserId.- Rudder CLI fills in the default only when the
initialisation_identifierblock is present. Omit the block and no value is sent.
get_in_app_event_mapping
Type:
object
Description: Event names that trigger fetching and showing in-app messages.
Notes:
web— array of event names, each at most 100 characters or a template.
get_in_app_event_mapping:
web:
- Viewed Pricing
- Started Checkoutpurchase_event_mapping
Type:
object
Description: Event names sent to Iterable as purchase events.
Notes:
web— array of event names, each at most 100 characters or a template.
send_track_for_inapp
Type:
object
Description:
Send a track event each time an in-app message is shown.
Notes:
web— boolean.
In-app message display
These keys shape how in-app messages look and behave in the browser. They apply only when connection_mode.web is device, and each is keyed by web. Unless noted, the value is a string and isn’t validated locally:
animation_duration:
web: "400"
top_offset:
web: "10%"
handle_links:
web: open-all-new-tab
close_button_position:
web: top-right
is_required_to_dismiss_message:
web: falseanimation_duration
Type:
object
Description: Time, in milliseconds, that messages take to animate in and out.
Notes:
web— string, for example"400".
display_interval
Type:
object
Description: Time, in milliseconds, to wait after a message closes before showing the next one.
Notes:
web— string.
top_offset
Type:
object
Description:
Space between the top of the screen and a message, in px or %. Doesn’t apply to center, top, or full-screen messages.
Notes:
web— string, for example"10%".
right_offset
Type:
object
Description:
Space between the right edge of the screen and a message, in px or %. Doesn’t apply to center, top, or full-screen messages.
Notes:
web— string.
bottom_offset
Type:
object
Description:
Space between the bottom of the screen and a message, in px or %. Doesn’t apply to center, top, or full-screen messages.
Notes:
web— string.
handle_links
Type:
object
Description: How links inside a message open.
Notes:
web—open-all-new-tab(default),open-all-same-tab, orexternal-new-tab.- Rudder CLI fills in the default only when the
handle_linksblock is present. Omit the block and no value is sent.
on_open_screen_reader_message
Type:
object
Description: Text a screen reader announces when a message opens.
Notes:
web— string.
on_open_node_to_take_focus
Type:
object
Description: DOM element that takes keyboard focus when a message opens.
Notes:
web— string, for example a CSS selector.
close_button_color
Type:
object
Description: Color of the close button.
Notes:
web— string.
close_button_size
InternalType:
object
Description: Size of the close button.
Notes:
web— string.
close_button_position
Type:
object
Description: Position of the close button on the message.
Notes:
web—top-right(default) ortop-left.- Rudder CLI fills in the default only when the
close_button_positionblock is present. Omit the block and no value is sent.
close_button_color_top_offset
Type:
object
Description:
Space between the close button and the message’s top border. Despite color in its name, this is an offset.
Notes:
web— string.
close_button_color_side_offset
Type:
object
Description:
Space between the close button and the message’s side borders. Despite color in its name, this is an offset.
Notes:
web— string.
icon_path
Type:
object
Description: Path to an image or SVG shown instead of the default close icon.
Notes:
web— string.
is_required_to_dismiss_message
Type:
object
Description: Stop users from dismissing a message by clicking outside it.
Notes:
web— boolean.
Event filtering
Client-side event filtering applies only whenconnection_mode.webisdevice— 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.
event_filtering
Type:
object
Description:
Restricts which track events the SDK passes to Iterable, by event name.
Notes:
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.
Per-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 Iterable 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.
connection_mode:
web: 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
Iterable accepts events from these source types in the mentioned connection modes:
| Source type | Connection mode |
|---|---|
android | cloud |
android_kotlin | cloud |
ios | cloud |
ios_swift | cloud |
web | cloud, device |
unity | cloud |
react_native | cloud |
flutter | cloud |
cordova | cloud |
cloud | cloud |
warehouse | cloud |
Only web offers device mode, which loads Iterable’s web SDK — recommended if you use Iterable’s web push notifications. See Iterable device mode.
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 Iterable 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 two 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 'iterable-prod' config has no 'connection_mode' entry for source type 'web'Iterable needs no additional config keys to connect a source of any type, in any mode. package_name is checked on the destination instead — see Web device mode.
Secrets
api_key and register_device_or_browser_api_key are the secret keys. Write each as a {{ .VAR }} reference and supply the value at apply time:
config:
api_key: "{{ .ITERABLE_API_KEY }}"
register_device_or_browser_api_key: "{{ .ITERABLE_MOBILE_WEB_KEY }}"export RUDDER_ITERABLE_API_KEY="..."
export RUDDER_ITERABLE_MOBILE_WEB_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.
See How to Use Variable Substitution in Rudder CLI.
Changes by release
| Version | Change |
|---|---|
| v0.29.0 | Breaking: A null config value, written as key: null, key: ~, or key: with no value, fails validate with '<key>' must not be null; set a value or remove the key. Earlier releases accepted it: a top-level null planned an update on every apply, and a null inside a list item failed at the API.What to do: Remove the key to leave it unset, or give it a value. |
| v0.29.0 | Breaking: An empty string, "", on a key that takes one of a fixed set of values fails validate with '<key>' must be one of [...], unless "" is one of the key’s values. Earlier releases accepted it, and the API rejected it at apply.What to do: Remove the key to leave it unset, or set one of the listed values. |
| v0.29.0 | Changed: validate warns when a secret key holds anything but one {{ .VAR }} reference with no default, and when one variable fills two secret keys. It also masks secret values in the lines it prints. |
| v0.29.0 | Changed: rudder-cli import writes each secret reference single-quoted, as '{{ .VAR }}', so a value containing double quotes, like a JSON key file, substitutes as a string. A single quote in a value that fills such a reference is written as ''.What to do: In a spec imported by an earlier release, quote each reference to a JSON value by hand: '{{ .VAR }}'. |
| v0.29.0 | Changed: validate reports a value of the wrong type once per key, such as 'email' must be a string, instead of one raw decoding error. |
| v0.28.0 | Added: warehouse source type, for destinations connected to a Reverse ETL source. Set connection_mode.warehouse: cloud for such a destination, or apply removes the entry. |
For changes across every destination type, see Destination Type Changes by Release.
See more
- Iterable Destination for the API key, web SDK, and Iterable catalogs
- Destination Type Reference for Rudder CLI for the rules shared across destination types
- Destination YAML Reference for the spec envelope