Wipple CPaaS
Menu
Functions / Tag

Tag

Note

Every time the tag Function is used, the collection of customer data is completely replaced with the new data provided.

{
  "verb": "tag",
  "data": {
        "foo": "bar",
        "counter": 100,
        "list": [1, 2, "three"]
    }
}

After the above 'tag' Function has executed, web callbacks using POST would have a payload similar to this:

{
    "call_sid": "df09e8d4-7ffd-492b-94d9-51a60318552c",
    "direction": "inbound",
    "from": "+815099990007",
    "to": "+815099990012",
    "call_id": "f0414693-bdb6-1238-6185-06d91d68c9b0",
    "sip_status": 200,
    "call_status": "in-progress",
    "caller_id": "f0414693-bdb6-1238-6185-06d91d68c9b0",
    "account_sid": "fef61e75-cec3-496c-a7bc-8368e4d02a04",
    "application_sid": "0e0681b0-d49f-4fb8-b973-b5a3c6758de1",
    "originating_sip_ip": "54.172.60.1:5060",
    "originating_sip_trunk_name": "mycarrier",
    "customerData": {
        "foo": "bar",
        "counter": 100,
        "list": [1, 2, "three"]
    }
}

You can use the following options in the tag command:

Parameters

dataobjectrequired

A JSON object containing values to be saved and included in future action or
call status notifications (HTTP POST only) for this call.