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

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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

Suggest an answer

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

Atlassian Community Events