REST API not returning any response

Pratibha Singh August 12, 2019

I'm trying to create a login session using the REST API with the /rest/auth/1/session POST method. It always returns me a 401 unauthorized while doing Basic authentication. I have also tried json method but its not returning any response. 

{ "username": "myuser", "password": "mypassword" }

 Please help. 

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
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 Leaders.
August 12, 2019

Hello,

Try to use api token instead of the password:

https://confluence.atlassian.com/cloud/api-tokens-938839638.html

Pratibha Singh August 15, 2019

Thanks Alexey. I have tried the same approach as suggested by you. Now i am getting 403 Login Denied. Could you please suggest how i can successfully login via API.

Suggest an answer

Log in or Sign up to answer