Hello Team,
I am very new to this platform, and I need some help.
As I learned from the Project Search API that I need permission to read the project (read:jira-work), Cloud ID, and API token.
I successfully add the scope

and successfully get API token and Cloud ID, I am trying to fetch all projects using the code below
fetch('https://api.atlassian.com/ex/jira/:cloudId:/rest/api/3/project/search',
{ method: 'GET',
headers: { 'Authorization': `Basic ${Buffer.from( 'email@example.com:<api_token>' ).toString('base64')}`,
'Accept': 'application/json' }
})
However, I am getting an error
{ code: 401, message: 'Unauthorized' }
Could anyone please help me