Workflows Zendesk Custom API Action Card GET Calls Not Working
Last Updated:
Overview
Zendesk API calls are not working properly when using the Zendesk Customer API Action card in Workflows with GET requests. It is possible to experience one of the following conditions:
- Timing out after over 700 seconds.
- Receiving one of the errors:
- 415 Unsupported Media Type
- 400 Bad Request
Applies To
- Workflows
- Zendesk connection - Custom API card
Cause
When creating the relative URL Input for the GET Request with the Custom API Action Card, .json is missing at the end of the URL, and/or the following header is not added:
"Accept: application/json"Solution
Adding .json to the end of the GET API call will allow the call to work properly (see the cURL example for each method). More details in Zendesk Developers - Groups.
-
Example:
- https://company.zendesk.com/api/v2/groups/3432.json (working)
- https://company.zendesk.com/api/v2/groups/3432 (this has an issue)
If the .json is at the end of the URL but a 400 Bad Request is the response received, then make sure to have the header added in the Custom API Action card:
"Accept: application/json"
-
NOTE: Requirement from Zendesk API Documentation: "You must set an
Accept: application/jsonheader on all requests"
