Any API that I am using of Jira Cloud Rest platform, each one of them is giving error response of
Hello @Sahil Anower
Welcome to Atlassian Community!!!
If you get the same error on all the endpoints, could you please confirm you're using a valid email and token to authenticate?
As mentioned in Basic auth for REST APIs, basic authentication with password is not accepted so you will need to use an email:token pair to authenticate.
See the Atlassian Cloud Support API tokens article to discover how to generate an API token.
No I was using the access token generated from this curl ->
Hi @Sahil Anower
Your grant_type should be the "authorization_code" and you need the code generated from the redirect_url to authenticate this initial request to the OAuth token resource provided by Atlassian. Probably you should take another look into the OAuth flow so you know exactly where you should change in your script.
It looks like you're new here. Sign in or register to get started.