Logout API
    • Dark
      Light

    Logout API

    • Dark
      Light

    Article summary

    This API allows an Agent to log out from softphone.

    Pre-requisite

    The agent must be in the LoggedIn 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

    LogoutSuccess

    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": "Logout",
        "source": "myapp"
    }

    Sample Response

    {
        "channel": "Amazon",
        "topic": "Agent",
        "subtopic": "LogoutSuccess",
        "message": {
            "loginState": "LoggedOut",
            "agentInfo": {
                "muted": false,
                "name": "Agent 1",
                "extension": "",
                "loginName": "agent1",
                "softphoneEnabled": true
            },
            "agentState": {
                "agentStateARN": null,
                "type": "not_routable",
                "name": "Not Ready Bre@k",
                "startTimestamp": "2020-04-09T13:38:40.517Z"
            },
            "rules": {
                "ButtonStates": {
                    "items": {
                        "NotReady": "Enable",
                        "Ready": "Enable",
                        "make_call": "Enable",
                        "mute": "Enable",
                        "unmute": "Hide"
                    },
                    "count": 5
                },
                "ResponseActual": {
                    "agentStateARN": null,
                    "type": "not_routable",
                    "name": "Not Ready Bre@k",
                    "startTimestamp": "2020-04-09T13:38:40.517Z"
                }
            }
        }
    }


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.