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
| Field | Type | Default | Description |
|---|---|---|---|
type | "zendesk" | - | Required |
subdomain | string | null | null | Zendesk subdomain, such as acme for acme.zendesk.com |
subdomain_env | string | null | null | Env var containing the subdomain |
email | string | null | null | Zendesk user email |
email_env | string | null | null | Env var containing the Zendesk user email |
api_token | string | null | null | Zendesk API token |
api_token_env | string | null | null | Env var containing the API token |
object | user|organization | user | Zendesk object type to upsert |
id_field | string | null | null | Source row field containing a Zendesk id |
custom_fields_template | string | null | null | Jinja2 template that renders a JSON object of custom fields |
retry | RetryConfig | null | null | Destination-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_manyendpoint in batches of 100. - Organization upserts use Zendesk's
organizations/create_or_updateendpoint per row. - drt caps the default request rate at 11 requests per second, below Zendesk's common 700 requests/minute account limit.
custom_fields_templatemust render a JSON object.