Zendesk Integration With MuleSoft (Ticket Creation)

Author: Shubham Singh Panwar and Ashish Singh Chauhan

What is Zendesk?

Zendesk is a SAAS Product that is used for Customer Support, Sales, and Communications. In this blog, we are going to use Zendesk ticket-creating service.

Prerequisites for Integration in Mule
  • You must have all the credentials required for making the connection.

The credentials are – username, password, base URI and API version.

Steps For Integration In Mule

Step 1 – Create a demo project in Anypoint Studio

Go to Mule Palette → Search in exchange → Zendesk connector → Finish.

Step 2 – Create a configuration for the Zendesk connector in global elements

Note – For this demo, we are going to use connection type as basic authentication. You will get 2 more types of connection also.

Username – your email address which is used to create a Zendesk account

Password – your Zendesk account password

Base URI – replace {subdomain} with the name mentioned in the URL bar of the Zendesk dashboard

API version – v2

When you test the connection the first time it will fail like this →

For successful connection ->

Go to settings → Admin center → Apps and integrations → In the left corner select “zendesk api” → agree to the terms → get started → settings → password access → enable.

Do the test connection now and you will see a successful connection.

Step 3 →

a) Create a flow in MuleSoft. Add HTTP listener

Then in the transform message, add the following body for creating a ticket →

%dw 2.0

output application/json



"ticket": {

"subject": "Creating First Ticket in zendesk",

"comment": {

"body": "Hi Creating this ticket for Mulesoft demo application"




b) Add create ticket connector in flow and pass the payload set in Step 3.a in the payload section.

c) Hit the request from the postman and you will get a 200 success status code along with ticket details as a response.

Finally, go to Zendesk → Dashboard and you will see your ticket created with “Open” status.


  1. Zendesk API Docs →


  • Zendesk Developer Docs →


We use cookies on this site to enhance your user experience. For a complete overview of how we use cookies, please see our privacy policy.