Forums

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

Accessing project through an API call

Charles Ledda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2024

Hi,

I'm trying to access a project with https://{domain}.atlassian.net/rest/api/3/project/{projectKey} and it doesn't find it even though it was created in Jira.

I'm provided with the API key and the project key to find it and trying to hit it in postman. The output is, "No project could be found with key '{projectKey}'", so I'm assuming it works but just can't find it?

I'm using the "API Key" authorization in postman, assuming that's the correct way to authorize it.
My end goal is to get the project ID with this API call.
Thank you in advance!

1 answer

0 votes
Mayura Gautham
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 2024

Hey @Charles Ledda 

Good day!

API Keys are used to access the organization data and Tokens to access data from the products to which the user has access.

Basic auth requires API tokens.

In Postman Authorization, use Basic Auth.  For username, use your email address.  For the Password, use the API Token you generated from id.atlassian.com

I hope this helps :)

Charles Ledda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2024

Hi Mayura, thank you for the help! What if I'm only provided with the API Token and not the username. Is it still possible to get the project ID?

Mayura Gautham
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2024

Hey @Charles Ledda ,

You would have to generate the API Token by logging into id.atlassian.com, and the username is essential. You might be hit with 401 unauthorized error if you provide the wrong credentials.

Suggest an answer

Log in or Sign up to answer