Zoho Desk is a cloud-based help desk solution from Zoho Corporation, catering to businesses of all sizes. Key features include management of customer support tickets, a customer support portal, contract management and report creation.
First, create a ZohoDesk application
Login into your ZohoDesk Developer Portal and click "Get Started"
Choose a "Self Client" and click "CREATE NOW"
On the "Client Secret" tab, copy your "Client ID" and "Client Secret" to a text editor
Click "Generate Code"
Choose the appropriate scope, time duration and give the token a description, then click "Create"
Select the appropriate "Portal" and "Organization", then click "Create"
Copy your code to a text editor
Lastly, create ZohoDesk credentials in Tines
Login to your Tines tenant
Create a new story
Paste the below curl command onto your storyboard and replace the values for
client_id
,client_secret
andcode
with your "Client ID", "Client Secret" and "Code"
curl -v \
-X POST \
--location \
"https://accounts.zoho.eu/oauth/v2/token" \
-H 'Content-Type: form' \
-d 'code=code&grant_type=authorization_code&client_id=clientid&client_secret=client%20secret&redirect_uri=https%3A%2F%2Fwww.tines.com'Run the action and copy the value for the
refresh_token
key to a text editor
You will need to create three credentials:
Two Text type: "zohodesk_client_id" and "zohodesk_client_secret"
One HTTP request type: "zohodesk"
Text type
Navigate to the team that will be using the API and click "Credentials"
Click "+ New Credential" and select "Text"
Input the values for the ZohoDesk credential
Name: zohodesk_client_id
Description: Optional
Value: Your Client ID
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains.
Access: What other teams can also use the API
Click "Save"
Click "+ New Credential" and select "Text"
Input the values for the ZohoDesk credential
Name: zohodesk_client_secret
Description: Optional
Value: Your Client secret
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains.
Access: What other teams can also use the API
Click "Save"
HTTP request type
Click "+ New Credential" and select "HTTP Request"
Input the values for the ZohoDesk credential
Name: ZohoDesk
Description: Optional
URL:
https://accounts.zoho.eu/oauth/v2/token
Content Type: Form
Method: post
Payload: Copy the below object and paste into the "Plain code" section:
{
"refresh_token": "<<your refresh token>>",
"client_id": "<<CREDENTIAL.zohodesk_client_id>>",
"client_secret": "<<CREDENTIAL.zohodesk_client_secret>>",
"scope": "Desk.tickets.ALL",
"redirect_uri": "https://www.tines.com",
"grant_type": "refresh_token"
}Headers:
"orgId":"<<your org ID>>"
Click "Save and run request", navigate to the
access_token
key and double click on the keyLocation of token from response: Paste the path to the token in the value pill,
zohodesk.body.access_token
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains
Access: What other teams can also use the API
Click "Save"
Your credential should look like the following:
More on creating credentials in Tines here.
You can also find a selection of ZohoDesk stories in the story library.