404 error code when try to get access token

Hello, I try to connect to Jira Cloud using OAuth2 3LO approach according to this guide
I can get authorization code but cannot exchange authorization code for access token, always get 404 error.

POST request and all params in body:

curl --location 'https://volhal.atlassian.net/oauth/token' \
--header 'Content-Type: application/json' \
--data '{
    "grant_type": "authorization_code",
    "client_id": "client_id_here",
    "client_secret": "client_secret_here",
    "code": "code_here",
    "redirect_uri": "https://localhost"


The URL given in that guide is https://auth.atlassian.com/oauth/token. It’s not a path on your site, as you have in your curl.

1 Like

Oh, yes, thank you! I believed it was kind of example path.