Zendesk
BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.
Overview
Section titled “Overview”PortPilot replicates tickets, users and satisfaction ratings from Zendesk Support. Tickets and users use Zendesk’s Incremental Export API, which is built for bulk sync: up to 1,000 records per request, and each sync resumes exactly where the previous one stopped.
Features
Section titled “Features”| Feature | Supported | Notes |
|---|---|---|
| Incremental sync | Partly | Tickets and users; satisfaction ratings are re-read every sync. |
| Captures deletes | Partly | Deleted tickets arrive with status deleted; other deletes aren't captured. |
| Custom fields | Partly | Custom ticket fields, inside custom_fields. |
| Table selection | Yes | Choose which tables to sync. |
| New columns added automatically | Yes | Columns that appear in the source are added to the destination table. |
| Re-sync | Yes | A full refresh re-reads every selected table. |
Before you connect
Section titled “Before you connect”- Use an admin account. Incremental exports need an admin; an agent only sees what their role allows. A dedicated admin user for integrations is easiest to audit.
- Enable token access and create an API token in Admin Center → Apps and integrations → APIs → Zendesk API. Copy the token; Zendesk shows it once.
- Note the email address of the account the token belongs to.
Connect
Section titled “Connect”In the app, go to Connectors → New connector → Zendesk and click Test connection after filling in:
| Field | Required | Default | Description |
|---|---|---|---|
subdomain |
Yes | — | Your Zendesk subdomain: the acme in acme.zendesk.com. |
email |
Yes | — | Email of the admin the API token belongs to. |
api_token |
Yes | — | Zendesk API token. Stored write-only in the data plane’s secret store. |
start_date |
No | all history | YYYY-MM-DD. The first sync starts here. |
Schema
Section titled “Schema”How the tables relate. Each arrow points from a column to the table it references. Only key, reference and cursor columns are shown; the data dictionary below has the rest.
erDiagram
users ||--o{ tickets : "requester_id"
users ||--o{ tickets : "submitter_id"
users ||--o{ tickets : "assignee_id"
tickets ||--o{ satisfaction_ratings : "ticket_id"
users ||--o{ satisfaction_ratings : "requester_id"
users ||--o{ satisfaction_ratings : "assignee_id"
tickets {
integer id PK
integer requester_id FK
integer submitter_id FK
integer assignee_id FK
string updated_at "cursor"
}
users {
integer id PK
string updated_at "cursor"
}
satisfaction_ratings {
integer id PK
integer ticket_id FK
integer requester_id FK
integer assignee_id FK
}
tickets
One row per ticket, including deleted ones.
| Column | Type | Description |
|---|---|---|
idPK | integer | Zendesk ID. |
subject | string | Subject line. |
description | string | First comment on the ticket. |
status | string | new, open, pending, hold, solved, closed or deleted. |
priority | string | urgent, high, normal or low. |
type | string | problem, incident, question or task. |
requester_id→ users.id | integer | User who requested the ticket. |
submitter_id→ users.id | integer | User who submitted it. |
assignee_id→ users.id | integer | Agent assigned to it. |
organization_id | integer | Requester's organization. |
group_id | integer | Assigned group. |
tags | string | Tags, as JSON text. |
custom_fields | string | Custom ticket fields as JSON text: [{id, value}]. |
via | string | Channel the ticket came from, as JSON text. |
created_at | string (datetime) | When it was created. |
updated_atcursor | string (datetime) | When it last changed. |
Main columns only. Other fields the source returns also land as columns.
users
One row per user: end users, agents and admins.
| Column | Type | Description |
|---|---|---|
idPK | integer | Zendesk ID. |
name | string | Name. |
email | string | Primary email. |
role | string | end-user, agent or admin. |
organization_id | integer | Default organization. |
active | boolean | False if the user was deleted. |
suspended | boolean | Whether the user is suspended. |
time_zone | string | User's time zone. |
created_at | string (datetime) | When it was created. |
updated_atcursor | string (datetime) | When it last changed. |
Main columns only. Other fields the source returns also land as columns.
satisfaction_ratings
One row per CSAT rating.
| Column | Type | Description |
|---|---|---|
idPK | integer | Zendesk ID. |
ticket_id→ tickets.id | integer | Rated ticket. |
requester_id→ users.id | integer | User who gave the rating. |
assignee_id→ users.id | integer | Agent assigned when rated. |
group_id | integer | Group assigned when rated. |
score | string | good, bad, offered or unoffered. |
comment | string | Requester's comment. |
created_at | string (datetime) | When it was created. |
updated_at | string (datetime) | When it last changed. |
Main columns only. Other fields the source returns also land as columns.
- Lists and objects (
tags,custom_fields,via, …) arrive as JSON text. - Organizations aren’t synced yet, so
organization_idhas no table to join to.
Sync behavior
Section titled “Sync behavior”- Tickets and users: the first sync exports everything from
start_date(or the start of your account). Each later sync resumes from the export cursor the previous sync ended on and upserts onid. - Satisfaction ratings are re-read in full on every sync (100 per page) and upserted.
- Deleted tickets are exported with
status = "deleted"and updated in place, so you can filter them out downstream.
Common gotchas
Section titled “Common gotchas”- Rate limit: about 10 export requests per minute. Large first syncs take a while (roughly
10,000 records a minute). When Zendesk rate-limits, PortPilot waits as Zendesk asks; if it
lasts, the run fails as
rate_limitedand retries on the next schedule. Zendesk’s High Volume API add-on raises the limit. - Not synced yet: organizations, ticket comments and audits, ticket metrics and custom objects.
- Agent tokens see less. A token belonging to an agent rather than an admin can return a partial set of tickets and users, or fail on exports.
- Recent changes can lag. Zendesk’s exports trail real time by about a minute, so a ticket updated just before a sync may arrive on the next one.