BAR api with OAuth Token?

Hi guys, does BAR (v1) API accept the OAuth token? I’m trying to call this API

https://data.alpaca.markets/v1/bars/%s?symbols=XXX&start=XXX&end=XXXX&limit=1000

by using this in the header Authorization: Bearer XXXXX

but I always get unauthorized. The same authorization works with the account API.

Is there a V2 api for BARS somewhere that I’ve missed? (edited)

Alpaca helped me on this, the token was missing the ‘data’ tag. Added and works.