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
May I ask if you are using this API for development or just running normal client query ?
Thanks in Advance
Mohamed Megahed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.