Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Go to siteThe Zendesk API enables seamless integration of Zendesk's customer service platform with your existing business processes and third-party applications. By leveraging this API with Pipedream, you can automate ticket tracking, sync customer data, escalate issues, and streamline communication across multiple channels. This can significantly increase efficiency, accelerate response times, and enhance the overall customer experience. Automations can range from simple notifications to complex workflows involving data transformation and multi-step actions across various services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zendesk: {
type: "app",
app: "zendesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.zendesk.$auth.subdomain}.zendesk.com/api/v2/users/me/`,
headers: {
Authorization: `Bearer ${this.zendesk.$auth.oauth_access_token}`,
},
})
},
})
Ticket Management Automation Automatically create Zendesk tickets from emails, chat messages, or form submissions captured in other apps like Gmail or Slack. Use Pipedream to parse the incoming information and create a ticket in Zendesk with the appropriate tags, priorities, and assignments.
Customer Feedback Loop After a ticket is resolved, trigger a workflow to send a follow-up survey using a platform like Typeform. Record responses back in Zendesk to ensure customer feedback influences service quality. An automated workflow could tag the ticket with the feedback score or add notes for support agents.
Real-Time Notifications for Critical Issues Set up a Pipedream workflow that monitors Zendesk for tickets with 'Urgent' priority or specific keywords and sends instant notifications to a dedicated Slack channel or via SMS through Twilio. This ensures that critical issues are promptly addressed by support teams.
First, log in to your Pipedream workspace, then connect Zendesk either through a step or trigger in a workflow, or directly from the Connected Accounts page in Pipedream.
You'll first be prompted to enter your Zendesk subdomain. You can find this in the URL after logging into Zendesk.
The subdomain is the portion of the URL before zendesk.com
.
For example, if the subdomain is pipedream1903
, that's what you would enter in Pipedream.
Next, you'll be prompted to connect your Zendesk account. Zendesk will ask if you'd like to grant Pipedream permission to perform actions on your account; accept these permissions to continue.
And that's it! You can now automate Zendesk actions from within Pipedream workflows.
Emit new event when a ticket is added to the specified view
Emit new event when a ticket has changed to closed status
Emit new event when a ticket has changed to pending status
Emit new event when a ticket has changed to solved status
Responses may have the status codes described in the following sections.
The request was successful. The status is 200 for successful GET and PUT requests, 201 for most POST requests, and 204 for DELETE requests.
The request was not successful. The content type of the response may be text/plain for API-level error messages such as trying to call the API without SSL. The content type is application/json for business-level error messages because the response includes a JSON object with information about the error:
{
"details": {
"value": [
{
"type": "blank",
"description": "can't be blank"
},
{
"type": "invalid",
"description": " is not properly formatted"
}
]
},
"description": "RecordValidation errors",
"error": "RecordInvalid"
}
If you see a response from a known endpoint that looks like plain text, you probably made a syntax error in your request. This type of response commonly occurs when making a request to a nonexistent Zendesk Support instance.
A 403 response means the server has determined the user or the account doesn’t have the required permissions to use the API.
A 409 response indicates a conflict with the resource you're trying to create or update.
409 errors typically occur when two or more requests try to create or change the same resource simultaneously. While Zendesk APIs can handle concurrent requests, requests shouldn't change the same resource at the same time. To avoid 409 errors, serialize requests when possible. If you receive a 409 error, you can retry your request after resolving the conflict.
The Zendesk Ticketing API provides specific parameters to prevent conflicts when updating tickets. For more information, see Protecting against ticket update collisions.
A 422 response means that the content type and the syntax of the request entity are correct, but the content itself is not processable by the server. This is usually due to the request entity not being relevant to the resource that it's trying to create or update. Example: Trying to close a ticket that's already closed.
A 429 error indicates that a usage limit has been exceeded. See the Zendesk Rate limits.
If you ever experience responses with status codes in the 500 range, the Zendesk API may be experiencing internal issues or having a scheduled maintenance during which you might receive a 503 Service Unavailable status code.
A 503 response with a Retry-After
header indicates a database timeout or deadlock. You can retry your request after the number of seconds specified in the Retry-After
header.
If the 503 response doesn't have a Retry-After header, Zendesk Support may be experiencing internal issues or undergoing scheduled maintenance. In such cases, check @zendeskops
and our status page for any known issues.
When building an API client, we recommend treating any 500 status codes as a warning or temporary state. However, if the status persists and if Zendesk doesn't have a publicly announced maintenance or service disruption, contact the Zendesk Customer Support.
If submitting a ticket to Zendesk, provide the X-Zendesk-Request-Id
header included in the HTTP response. This helps the Support team track down the request in the logs more quickly.
Zendesk uses OAuth authentication. When you connect your Zendesk account, Pipedream will open a popup window where you can sign into Zendesk and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zendesk API.
Pipedream requests the following authorization scopes when you connect your account:
triggers:write
webhooks:write
read
tickets:write
tickets:read
users:write
organizations:read
organizations:write
GET
https://{{custom_fields.subdomain}}.zendesk.com/oauth/authorizations/new
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://{{custom_fields.subdomain}}.zendesk.com/oauth/tokens
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}