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.
Hello,
Try to use api token instead of the password:
https://confluence.atlassian.com/cloud/api-tokens-938839638.html
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.