- DarkLight
Login API
- DarkLight
The Login API allows an Agent to log in to the CTI server of Acqueon Workspace . If the response is successful, the agent is signed into the Softphone and is automatically placed in agent state set before logout.
Pre-requisite
The agent must be in the LoggedOut state.
Sequence Diagram
Message Structure
Request Parameters | Value |
---|---|
channel | Amazon |
topic | Agent |
subtopic | Login |
source | «app-name-broadcasting-this-message» |
Response Parameters | Value |
---|---|
channel | Amazon |
topic | Agent |
subtopic | LoginSuccess |
message | JSON Object |
Message Parameters
Parameters | Data Type | Description | Example Data |
---|---|---|---|
loginState | Enum | Login state of agent. Possible values: Refer AgentLoginState in Appendix. | LoggedOut |
agentInfo | JSON Object | User details of agent. Refer AgentInfo in Appendix. | NA |
agentState | JSON Object | Current state of agent. Refer AgentState in Appendix. | NA |
rules | JSON Object | Button state rules. Refer Rules in Appendix. | NA |
Sample Request
{
"channel": "Amazon",
"topic": "Agent",
"subtopic": "Login",
"source": "myapp"
}
Sample Response
{
"channel": "Amazon",
"topic": "Agent",
"subtopic": "LoginSuccess",
"message": {
"loginState": "LoggedIn",
"agentInfo": {
"name": "Agent 1",
"id" : "704fbb61-4f16-40dc-aa0e-09993cda4ce6",
"extension": "",
"loginName": "agent1",
"muted": false,
"softphoneEnabled": false
},
"agentState": null,
"rules": null
}
}