Use Basic Auth for servicedeskapi via Postman

Hi all, thanks for helping!

I’m trying to comment on a request via Postman

https://api.atlassian.com/ex/jira/{cloud-id}/rest/servicedeskapi/request/{request-id}/comment

Using basic Auth
Username: email
Password: API-token

I get the response:

{

“code”: 401,

“message”: “Unauthorized”

}

What permission should I check for the user?
What headers should I include (or make sure not to include)?

Hi @ChristopherCasares ,

For API calls using basic auth, try the URI in this format

https://your-domain.atlassian.net/rest/api/2/<resource-name>

For more information on authentication, kindly check this doc.

For permissions, the user should have add comments permission (see this API doc for more information).

Hope this helps.

Cheers,
Ian

1 Like