REST API. Cannot retrieve Session key.
Hello folks,
I have a question concerning to Lithium REST API.
I try to login into the Lithium system using the following REST method:
authentication/sessions/current/id
I use the following parameters in the HTTP request:
- POST htttp method
- URL: http://%companyName%.stage.lithium.com/restapi/vc/authentication/sessions/current/id (I replace my company name on %companyName%)
- user.login
- user.password
And I get the following response:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<response status="success">
<value type="string"></value>
</response>
As you can see, the value tag doesn't contain any session key.
And I don't understand, why is it happen?
Hello,
It sounds like you need to login first and then use the call: http://community_ID_goes_here.lithium.com/restapi/vc/authentication/sessions/current/id
If you're not using SSO on the community, you can login using: http://community_ID_goes_here.lithium.com/restapi/vc/authentication/sessions/login/?user.login=username_goes_here&user.password=password_goes_here