This is an authentication API, which can be used by customers to log in to the application. Once authenticated, the customers can access Interaction APIs as well as Access APIs using the same session ID that is returned as part of the authentication.
Session ID, once expired, cannot be used again and a new session ID can be created by using this API.
15.0.2
| Method | URL | Description |
|---|---|---|
| POST | /ws/v15/context/authentication/user/login | Authenticates customers logging into the application. |
Each of the below licenses will be consumed as part of this API. Hence, these must be installed and available for consumption:
| Name | Description | Allowed values | Default value |
|---|---|---|---|
| Content-Type | Media type sent by the client. | application/xml or application/json or multipart/form-data | N/A |
| Accept | Content type accepted by the client. | application/xml or application/json | N/A |
| Accept-Language | Language locale accepted by client (used for locale specific fields in resource representation and in error responses) | Supported 'Accept-Language' header codes | default system language |
The request body is mandatory. Request body can be in either XML or JSON format.
| Name | Description |
|---|---|
| userName | Login ID of the customer |
| password | Password corresponding to the login ID |
None
| Name | Description |
|---|---|
| forceLogin | This is an optional query parameter. The only possible value is "yes". In the application, a maximum of 5 concurrent sessions are allowed for a customer. The sixth request will fail, unless this parameter is sent along with the request. If this parameter is sent by the client, the earliest session is terminated and a new session is created. |
None
| Name | Description | Possible values |
|---|---|---|
| X-egain-session | Newly generated session ID | N/A |
| Content-Type | Media type of response body | application/xml or application/json |
204 - No Content
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal server error
Example 1 - Login a customer
Example 2 - Login a customer with forceLogin query parameter