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

RANJITH KUMAR November 9, 2019

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

0 votes
Manuel Bastardo Castellano
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 9, 2019

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
AUG Leaders

Atlassian Community Events