Clear Contact
    • Dark
      Light

    Clear Contact

    • Dark
      Light

    Article summary

    This API allows the Agent to clear the call details and move to the Ready state.

    Pre-requisite

    The agent must be either on After Call Work (ACW) or Missed Call or the Rejected Call state.

    Sequence Diagram

    The following figure illustrates the workflow of Clear Contact API:

    The following figure illustrates the workflow of clear call failure:

    Message Structure

    Request Parameters

    Value

    channel

    Amazon

    topic

    InboundCall

    subtopic

    ClearContact

    source

    «app-name-broadcasting-this-message»

    Response Parameters

    Value

    channel

    Amazon

    topic

    InboundCall

    subtopic

    InboundCallStateChange

    message

    Refer Call Event Parameters

    Sample Request

    {
        "channel": "Amazon",
        "topic": "InboundCall",
        "subtopic": "ClearContact",
        "source": "myapp"
    }

    Sample Response - Call Type: Agent

    {
        "channel": "Amazon",
        "topic": "InboundCall",
        "subtopic": "InboundCallStateChange",
        "message": {
            "call": {
                "ButtonStates": {
                    "items": {
                        "answer": "Hide",
                        "reject": "Hide",
                        "disconnect": "Hide",
                        "hold": "Hide",
                        "resume": "Hide",
                        "clearContact": "Hide",
                        "consult": "Hide",
                        "numberpad": "Hide",
                        "swap": "Hide",
                        "transfer": "Hide",
                        "conference": "Hide"
                    },
                    "count": 11
                },
                "ActionsAllowed": null,
                "ResponseType": 0,
                "ResponseText": "Success",
                "ResponseActual": {
                    "connectionId": "48a09a0b-b73d-4d03-a77d-7c36132de226",
                    "contactId": "bcdb2ec7-bca2-423a-bd64-1688c173d529",
                    "phoneNumber": null,
                    "status": "disconnected",
                    "statusTimestamp": "2020-04-09T12:52:16.344Z",
                    "type": "agent",
                    "buttonStates": {
                        "answer": false,
                        "reject": false,
                        "disconnect": false,
                        "hold": false,
                        "resume": false,
                        "clearContact": false,
                        "consult": false,
                        "numberpad": false,
                        "swap": false,
                        "transfer": false,
                        "conference": false
                    },
                    "previousStatus": "connected"
                },
                "CallVariables": {
                    "ANI": "+161081111",
                    "DNIS": "+16013261548"
                },
                "ExtendedCallVariables": null,
                "ResponseFields": {
                    "Participants": [],
                    "MediaProperties": {
                        "callType": "agent",
                        "queueName": "InboundTest",
                        "queueTimestamp": "2020-04-09T12:52:16.344Z"
                    },
                    "fromAddress": null,
                    "CallState": "DROPPED",
                    "Type": "agent",
                    "CurrentStateTime": "2020-04-09T12:52:16.344Z",
                    "Campaign": "",
                    "DN": "InboundTest"
                },
                "id": "48a09a0b-b73d-4d03-a77d-7c36132de226",
                "event": "DROPPED",
                "CallType": "agent"
            },
            "source": "event"
        }
    }

    Sample Response - Call Type: Inbound

    {
        "channel": "Amazon",
        "topic": "InboundCall",
        "subtopic": "InboundCallStateChange",
        "message": {        "call": {
                "ButtonStates": {
                    "items": {
                        "answer": "Hide",
                        "reject": "Hide",
                        "disconnect": "Hide",
                        "hold": "Hide",
                        "resume": "Hide",
                        "clearContact": "Hide",
                        "consult": "Hide",
                        "numberpad": "Hide",
                        "swap": "Hide",
                        "transfer": "Hide",
                        "conference": "Hide"
                    },
                    "count": 11
                },
                "ActionsAllowed": null,
                "ResponseType": 0,
                "ResponseText": "Success",
                "ResponseActual": {
                    "connectionId": "bcdb2ec7-bca2-423a-bd64-1688c173d529",
                    "contactId": "bcdb2ec7-bca2-423a-bd64-1688c173d529",
                    "phoneNumber": "+161081111",
                    "status": "disconnected",
                    "statusTimestamp": "2020-04-09T12:52:16.344Z",
                    "type": "inbound",
                    "buttonStates": {
                        "answer": false,
                        "reject": false,
                        "disconnect": false,
                        "hold": false,
                        "resume": false,
                        "clearContact": false,
                        "consult": false,
                        "numberpad": false,
                        "swap": false,
                        "transfer": false,
                        "conference": false
                    },
                    "previousStatus": "connected"
                },
                "CallVariables": {
                    "ANI": "+161081111",
                    "DNIS": "+16013261548"
                },
                "ExtendedCallVariables": null,
                "ResponseFields": {
                    "Participants": [],
                    "MediaProperties": {
                        "callType": "inbound",
                        "queueName": "InboundTest",
                        "queueTimestamp": "2020-04-09T12:52:16.344Z"
                    },
                    "fromAddress": "+161081111",
                    "CallState": "DROPPED",
                    "Type": "inbound",
                    "CurrentStateTime": "2020-04-09T12:52:16.344Z",
                    "Campaign": "",
                    "DN": "InboundTest"
                },
                "id": "bcdb2ec7-bca2-423a-bd64-1688c173d529",
                "event": "DROPPED",
                "CallType": "inbound"
            },
            "source": "event"
        }
      }


    Was this article helpful?

    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.