Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Access BitBubket Rest API via personal Access Token? Access Token Expired

I am trying to access several APIs through  personal access Token, for example I am doing this :

    curl -i -H "Authorization: Bearer <token>" -X GET https://api.git06.mycorp.com/2.0/repositories"

                                  or

curl -i -H "Authorization: Bearer <token>" -X GET https://api.bitbucket.org/2.0/repositories"

{"type": "error", "error": {"message": "Access token expired."}}

It says token expired.

   {"type": "error", "error": {"message": "Access token expired."}}
What should I do ?

 

1 comment

I see this is rather old and still unanswered, but I'll give it a try anyway… I get exactly the same error, even with just created Personal Access Token. I wonder it it is even possible to use PAT to access REST API… Cagan, have you somehow managed to solve this issue?

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,525 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you