In web development, a webhook sends an HTTP request to a specified URL in response to an event -- in this case, when a trigger or automation fires in Zendesk Support. Web developers typically use webhooks to invoke behavior in another system. You can create what is, essentially, a webhook by combining a trigger or automation with an HTTP target in Zendesk Support.
Topics covered in this article:
About HTTP targets
You can create HTTP targets to build integrations with the services or with your back-end system. Examples:
- Alert your team in Slack when an urgent ticket is created
- Pass ticket details to your docs team in Asana after a ticket is resolved
- Notify your own backend service regarding an important ticket event
An HTTP target lets you pass information to third-party services and REST APIs that accept JSON, XML, or form-encoded content in HTTP requests. HTTP targets are used by automations and triggers in Zendesk Support when a ticket meets certain conditions. To learn more about targets, see Notifying external targets.
HTTP targets differ from URL targets. URL targets only support sending
information in URL parameters, such as
www.example.com?order=345. HTTP targets support
sending information in the request body of POST or PUT requests, a
requirement for many third-party services and open APIs. The following is a
You can use any of the available content placeholders to insert ticket data in the content.
For more information, see the Zendesk Support placeholder reference.
HTTP targets will not retry requests based on any response code returned by the target endpoint. The only scenario in which a HTTP target notification will retry is if a timeout error is received within 10 seconds of a request being made. This can happen up to a maximum of 21 times before the target is deactivated. See Avoiding timeout errors.
Creating an HTTP target
- In Admin Center, click the Apps and integrations icon () in the sidebar, then select Targets > Targets.
- Click add target.
- Select HTTP target.
- Configure the target to integrate with the third-party service.
- Save the target.
- Use the target in a trigger or automation. See Using targets in automations and triggers.
Debugging a target
If the target isn't working correctly, you can use the Target Failures tab in the API dashboard to check for problems with the request.
- In Admin Center, click the Apps and integrations icon () in the sidebar, then select APIs > Zendesk APIs.
- Select the Target Failures tab.
For more information, see Using the API dashboard.