Hi,

Since the last year I was working with the Direct Message API and the Account Activity API but with the last update (deprecation) of some APIs my webhook stops to receive notifications.

I have tried to set it up again with the new version of the Account Activity API by using this request: https://api.twitter.com/1.1/account_activity/all/THE_ENVIRONMENT/webhooks.json but no matter what do I try to do I always get this message:

http status code: 403
Body response: {“errors”:[{“code”:200,“message”:“Forbidden.”}]}

I have had reset the tokens (Consumer key, Consumer secret, Access token and Access token secret).

But I continued getting this message.

Do I have re-apply to use this APIs here https://developer.twitter.com/en/apply?
What do I need to do before to re-configure my webhook?

Thanks and regards.

Hello @Lair_Ortega

If you already have a developer account, you don’t need to reapply.

It sounds like you might have been using the standard beta DM only version of the Account Activity API that was retired on August 16th. Please do continue to migrate over to the premium version of this API which is managed out of the developer portal.

Please make sure to check the following before your next request:

  1. Go to the ‘Dev Environments’ page in the developer portal and make sure you have a ‘Dev environment label’ and Twitter app attached to the Account Activity API.
  2. Make sure you are using the tokens that are associated with the Twitter app that you applied to the Account Activity API. All four of those tokens need to have ‘Read, write, and DM’ permissions.
  3. Make sure to replace THE_ENVIRONMENT in the URI listed in your post with the ‘Dev environment label’ that you selected in step 1.

Please let me know if this helps.

1 Like

Hi @LeBraat, sorry for the delay in my response, but i am still waiting for the answer to application for a developer account. Is there any thing i can do to do this process faster?

This is my app id: 12249734
This is the API key: xxxx

Thanks and regards

You need to have an approved developer account to access the premium version of the Account Activity API.

We are working through applications as quickly as possible. There is an existing topic on this subject. Please be patient.

You can learn more about the Account Activity API here.