Forums

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

cURL Request API

Bryan Tito
Contributor
October 5, 2022

I'm trying to test this API request for my automation:

 

curl --request GET \

--url 'https://your-domain.atlassian.net/rest/servicedeskapi/request' \

--header 'Authorization: Bearer <access_token>' \

--header 'Accept: application/json'

 

I've added the domain and access token but I'm getting: 

"Client must be authenticated to access this resource.","status-code":401

1 answer

0 votes
Alex Koxaras _Relational_
Community Champion
November 15, 2022

Hi @Bryan Tito 

Just to be aligned: where did you generate the access token?

The message you are getting let's you know that you are not properly login. So I would look again at your credentials.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events