Channel User Created

When a channel user sends their first message and a contact is successfully created for the user in Rasayel you will receive channel_user.created event.

Request example

js{
    "event": "channel_user.created",
    "id": "6512a803-f348-4765-8a35-d8b2626da1f6",
    "account": 1,
    "app": 1,
    "createdAt": 1652974054,
    "deliveryAttempts": 1,
    "firstDeliveryAttempt": 1652974054,
    "data": {
        "id": 1,
        "avatarUrl": null,
        "blocked": false,
        "displayName": "Ahmed Abbas",
        "name": null,
        "firstName": "Ahmed",
        "lastName": "Abbas",
        "createdAt": 1652974052,
        "updatedAt": 1652974052,
        "channels": [
            {
                "id": 1,
                "channelConfig": {
                    "channelName": "Telegram"
                }
            }
        ],
        "conversations": {
            "nodes": [
                {
                    "id": 1,
                    "lastInboundMessageAt": 1652974052
                }
            ]
        },
        "identifiers": [
            {
                "sourceId": "1765698763",
                "category": "TELEGRAM_ID"
            }
        ]
    }
}

Request data breakdown

KeyvaluetypeDescription
eventconversation.createdstringname of the event
id30837b84-b007-46dd-943a-092513f69cd8stringid of the event
account1Integerid of the account
app1Integerid of the app
createdAt1652968658Integertimestamp of the creation date
deliveryAttempts1IntegerNumber of times we tried to deliver the event
firstDeliveryAttempt1652968658Integertimestamp of the first time we tried to deliver the event
dataChannel User ObjectChannelUserdata of the object