You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I feel like I'm missing something obvious, but... I'm trying to use the search endpoint in REST API but no matter the search terms, it always returns empty results.
I am able to list my content by doing a GET https://<my subdomain>.atlassian.net/wiki/rest/api/content
However when I try to use the search endpoint with any CQL query, I always get 0 results. For example:
GET https://<my subdomain>.atlassian.net/wiki/rest/api/search?cql=type=page
I tried this URL on our site and it worked as expected:
https://<my subdomain>.atlassian.net/wiki/rest/api/search?cql=type=page
If you open that URL in your browser while you are logged in, do you see a valid response?
Your GET request looks well-formed, otherwise you'd get some error. I'd think that maybe the user you're using to authenticate the request has no access to any content on the site?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.