ToolJet/docs/versioned_docs/version-3.16.0-LTS/data-sources/zendesk.md

137 lines
4.2 KiB
Markdown
Raw Normal View History

2025-08-04 06:49:49 +00:00
---
id: zendesk
title: Zendesk
---
ToolJet can connect to Zendesk APIs to read and write data using OAuth 2.0, which helps us to limit an application's access to a user's account.
## Connection
To establish a connection with the Zendesk data source, you can either click on the **+ Add new Data source** button located on the query panel or navigate to the **[Data Sources](/docs/data-sources/overview)** page from the ToolJet dashboard and choose Zendesk as the data source.
ToolJet connects to your Zendesk app using :
- **Zendesk Sub-domain**
- **Client ID**
- **Client Secret**
### Authorization Scopes
You can create a Zendesk data source with one of either of the two permission scopes :
- **Read Only**
- **Read and Write**
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/connection-v3.png" alt="ToolJet - Data source - Zendesk" />
2025-08-04 06:49:49 +00:00
:::info
You must first be a verified user to make Zendesk API requests. This is configured in the Admin Center interface in **Apps and integrations > APIs > Zendesk APIs.** For more information, see Security and Authentication in the [Zendesk Support API reference](https://developer.zendesk.com/api-reference/ticketing/introduction/#security-and-authentication) or [check out Zendesk's docs](https://support.zendesk.com/hc/en-us/articles/4408845965210).
:::
## Querying Zendesk
1. Click on **+ Add** button of the query manager at the bottom panel of the editor.
2. Select the **Zendesk** datasource added in previous step.
3. Select the desired operation and enter the required parameters.
4. Click on the **Preview** button to preview the output or Click on the **Run** button to trigger the query.
## Supported Operations
- **[List Tickets](#list-tickets)**
- **[List requested Tickets](#list-requested-tickets)**
- **[Show a Ticket](#show-tickets)**
- **[Update a Ticket](#update-tickets)**
- **[List Users](#list-users)**
- **[Get User](#get-user)**
- **[Get Profile](#get-profile)**
2025-08-04 06:49:49 +00:00
- **[Search](#search)**
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/listops.png" alt="Zendesk supported operations" style={{marginBottom:'15px'}} />
2025-08-04 06:49:49 +00:00
### List Tickets
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
Lists all the tickets in your Zendesk account.
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/list-tickets-query.png" alt="Zendesk list query" />
2025-08-04 06:49:49 +00:00
### List Requested Tickets
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
Lists all the tickets requested by the user.
#### Required Parameter
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
- **User ID**
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/list-req-query.png" alt="Zendesk list query" />
2025-08-04 06:49:49 +00:00
### Show Tickets
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
Gets a ticket's properties with the given ID, though not the ticket comments.
#### Required Parameter
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
- **Ticket ID**
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/show-query.png" alt="Zendesk show query" />
2025-08-04 06:49:49 +00:00
### Update Tickets
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
Updates a ticket's properties with the given ID.
#### Required Parameter
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
- **Ticket ID**
- **Body**
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/update-query.png" alt="Zendesk update query" />
#### Example:
```yaml
{
"ticket" : {
"status" : "solved"
}
}
```
2025-08-04 06:49:49 +00:00
### List Users
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
Lists all the users in your Zendesk account.
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/list-users-query.png" alt="Zendesk list query" />
2025-08-04 06:49:49 +00:00
### Get User
2026-02-12 09:24:04 +00:00
Gets a user's information with the given ID.
#### Required Parameter
2026-02-12 09:24:04 +00:00
- **User ID**
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/get-query.png" alt="Zendesk get query" />
### Get Profile
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
Gets a user's profile with the given ID.
#### Required Parameter
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
- **User ID**
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/get-profile-query.png" alt="Zendesk get query" />
2025-08-04 06:49:49 +00:00
### Search
The Search Query uses Zendesk's Search API to return tickets, users, and organizations with defined filters.
#### Required Parameter
2026-02-12 09:24:04 +00:00
2025-08-04 06:49:49 +00:00
- **Query**
Common filters include:
- `type:ticket`
- `type:user`
- `type:organization`
- `type:ticket organization:12345 status:open`
2026-02-12 09:24:04 +00:00
<img className="screenshot-full img-full" src="/img/datasource-reference/zendesk/search-query.png" alt="Zendesk search query" />