I can not subscribe a user to my webhook via POST https://api.twitter.com/1.1/account_activity/all/XXXXXXXXXXX/subscriptions.json.
I get error 200 Forbidden.
I followed the docs and all steps and details are correct. There is clearly an issue on the Twitter side or docs.
Here is the screenshot of my POST request. https://schiocco.com/shared/2022-01-22_160348.jpg
Details:
-
I want to register myself to my webhook, I’m using the access token and secret token from my app page > Keys and tokens, I also tried to generate them via 3 steps auth process and I got same keys. I also tried to subscribe with another Twitter account and got the same issue.
-
I have elevated access
-
I was able to create the webhook without problems with the same auth details
-
My app has Read, Write, and Direct Messages permissions
Everything is correct according to the docs and I’m wasting a lot of time because the twitter docs are very incomplete and confusing. Very frustrating.
Can someone help me on this?
Thank you!
I don’t know. I do not use Node.js and I can not run such a code.
Anyway if it doesn’t work on Postman, it doesn’t work at all. No matter the code. This is confirmed also by the fact that creating a webhook and making other API calls via Postman work perfectly.
There is clearly an issue with Twitter credentials or app settings.
I found the issue. The docs are wrong. The correct URL is with your :env_name not with the webhook ID.
1 Like
Great!
It looks like it’s env name here too Premium Account Activity API | Docs | Twitter Developer Platform which page is the wrong one?
POST account_activity/webhooks/:webhook_id/subscriptions/all
Subscribes the provided application to all events for the provided user context for all message types. After activation, all events for the requesting user will be sent to the application’s webhook via POST request.
Subscriptions are currently limited based on your account configuration. If you have a need to add more subscriptions, please contact your account manager.
system
closed
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.