Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

/rest/api/2/project/search is not working with new basic Auth with PAT

Anupam Pandey
March 5, 2026

When i am using /rest/api/2/project/search to retrieve the list of projects from my Jira site, i am getting empty result even though there are visible projects in site, with basic auth with PAT with a new basic auth setup.
This used to work in past but broken recently. It is working fine with OAuth 3LO setup though.
Is this endpoint now end of life? Are other endpoints for importing issues, sprints and attachments also not going to work now?

2 answers

0 votes
Marc -Devoteam-
Community Champion
March 6, 2026

Hi @Anupam Pandey 

/rest/api/3/projects still works using a browser, provides the list of projects in the instance

That endpoint will deprecated in the future and https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get should then be used but this is till working.

How are you using this API endpoint?

Anupam Pandey
March 9, 2026

We are hitting REST endpoint /rest/api/2/project/search with PAT and basic Auth(username and API token), we are not hitting /rest/api/3/projects.

Marc -Devoteam-
Community Champion
March 10, 2026

Hi @Anupam Pandey 

Please start using the API  V3 endpoint, as I mentioned the V2 option is deprecated.

Anupam Pandey
March 11, 2026

Tried hitting the REST API v3 on my site https://agile-jira-integration.atlassian.net/rest/api/3/project/search through postman but it gave empty results:

Logs:-

{
"maxResults": 50,
"startAt": 0,
"total": 0,
"isLast": true,
"values": []
}

 

Marc -Devoteam-
Community Champion
March 11, 2026

Hi @Anupam Pandey 

use /rest/api/3/project what does this show?

use rest/api/3/project/search what does this show?

If nothing is shown, asre you having the right permissions on this Jira instance?

As you will need to have:

  1. Browse permission on each project
  2. Administrator permission on each project
  3. Jira Administrator permission
Anupam Pandey
March 11, 2026

Yeah, empty result still.
Verified the permissions, i am org admin
have the browse permission and role is set to admin for each project.

Marc -Devoteam-
Community Champion
March 12, 2026

Hi @Anupam Pandey 

Can you make other API calls and get results, like getting an issue?

If this is all not working, can you make a new personal token with all scopes, do you get the required infromation?

Anupam Pandey
March 12, 2026

With new API token for basic Auth(without scopes), it is working fine now.

Like Marc -Devoteam- likes this
Marc -Devoteam-
Community Champion
March 12, 2026

Hi @Anupam Pandey 

Please accept my answer if this helped you resolve your issue.

Donanate some kudos if you feel like doing so.

0 votes
Benjamin
Community Champion
March 5, 2026

HI @Anupam Pandey ,

 

This seems like the case. I also notice recently I could not get full list of objects. This impacts when you have large list of issues. You would need to keep pulling the next set by going through iterations in your script until you get to the very end. 

 

-Ben

Anupam Pandey
March 10, 2026

@Benjamin ,

In our case, we are not even getting a single project in the result. when testing the API directly.

Benjamin
Community Champion
March 11, 2026

gotcha. Are you using granular scopes? I 've notice that the scopes are become more broken down. Perhaps something is missing. If you are using classic scopes, then is should have been the same. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events