The BWT Connection API connects a site to Bing Webmaster Tools by linking a Microsoft account to it. Once a site is connected, the BWT Site Readiness API can add the site to the Bing account, verify it with Bing, and submit its sitemap.
A site has at most one Bing Webmaster Tools connection, so no method takes a connection ID. The connection is resolved from the site the call is made on.
With the BWT Connection API, you can:
Connecting is a browser flow that's completed for you:
status is VALID.While the site has stored credentials (status VALID or INVALID), neither Get Connection nor Get Site Readiness reports when a new authorization finishes: Get Connection keeps reporting the stored credentials, and Get Site Readiness keeps using them until the new ones replace them. To re-authorize or replace the connected Microsoft account in a way you can follow, call Disconnect first, then connect as above. See Connect a site to Bing Webmaster Tools.
Each connect URL is single-use and expires after 2 hours, so request a fresh one for every attempt. Once the person opens it, they must finish on Bing within 10 minutes, in the same browser, while signed in to Wix as the user who called Get Connect URL. Stop polling when that window has passed: an abandoned attempt can keep reporting PENDING for up to 2 hours.
The connection belongs to the site, but it's owned by the Wix user who authorized it. Get Connection reports whether the current caller is that owner in ownedByCaller. It doesn't identify the connected Microsoft account.
ownedByCaller is meaningful only when status is VALID or INVALID. It's false for any caller without a Wix user identity, so a false value means the caller isn't the owner, not that a particular other Wix user is.
Re-authorizing with the same Microsoft account refreshes the stored credentials. Authorizing with a different Microsoft account replaces the connection. One Microsoft account can be connected to several sites, and each site is connected and disconnected separately.
It's important to note the following points before starting to code:
FAILED_PRECONDITION (SITE_NOT_PUBLISHED, DOMAIN_NOT_CONNECTED, or SITE_NOT_INDEXABLE).PERMISSION_DENIED. Any Wix user with SEO permissions can start a connection, not only the site owner.VALID. Get Site Readiness checks with Bing, and reports NOT_CONNECTED when Bing no longer accepts the stored credentials.Last updated: 25 October 2026