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.
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.