Skip to main content
Question

Create Webhook failed

  • November 19, 2024
  • 2 replies
  • 205 views

 

I want to create a webhook that listens to all the events associated with my organization. Below is my request object.

var requestBody = new WebhookSubscriptionRequest
{
    url = "https://00f9-2001-ee1-df19-e6e0-a953-99e6-1ea6-928c.ngrok-free.app/Calendly/Callback",
    events = new string[] { "invitee.created", "invitee.canceled" },
    scope = "organization",
    organization = orgUrl,
    signing_key = "ABC",
};

 

Then I got this error:
 

 

But in the document, it looks like the group and user parameters are optional. Am I missing something?

2 replies

  • New Community Member
  • November 19, 2024

Are you able to share the source code of your WebhookSubscriptionRequest class? I wasn’t able to reproduce this error when creating the webhook from the UI. It might be that when the WebhookSubscriptionRequest is serialized it is removing the organization scope param.


  • Author
  • Community Member
  • November 19, 2024

Thanks for your response. Actually, I tried to use the functions on the UI of API documentation and it worked well.