List of "Your spaces" via API

Sönke Heins
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!
June 20, 2024

Hello,
using the REST API, is there a way to get the spaces which are listed under "Your spaces" in confluence for a specified user using the API and a user ID?

Right now I'm thinking of a combination of using:

"https://{your-domain}/wiki/api/v2/spaces"

fetching all spaces in my domain and then using:

"https://{your-domain}/wiki/api/v2/spaces/{id}/permissions"

and filter out the response body.
But this won't give me the "Your spaces", right?
Atleast if I try to do these steps with my own user ID the response is empty but I definitely have some spaces with permissions under "Your spaces".

Is what I'm trying to do even possible with the REST API v2?

Thanks in advance!

1 answer

Suggest an answer

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

Atlassian Community Events