Skip to main content

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​

FieldTypeDefaultDescription
type"intercom"—Required
properties_templatestring—Jinja2 template rendering a JSON contact payload (see the Intercom contacts API). Required
authAuthConfig—Authentication block (typically bearer). Required
retryRetryConfig | nullnullPer-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
  • upsert creates a contact, then follows Intercom's documented duplicate 409 response to update the existing contact by its Intercom ID.
  • create_only uses the create endpoint but treats that duplicate response as a normal skip, so an existing contact is never overwritten.
  • update_only updates a rendered Intercom id directly. Without id, drt searches by the rendered external_id and/or email; no match is skipped, while multiple matches fail instead of updating an arbitrary contact. Prefer external_id because 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 install extras needed.
  • properties_template must render valid JSON. For update_only, include a non-empty id, external_id, or email; for create paths, include the identifier Intercom requires for that contact role.
  • Most rows make one API call. update_only makes a search call first unless the payload includes Intercom's id; use sync.rate_limit to respect Intercom's rate limits.