Webhooks
This guide covers how to create, edit, and manage Zendesk webhooks at GitLab. Administrators should review the Administrator tasks section.
Technical Details
- Deployment type:
Ad-hoc- Note: Webhooks are currently managed manually in Zendesk (no sync repo yet)
Understanding webhooks
What are webhooks
As per Zendesk:
A webhook sends an HTTP request to a specified URL in response to an event, such as a trigger or automation firing in Zendesk Support. Web developers typically use webhooks to invoke behavior in another system.
Simplified, it is an HTTP request made to another system. These can be used for things such as GitLab issue creation, alerting Slack, etc.
Using a webhook in Zendesk
Webhooks are used exclusively by other items in Zendesk (usually Zendesk events, automations, and triggers). As such, you do not “directly” use them. You instead “indirectly” use them when the triggering object runs.
How we manage webhooks
We currently manage all webhooks within Zendesk itself.
Creating webhooks as a non-admin
For the creation of a webhook, please create a Feature Request issue (as it will require manual intervention by the Customer Support Operations team).
Editing webhooks as a non-admin
For the modification of a webhook, please create a Feature Request issue (as it will require manual intervention by the Customer Support Operations team).
Deleting webhooks as a non-admin
For the deletion of a webhook, please create a Feature Request issue (as it will require manual intervention by the Customer Support Operations team).
Administrator tasks
Note
- All sections in this section require
Administratorlevel access to Zendesk.
Viewing webhooks in Zendesk
- Navigate to the admin dashboard for the Zendesk instance
- Go to
Apps and integrations > Webhooks > Webhooks
You can click on the webhook’s name for more information.
Viewing logs for a webhook
To view the logs for a webhook:
- Go to the webhooks page
- Click on the name of the webhook you wish to view the logs for
- Click on the
Activitytab
From there, you can click the Invocation ID of an event to see more details.
Testing a webhook
To test a webhook:
- Go to the webhooks page
- Click on the name of the webhook you wish to view the logs for
- Click the
Actionslink at the top-right of the page - Click
Test Webhook - Enter the payload information (what exactly you use will vary based off the webhook itself)
- Click the
Send testbutton
Creating a webhook
Warning
- This should only be done if there is a corresponding request issue (Feature Request, Administrative, Bug, etc.). If one does not exist, you should first create one (and let it go through the standard process before working it).
- Remember just creating a webhook doesn’t mean it will be used.
To create a webhook in Zendesk:
- Go to the webhooks page
- Click the
Create webhookbutton at the top-right of the page - Select the type of webhook
- Events: Based off Zendesk events, such as user creation, organization modification, etc.
- Trigger or automation: Run via trigger or automation
- Click
Next(at the bottom-right of the page) - If making an
Eventstype webhook:- Select the event types to use
- Click
Next(at the bottom-right of the page)
- Enter the name of the webhook
- Enter a description for the webhook (optional)
- Enter an endpoint URL (i.e. where a payload is sent)
- Select the request method
- Select the request format
- Enter the type of authentication to use
- Enter any additional headers needed (up to 5)
- While optional, you will have the opportunity to test the webhook you are creating. You should do this to ensure it is going to work properly.
- Clicking the button will bring up the test prompt. See Testing a webhook for more information.
- Click
Create webhookbutton at the bottom-right of the page
Editing a webhook
Warning
- This should only be done if there is a corresponding request issue (Feature Request, Administrative, Bug, etc.). If one does not exist, you should first create one (and let it go through the standard process before working it).
- This can have many severe downstream impacts on objects using webhooks. Exercise caution when doing this.
To modify a webhook in Zendesk:
- Go to the webhooks page
- Click on the name of the webhook you wish to edit
- Click the
Actionslink at the top-right of the page - Click
Edit - Make the changes you need to make
- While optional, you will have the opportunity to test the webhook you are modifying. You should do this to ensure it is going to work properly.
- Clicking the button will bring up the test prompt. See Testing a webhook for more information.
- Click the
Updatebutton at the bottom-right of the page
Deactivating a webhook
Warning
- This should only be done if there is a corresponding request issue (Feature Request, Administrative, Bug, etc.). If one does not exist, you should first create one (and let it go through the standard process before working it).
- This can have many severe downstream impacts on objects using webhooks. Exercise caution when doing this.
To deactivate a webhook in Zendesk:
- Go to the webhooks page
- Click on the name of the webhook you wish to deactivate
- Click the
Actionslink at the top-right of the page - Click
Deactivate - Click
Deactivate webhookto confirm the deactivation
Deleting a webhook
Warning
- This should only be done if there is a corresponding request issue (Feature Request, Administrative, Bug, etc.). If one does not exist, you should first create one (and let it go through the standard process before working it).
To delete a webhook in Zendesk:
- Go to the webhooks page
- Click on the name of the webhook you wish to delete
- Click the
Actionslink at the top-right of the page - Click
Delete - Click
Delete webhookto confirm the deletion
Common issues and troubleshooting
This is a living section that will have items added to it as needed.
7d49549f)
