Webhook creation fail with {"code":32,"message":"Could not authenticate you."}

webhooks

#1

Hi,

i’m trying the new Account Activity API (beta), specifically the webhook system for direct messages management. Today my application for the beta API has been accepted.

I’ve tried the sample project suggested in the documentation (https://github.com/twitterdev/twitter-webhook-boilerplate-node) but it doesn’t work for me.
When i try to create a webhook with the sample:
https://github.com/twitterdev/twitter-webhook-boilerplate-node/blob/master/example_scripts/webhook_management/create-webhook-config.js
i’ve got the response
{“code”:32,“message”:“Could not authenticate you.”}

i was following this guide:
https://developer.twitter.com/en/docs/tutorials/customer-engagement-application-playbook
but i got stuck on the webhook creation.
i’ve checked the oath parameters (consumer_key, consumer_secret, token and token_secret)
i’ve checked the reachability of my webhook and it’s latency <1 second

i don’t have any other ideas.

any suggestion?