It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

404 with API token and 401 with Basic Auth when GET API call made through POSTMAN on JIRA cloud

Hi,

 

I have a JIRA cloud account and have issue created. Created a API token to test API though postman. 

Selected Authentication type as OAuth2.0 with the API Token, getting a 404 error. Also tried the same with Basic authentication getting error as 401. 

Below is the URL I used https://ranjith9960.atlassian.net/rest/api/3/issue/MAC-1.

When this is used in a browser able to see the response, not through post Man.

 

Can someone help on this?

1 answer

You are able to see in your browser because are logged on or has cookies, 

 

please make sure your are doing the step 2 and 3 on your headers 

  1. Generate an API Token for your Atlassian Account: https://id.atlassian.com/manage/api-tokens
  2. Build a string of the form user@example.com:api_token.
  3. Encode the string using base64.
  4. Supply an Authorization header with content Basic followed by the encoded string. For example, the string user:user encodes to dXNlcjp1c2Vy in base64

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

52 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you