Any API that I am using of Jira Cloud Rest platform, each one of them is giving error response of
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No I was using the access token generated from this curl ->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.