You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I created an atlassian account API token but get Access token expired when trying to access the bitbucket api (for bitbucket cloud). Using the auth header below.
Authorization: Bearer <access_token>
Hi @Mike Kauspedas,
Thank you for reaching out to the community.
When you generated an OAuth access token, would it be possible for you to confirm if you've generated it using one of the grant types mentioned in this documentation? - Use OAuth on Bitbucket Cloud
Also, if you'd like to generate an OAuth access token programmatically, you can use the CURL command below using Client Credentials Grant (4.4).
$ curl -X POST -u "client_id:secret" \ https://bitbucket.org/site/oauth2/access_token \ -d grant_type=client_credentials
Hope it helps and let me know how it goes.
Thanks for replying. I can generate the tokens but I want to know if I can use an atlassian account token. https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/