Hello,

I’m trying to use the asynchronous POST method to create some analytics jobs. However, every time I try to call the endpoint, I am getting a response with status code 431. I’m using proper OAuth 1.0 authentication and only passing in required parameters.

My request looks like this:
https://ads-api.twitter.com/5/stats/jobs/accounts/<account_id>?start_time=2019-05-13T07:00:00&end_time=2019-06-11T07:00:00&entity=ACCOUNT&entity_ids=<account_id>&granularity=DAY&metric_groups=ENGAGEMENT

I think I solved it by correctly negotiating a TLS 1.2 connection. I believe it was defaulting to 1.1. It’s been working for a bit now so I think anyone with a similar issue can solve it this way but I’ll come back if I have the problem again.

1 Like