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
Is there a way to automatically (or programmatically) accept invitations to new repositories?
I would like people to be able to add a given Bitbucket user to their repository, so that my service can access the source code via this account, and publish the releases to an application store.
On GitHub, I can access the list of invitations via an API call, and accept them via another.
For my use case, the ideal would be a checkbox on my user profile (such as Automatically accept all repository invitations), or similar API calls, but I could find neither (yet).
A similar question has already been asked two years ago, but still has no answers.
Thank you for contacting Atlassian Support, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community.
Unfortunately it's not possible to accept the invitations via the website or via API, the only way to accept invitation is via email.
Currently we have a feature request for this as you can see in the link below:
Our development team will give a first-hand update on that ticket if there's any progress made so I would suggest keeping a watch and vote for it.
Do note however that there's no ETA on enhancement request, and all enhancements are implemented with this policy in mind: Implementation of New Features Policy
Please let us know if you need any further assistance.
Atlassian Bitbucket Cloud Support
Welcome to the Community!!
There is no API at the moment!!
Earlier endpoints are deprecated (https://support.atlassian.com/bitbucket-cloud/docs/invitations-endpoint)
Please check with Atlassian Support on what they are really doing with APIs
Here's the last update from them on the same
I have seen the 1.0 invitations endpoint, but from what I have understood it only manages the invitations from the inviter's point of view, and only in order to create new invitations via a POST.
I have tried to invite a user, and the `GET /1.0/invitations` returns an empty JSON array for both the inviter and the invitee, so I guess that I cannot use this.
Thank you for your answer, though :)