Skip to main content

Zendesk Destination

Upsert users or organizations into Zendesk Support.

YAML Example​

destination:
type: zendesk
subdomain_env: ZENDESK_SUBDOMAIN
email_env: ZENDESK_EMAIL
api_token_env: ZENDESK_API_TOKEN
object: user
id_field: zendesk_user_id
custom_fields_template: |
{
"health_score": "{{ row.health_score }}",
"plan": "{{ row.plan }}"
}

Configuration​

FieldTypeDefaultDescription
type"zendesk"-Required
subdomainstring | nullnullZendesk subdomain, such as acme for acme.zendesk.com
subdomain_envstring | nullnullEnv var containing the subdomain
emailstring | nullnullZendesk user email
email_envstring | nullnullEnv var containing the Zendesk user email
api_tokenstring | nullnullZendesk API token
api_token_envstring | nullnullEnv var containing the API token
objectuser|organizationuserZendesk object type to upsert
id_fieldstring | nullnullSource row field containing a Zendesk id
custom_fields_templatestring | nullnullJinja2 template that renders a JSON object of custom fields
retryRetryConfig | nullnullDestination-level retry override

Authentication​

Create an API token in Zendesk, then set:

export ZENDESK_SUBDOMAIN="acme"
export ZENDESK_EMAIL="admin@example.com"
export ZENDESK_API_TOKEN="..."

Common Patterns​

Upsert users by email or external ID:

destination:
type: zendesk
subdomain_env: ZENDESK_SUBDOMAIN
email_env: ZENDESK_EMAIL
api_token_env: ZENDESK_API_TOKEN
object: user

Rows are sent as Zendesk user objects. Include email, external_id, name, tags, phone, or any other Zendesk user fields in the source query.

Map a warehouse ID column to Zendesk id:

destination:
type: zendesk
subdomain_env: ZENDESK_SUBDOMAIN
email_env: ZENDESK_EMAIL
api_token_env: ZENDESK_API_TOKEN
object: organization
id_field: zendesk_organization_id

The source-only zendesk_organization_id column is copied to Zendesk id and removed from the outgoing payload.

Custom user fields:

destination:
type: zendesk
subdomain_env: ZENDESK_SUBDOMAIN
email_env: ZENDESK_EMAIL
api_token_env: ZENDESK_API_TOKEN
object: user
custom_fields_template: |
{
"plan_tier": "{{ row.plan }}",
"health_score": "{{ row.health_score }}"
}

For users, custom fields are attached as user_fields. For organizations, they are attached as organization_fields.

Rate limiting​

Vendor limit: commonly 700 requests/minute per account (plan-dependent). drt caps this destination at 11 req/s and will not exceed it even if you configure a higher number.

The limiter is shared per subdomain, so several syncs targeting the same Zendesk instance concurrently (drt run --threads 4) pace through one bucket instead of one bucket each.

Override to go lower than the cap:

destination:
type: zendesk
subdomain: mycompany
rate_limit:
requests_per_second: 5
burst: 10 # optional: let idle time bank up to 10 requests

destination.rate_limit beats sync.rate_limit, which beats the default of 10/s. When two syncs share a subdomain but request different rates, the lowest wins for both.

Notes​

  • User upserts use Zendesk's users/create_or_update_many endpoint in batches of 100.
  • Organization upserts use Zendesk's organizations/create_or_update endpoint per row.
  • drt caps the default request rate at 11 requests per second, below Zendesk's common 700 requests/minute account limit.
  • custom_fields_template must render a JSON object.