Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Rest API to get Workspace audit log

Leo Xie September 4, 2025

Dear community

Is there any rest api  to get bitbucekt cloud workspace audit log?

2 answers

1 vote
Kai Krause
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2025

Hi,

 

i think actually not directly. Bitbucket Cloud does not expose a public REST API for the workspace Audit log. 

 If you subscribe to Atlassian Guard and link your Bitbucket Cloud workspace to your Atlassian organization, Bitbucket events are included in the organization-level audit log.

Bitbucket Cloud audit log events | Bitbucket Cloud | Atlassian Support

BR
Kai

0 votes
Shwetha Suvarna
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2025

Hi @Leo Xie 

Thank you for reaching out...

The Audit logs available directly in the Bitbucket workspace do not currently offer exporting/API capabilities, we have a feature request BCLOUD-13176 for the same


If your domain is part
of an Atlassian organization that has an active Atlassian Guard subscription,

  • This enables the Bitbucket workspace to be linked to the org and take advantage of the improved audit logs centralized at the organization level.
  • which provides API, exporting, and searching capabilities.

To enable this option, an admin of the workspace will need to link this workspace to the org, following the steps below:

To link a Bitbucket workspace to your organization:

  1. Go to Atlassian Administration. Select your organization if you have more than one.
  2. Select Apps.
  3. Select More actions (•••).
  4. Select Link Bitbucket.
  5. Follow the prompts to finish linking your workspace. You can link one workspace at a time.

After the link is completed, you can access the audit logs for Bitbucket Cloud directly from your organization:

  1. Go to Atlassian Administration. Select your organization if you have more than one.
  2. Select Security > Audit log.

And they will also be available through the Organization API. You can find additional information, including the list of events that are part of the Audit logs, in the article below:

I hope this helps. 

Thanks
Shwetha Suvarna

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events