Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication error using REST API bearer token

G H Mahimaanvita
September 22, 2022

Hi. I am new to Atlassian.
I want to access the REST API from insomnia/postman like this:

1. url: `https://my-site.atlassian.net/rest/agile/1.0/board`
2. body: 
{
"filterId": 10040,
"name": "scrum board",
"location": {
"projectKeyOrId": "20000",
"type": "project"
},
"type": "scrum"
}
3. In the authorisation tab, I added the bearer token and entered the Atlassian api key. 
I am getting an unauthorised error. 
{
"message": "Client must be authenticated to access this resource.",
"status-code": 401
}

please help

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 7, 2017

Go to the project admin section of each project and read the permission scheme, looking for "administrate project".

The rule in there should say something like "Role: Admins".

Go to the people section of the project and add the group to the role.  (If it's not role:Admins, you'll have to work out what to do from there)

Suggest an answer

Log in or Sign up to answer