Is it possible to use the API search endpoint with a workspace access token?

Olivier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2025

Hello,

I've been trying to use the API workspace search [1] endpoint to query our workspace.

This works fine when I use my username and an app password but won't work when using a workspace access token [2].

Are there known restrictions applying here?

I've tried it with a `repository` only scoped token as well as with a `account`, `project` and `repository` scoped token but neither would return any results.

I'd be grateful for any help.

Thank you

Olivier

 

1: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-other-operations/#api-workspaces-workspace-search-code-get

2: https://support.atlassian.com/bitbucket-cloud/docs/workspace-access-token-permissions/

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events