Authentication Token doesn't work with bars API?

Problem

Summary

I’m testing calling Alpaca history bars by using the OAuth token:

https://data.alpaca.markets/v1/bars/minute?symbols=ATRA&start=2020-05-21T19:59:00+0000&end=2020-05-25T00:32:35+0000&limit=1000

but I receive this error:

code=401 message={"code":40110000,"message":"token is not authorized for this scope (Code = 40110000)"}

Anyone is familiar with this? it looks like Alpaca’s token authentication is good only to buy/sell/account-info.

Paper or Live Tradng?
Paper

Did you supply the headers for the GET call?
The headers should have the key & secret.
What library/language are you using?

That’s the point. With key/secret works, but with the OAuth2 token only account operations seem valid.

Ah, that could be the case. I don’t use OAuth2 at all in the AlpacaforR package, just the key/secret for all calls to ensure reliability. Sorry that didn’t help much.

I use the polygon api with my alpaca key. Works great for me plus they have more granular parameters when querying bars.

Hi all,
Thanks for all your responses. The OAuth token wasn’t able to work with the API, but the Alpaca team now is working on supporting it.