Xcode cloud unable to connect to Bitbucket

Hi, I'm new here I have an app I have developed using Xcode with Swift. I'm trying to publish it to the App store and noticed a new option called Xcode cloud which will improve the process of rolling out new versions, which I'm anticipating there will be plenty of updates to come. When I try and start Xcode cloud it wants to connect to my Bitbucket cloud account and prompts for an Account and Password. No matter what I put into these fields I can't get it to authenticate. I've searched for support articles, but they simply say to specify your Account and Password, and they provide very little additional information.
Can anybody help me? Where is the "Account" supposed to come from? I assumed it was the email address I sign into Bitbucket with. Is that correct? Which "Password" are we supposed to use? I tried my regular password, however I have 2FA on this so I'm not sure how that was supposed to work. Later I tried setting up an API key in Bitbucket for my account, and I entered this in the "Password" field, but continued to get the message "Authentication failed".

Is this an Xcode cloud issue? Or a Bitbucket issue?

For troubleshooting steps, see Use a remote source control repository.

Xcode cloud unable to connect to Bitbucket
 
 
Q