Webhook creation fails with 403 | Community
Skip to main content

Webhook creation fails with 403

  • April 26, 2023
  • 2 replies
  • 0 views

sakile

I am unable to register a webhook.

I do go though the oAuth flow, which completes successfully. But when trying to trigger the webhook creation endpoint, just like in the example I do end up with an 403 error where the response body does not contain any data that would give more information to why is this happening.

The documentation does not state any thing about this behaviour, or if it requires some additional configurations.

 

Doc reference: https://developer.zendesk.com/api-reference/webhooks/webhooks-api/webhooks/#create-or-clone-webhook

2 replies

Hi Sanel,
 
Are you using an OAuth token to authenticate your request to create the webhook?  If so, did you set the scope to give write access to all resources or write access to webhooks?

sakile
  • Author
  • April 28, 2023

Hey Christopher,

That seams to be it, the problem with scopes, after adding the webhook:write scope it worked out! Thanks!