Webhook Registration Failed, throwing an erro "code": 32, "message": "Could not authenticate you."


#1

Team,

I’m new to Twitter API. WhnI try to register webhook using POSTMAN, getting below error

{
“errors”: [
{
“code”: 32,
“message”: “Could not authenticate you.”
}
]
}

When I contacted twitter team they says ‘you have access to our 30 Day and Full Archive Search API, not our account activity API

Can someone please help me to how to activate this account activity API. Which link i need to reach for this activation.


#2

Team,
Please let me know you need any screenshots from POSTMAN. I can share here. Basically this issue is Account activity API not activated.

I want to use the Standard beta Account Activity API (Account Activity) using webhook.
I have submitted an request form with the reason I want to use it.

There are only “Search Tweets: 30-Days / Sandbox” and “Search Tweets: Full Archive / Sandbox” on the dashboard.

here is my App details
App ID: 14673527
App Name: ChiragTestApp

Owner : Chirag24624560|
Owner ID : 951058559025930240|

Can you pelase confirm whether my application is whitelisted. Also steps to activate the account activity API


#3

Hello @Chirag24624560,

We have received your request. We will be in contact when we get the chance to review your submission. If approved, we will email you with more details.

Thanks,
Dan


#4

Thank you so much.

Can i upgrade to premium account. Since many days i’m trying to solve this problem and no luck so far. Please Advice


#5

Can you please elaborate as to what you mean by ‘Can i upgrade to premium account?’ For example, what product would you like to upgrade and to what tier of access?


#6

Actually wanted to use Account Activity API. but my account is showing Search Tweet 30 days and Search Archive. Can i use Premium account instead of ‘sandbox’ and start use Account Activity API.

Might be I’m wrong the way i asked the above question to use Account activity API. In simple ,
Just want to know how to use Account activity API. Is there anything pending from my side to submit to get account Activity API Registration.


#7

Hello @Chirag24624560,

I recommend that you read through our FAQs on this page. It will help to answer many of your questions about our current offerings:
https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/overview

We did receive your application to use the Standard beta Account Activity API, but it sounds like you haven’t been approved yet. We ask that you please be patient as we review applications. You will receive an email from a member on my team if and when you are approved, at which time you can start to use the API.

Thanks,
Dan


#8

sagar_0707
I am registering my URL using below URL

Request URL: account_activity/all/env-beta/webhooks
Response: {“errors”:[{“code”:214,“message”:“Webhook URL does not meet the requirements. Please consult: https://dev.twitter.com/webhooks/securing”}]}

When I change the URL just for Direct Message

Request URL: account_activity/webhooks
Response: {“errors”:[{“code”:32,“message”:“Could not authenticate you.”}]}

URL: https://vatwitter.herokuapp.com/webhook
Encoded URL: https%3A%2F%2Fvatwitter.herokuapp.com%2Fwebhook


#9

Hello @sagar_0707,

Have you been whitelisted to use the Standard beta Account Activity API yet?

If you have, I recommend that you try using our Account Activity Dashboard to get set up with the API: https://github.com/twitterdev/account-activity-dashboard


#10

Hello Twitter,

When i will get Standard beta Account activity API?


#11

Hi LeBraat,
Below is my App information. I have been given the access

Owner: sagar_0707
Owner ID: 965527548955213824
App Name: Virtual Assistant India

In addition, I am using TwitterAPI module for python below is the snippet
ENVNAME = 'env-beta’
WEBHOOK_URL =urllib.quote_plus(“https://vatwitter.herokuapp.com/webhook”)
twitterAPI = TwitterAPI(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)

r = twitterAPI.request(‘account_activity/all/:%s/webhooks’% ENVNAME , {‘url’:WEBHOOK_URL})

Cheers,
Sagar


#12

Hello Sagar
Are you using Account Activity API ? to communicate


#13

Yeah


#14

Sagar,

Can you help me to register Webhook from POSTMAN tool.


#15

Sure I can try …


#16

Sagar,
I have few queries., How to check account Activity API is Activated ? Is there anywhere in the Application dashboard i can see this activation.
How to Register Webhook ?, I’m getting below error
{
“errors”: [
{
“code”: 32,
“message”: “Could not authenticate you.”
}
]
}


#17

Hi Chirag,

If you have applied for the Beta you would have got the confirmation mail from twitter stating:

Your Twitter developer account application has been approved!

Also, in the same mail, they have mentioned the App ID which has the access and Env name which will be used in end URL

If you still have doubt you can ask Twitter staff with the App ID they can let you know

Let me know the end URL that you are using

Cheers,
Sagar


#18

Sagar,

here is my end-url : https://demo.tetherfi.com:55443/Tetherfi_Messenger/api/Twitter
App Id : 14673527


#19

Sorry I meant the Twitter end URL


#20

https://api.twitter.com/1.1/account_activity/webhooks.json?url=https://demo.tetherfi.com:55443/Tetherfi_Messenger/api/Twitter