Hi,
I have created an access token using the below-mentioned link
https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/
When I use this access token along with confluence REST API to ge space data the error I receive is
{ "statusCode": 401,
"data": { "authorized": false, "valid": true, "errors": [], "successful": false },
"message":"com.atlassian.confluence.api.service.exceptions.AuthenticationRequiredException: Authentication is required"
}
below mentioned is request object
{
method: 'GET',
url: 'https://<domain>.atlassian.net/wiki/rest/api/space',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Bearer <access_token>'
}
}
Can some one please help me with this.
Try this
Create an API key: https://id.atlassian.com/manage/api-tokens#
Example from Postman:
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.