This API allows you to Login to LiveEngage, as a user, using a username and password or as an application, using an API key. Once you login, a session token (Bearer) will be provided and can be used for relevant API calls.
This API provides endpoints for managing the User Session (User Login, Application Login, Logout and Refresh).
When using this API, it is recommended that you implement our Retry Policy and KeepAlive best practices
Use this method when you need to provide a programmatic way for users to access and manage a LiveEngage session such as customized agent workspace or hosting a LiveEngage user in an external app.
Using the User Login method, logged in users will be managed under the same restrictions as normal users in LiveEngage, including (for example) password expiration, concurrent conversations limits, skill groups and so on.
Using the User Login method, if your account has SSO enabled, this method will not be standalone and you will have to register the relevant user through your hub to provide LiveEngage with an SSO SAML assertion.
Use this method when you need to provide a programmatic way for applications to access and manage a LiveEngage session such as bots, virtual agents or any other app that needs to act as an agent in the LiveEngage.
- The Application Login method overcomes both issues detailed above with the User Login method, for example password expiration or SSO integration_**.
Retrieve your domain
Use the LivePerson Domain API to retrieve this information by providing the service name
Request URL Example
Choose your method of login
As a User
Use your LiveEngage username and password to login.
As an Application
Note: In order to login as an application, you first need to have the "User Type - Bot" feature activated. Please contact your account team before moving forward.
Follow these instructions, to create and use an API key. Select the "Agent Interactions" category and check the "User Login" API.
After checking the "User Login" API, you will be provided the following authentication details:
- App Key
- App Secret
- Access Token
- Access Token Secret
You will use these in the request body of this API.
Copy the generated app key to clipboard for future use.
Create a new user from within LiveEngage and set the user type to "Bot":
You will use the username value to login.
Select "App Key" from the Login Method dropdown:
Paste the app key you generated earlier into the app key field and finish creating the user (fill in all mandatory fields). Once done, click save at the top right.
You will use the Username field in the request body of this API
Use the authentication details from step 1 and username from step 4 to login.