The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

REST API

Ankit Gupta
November 1, 2023

I want to use this rest API endpoint to fetch all the projects , I am using this but not getting what to put in api_token . As i am not able to fetch the details 

fetch('https://your-domain.atlassian.net/rest/api/3/project/{projectIdOrKey}', { method: 'GET', headers: { 'Authorization': `Basic ${Buffer.from( 'email@example.com:<api_token>' ).toString('base64')}`, 'Accept': 'application/json' } })

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Marc -Devoteam-
Community Champion
November 1, 2023

HI @Ankit Gupta 

Welcome to the community.

Here you are able to find the documentation on how to create an API token.

API Token

More information on authentication in the API can be found here

Ankit Gupta
November 1, 2023

Thanks

Like Marc -Devoteam- likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events