The GET /2.0/user/workspaces endpoint returns 200 OK but with empty values when using OAuth 2.0 Client Credentials grant type (grant_type=client_credentials).
The same endpoint works correctly with Authorization Code grant and Basic Auth — returns all workspaces as expected.
Setup:
Background:We were previously using GET /2.0/workspaces with Client Credentials and it was returning all workspaces and repositories properly. After that endpoint was deprecated as part of the cross-workspace API sunset (April 14, 2026), we migrated to the recommended replacement GET /2.0/user/workspaces. However, this replacement does not work with Client Credentials grant type.
Questions:
GET /user/workspaces expected to work with Client Credentials?Welcome to the community.
Could you confirm if you're using consumer keys from a user account or from a workspace settings?
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see, unfortunately, that won't work because the consumer keys from the workspace settings does not tied to user account which can be used to get info by the API.
For that, I'd highly suggest using a bot account in order to run the API.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.