API call to add webhook fails. Is scope the problem?

I need to add an integration to a board via the API but it appears the API key I’ve created does not have the webhooks scope.
My query:
mutation {

create_webhook (board_id: xxxxxxxxxx, url: "https://www.webhooks.my-webhook/test", event: change_column_value) {

    id

    board_id

}

}

yields:

{

"data": {

    "create_webhook": null

},

"account_id": xxxxxxx

}

and does not create the webhook integration

Hello @ddarnell!

Thank you for reaching out!

If it was a scope issue, you would probably get a different error.

I believe your problem could lie in the URL. You have to use that URL to return the challenge back to our server. If our server does not get the challenge in return, you will get a null response.

You can read a little bit more about this here and here.

Please do let me know if this works for you!

Cheers,
-Matias

Hi,

You were of course correct. It’s working now.

Thanks!!!

Dave

image001.png

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.