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
Hello,
I am trying to search code via API but for some reason it won't return code that is not in a public repository. I have tried repo:repo_slug, but it still won't return it. It will return however code in public repositories of the workspace.
I am using the same token on other routes, and never had that issue between public and private repository.
Example request : {{protocol}}://{{host}}/{{basePath}}workspaces/:workspace/search/code?search_query=repo:{uuid} SearchQuery
Hi @codec,
Could you please let me know what kind of access token you are using for authentication?
There is currently a limitation with workspace access tokens, that cannot be used for authentication with the code search endpoint:
It should be possible to search using basic auth with username and app password or with an OAuth access token.
Kind regards,
Theodora
PS : it would work with Basic Auth, but not with bearer, is that intended ?
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.