Intercom Destination
Upsert contacts into Intercom via the API. Core connector — no extra install.
YAML Example
destination:
type: intercom
properties_template: |
{
"role": "user",
"email": "{{ row.email }}",
"name": "{{ row.name }}",
"custom_attributes": {"plan": "{{ row.plan }}"}
}
auth:
type: bearer
token_env: INTERCOM_TOKEN
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
type | "intercom" | — | Required |
properties_template | string | — | Jinja2 template rendering a JSON contact payload (see the Intercom contacts API). Required |
auth | AuthConfig | — | Authentication block (typically bearer). Required |
retry | RetryConfig | null | null | Per-destination override of sync.retry. |
Authentication
Create an access token in the Intercom Developer Hub (or use an app token):
export INTERCOM_TOKEN="dG9rZW4..."
auth:
type: bearer
token_env: INTERCOM_TOKEN
See rest-api.md for the full auth: block shapes (bearer / basic / api-key).
Match policy
Intercom supports all three sync.match_policy values from #757:
sync:
mode: upsert
match_policy: update_only # upsert (default) | update_only | create_only
destination:
type: intercom
properties_template: |
{
"external_id": "{{ row.customer_id }}",
"email": "{{ row.email }}",
"custom_attributes": {"health_score": {{ row.health_score }}}
}
auth:
type: bearer
token_env: INTERCOM_TOKEN
upsertcreates a contact, then follows Intercom's documented duplicate409response to update the existing contact by its Intercom ID.create_onlyuses the create endpoint but treats that duplicate response as a normal skip, so an existing contact is never overwritten.update_onlyupdates a rendered Intercomiddirectly. Withoutid, drt searches by the renderedexternal_idand/oremail; no match is skipped, while multiple matches fail instead of updating an arbitrary contact. Preferexternal_idbecause it is unique and stable.
Policy skips increment skipped and skipped_no_match; they are not row errors. The engine rejects match_policy with mode: replace or mirror. An update_only row that needs a search makes two API calls (search, then update), and each call passes through the destination's rate limiter.
Rate limiting
Vendor limit: commonly 1,000 requests/minute per workspace (~16/s) on the REST API; plan- and endpoint-dependent. drt applies no automatic cap here — set one explicitly:
destination:
type: intercom
rate_limit:
requests_per_second: 10
burst: 20 # optional: let idle time bank up to 20 requests
destination.rate_limit beats sync.rate_limit, which beats the default of 10/s.
The limiter is shared per workspace, identified by the access token, so several syncs writing to one workspace concurrently (drt run --threads 4) pace through one bucket instead of one bucket each. When they request different rates, the lowest wins for both.
Notes
- Core connector — no
pip installextras needed. properties_templatemust render valid JSON. Forupdate_only, include a non-emptyid,external_id, oremail; for create paths, include the identifier Intercom requires for that contact role.- Most rows make one API call.
update_onlymakes a search call first unless the payload includes Intercom'sid; usesync.rate_limitto respect Intercom's rate limits.