Hi @Anuja Deshpande,
have you tried this:
https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=watcher=currentUser()
EDIT: Oh, this returns all pages the user is watching, not all spaces. I'm not sure whether you can actually get all watched spaces directly. But maybe you can use the result of this CQL, to gather all spaces that the current user is watching pages in and after that check all the spaces against the space watchers API. But then you could also probably just get all spaces and loop over them directly. Might even be faster, depending on the amount of spaces.
Cheers,
Sven
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.