Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "access_token": "YOUR_ACCESS_TOKEN",
    "expires_in": 300,
    "refresh_expires_in": 1800,
    "refresh_token": "YOUR_REFRESH_TOKEN",
    "token_type": "Bearer",
    "not-before-policy": 0,
    "session_state": "f4c9edf6-855c-4493-9da8-d0939269d0f5",
    "scope": "email profile"
}
  • The response should will contain:

    • access_token: the access token

    • expires_in: the expiration delay of the access token (in seconds)

    • refresh_token: the refresh token

    • refresh_expires_in: the expiration delay of the refresh token (in seconds)

...

Code Block
{
    "access_token": "YOUR_NEW_ACCESS_TOKEN",
    "expires_in": 300,
    "refresh_expires_in": 1800,
    "refresh_token": "YOUR_NEW_REFRESH_TOKEN",
    "token_type": "Bearer",
    "not-before-policy": 0,
    "session_state": "3b2a9f95-1521-4cf8-a3ac-36e1aa01c36c",
    "scope": "email profile"
}
  • The response should will contain:

    • access_token: the new access token

    • expires_in: the expiration delay of the new access token (in seconds)

    • refresh_token: the new refresh token

    • refresh_expires_in: the expiration delay of the new refresh token (in seconds)

  • If the refresh token has expired, you need to request a new access token using your credentials again.

...

  • Choose the endpoint you want to use.

  • Add a X-Base-URL header to your requests request containing the base URL of your Atlassian site (e.g. https://example.atlassian.net/wiki for a Confluence instance, https://example.atlassian.net for a Jira instance).

  • Add an Authorization header to your requests request containing the access token prefixed with Bearer (e.g. Bearer YOUR_ACCESS_TOKEN).

  • Send the request:

...