SMS events

\SMSIReceived

Playload , Tn, Accounts, Subscriptions all these fileds are mentioned in 'General Event Fields' section, Please refer to this

messaging_profile.created_on

creation time of messaging_profile

messaging_profile.modified_on

last modification time of messaging_profile

messaging_profile.uuid

unique uuid of messaging_profile

messaging_profile.name

name of messaging_profile

messaging_profile.call_back_url

messaging_profile.call_back_url2

There is no any queue storage on events like this. That mean if sms received and no any wss connected clients exists in that moment, event will not be saved for later delivery.

Basically we should get at least 2 events like this per one sent sms:

  • Message sent (state 'created' > 'success')

  • Message delivered (delivered false > true)

{
    "timestamp": "2022-07-04T17:11:45.363Z",
    "message": "SMS: type: smso, state: success",
    "type": "sms",
    "payload": {
        "type": "smso",
        "created_on": "2022-07-04T17:11:40.065Z",
        "modified_on": "2022-07-04T17:11:45.324Z",
        "uuid": "11ad513b-4017-4592-a8e1-0f47b6817973",
        "from": "18382050008",
        "to": "14158531285",
        "thread": "6c7229a4d21945d0cfabe334803064a5",
        "message": "Hello world",
        "state": "success",
        "delivered": true,
        "automated": false,
        "reason": "[SMSO][11ad513b-4017-4592-a8e1-0f47b6817973]: tn: 18382050008, sms_campaign: CL2CERQ, sending...",
        "tn": {
            "created_on": "2022-04-04T14:42:57.525Z",
            "modified_on": "2022-04-04T14:42:57.525Z",
            "tn": 18382050008,
            "deleted_on": null
        },
        "account": {
            "created_on": "2022-04-26T05:42:05.858Z",
            "modified_on": "2022-04-26T05:42:05.968Z",
            "uuid": "9df81deb-afa6-436b-8ce9-af54b3e502e4",
            "email": "opentact@callify.io",
            "name": "callify testacc",
            "level": "Level1",
            "deleted_on": null,
            "disabled_on": null,
            "balance": 873.0554,
            "time_zone": null
        },
        "subscription": {
            "type": "sms",
            "created_on": "2022-07-04T05:45:22.690Z",
            "modified_on": "2022-07-04T05:50:15.762Z",
            "uuid": "517dba0e-e144-4485-932d-f453b0331399",
            "messaging_profile": {
                "created_on": "2022-04-26T05:42:05.858Z",
                "modified_on": "2022-06-23T06:56:13.310Z",
                "uuid": "23b51099-fd8c-43d3-99ed-4c59f43b2840",
                "name": "Default profile: opentact@callify.io",
                "callback_url": null,
                "callback_url2": null
            }
        }
    }
}

Last updated