We recommend that you authenticate each route to ensure your route is secure and used only inside your Zendesk instance. You need to do the following:
1. Add an if statement to the top of your route(you can find a code snippet when creating a new route). For this case, we'll use the x-api-key header to check if the request has authentication.
2. Click on the Secrets menu and add a new secret. Name it API_KEY and give a value. Make sure to copy it somewhere, because you'll need it in the next step. Click the Create secret button.
3. Click on the button with the Zendesk icon to open the modal. Click the Open in Admin Center button. Then, click on the Edit button in the Actions menu. 4. Scroll down to the Authentication section. Select the API key option, specify x-api-key in the header name, and use the value you saved before. Click on the save button.
5. You can see that authentication is settled in the modal window. Now, you can test the webhook with a trigger and a test ticket.
Need help or want to learn more about Knots automations?
Feel free to reach out to us at support@knots.io or get in touch via our contact form.
Comments
0 comments
Please sign in to leave a comment.