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
| Key | value | type | Description |
|---|---|---|---|
| event | conversation.created | string | name of the event |
| id | 30837b84-b007-46dd-943a-092513f69cd8 | string | id of the event |
| account | 1 | Integer | id of the account |
| app | 1 | Integer | id of the app |
| createdAt | 1652968658 | Integer | timestamp of the creation date |
| deliveryAttempts | 1 | Integer | Number of times we tried to deliver the event |
| firstDeliveryAttempt | 1652968658 | Integer | timestamp of the first time we tried to deliver the event |
| data | Channel User Object | ChannelUser | data of the object |