Events
Get Events
Events
Get Events
Retrieves all logged events that the user has access to.
GET
/
events
curl --request GET \
--url https://api.dingify.workers.dev/api/events \
--header 'X-API-KEY: <api-key>'
{
"ok": true,
"events": [
{
"id": "clwj5o92a0001adaz8mcbxqja",
"name": "You got a new payment",
"channelId": "new-channel-name",
"userId": "user-999",
"icon": "icon_event.png",
"notify": true,
"tags": {
"Networking": "Yes",
"Tech": "Yes"
},
"createdAt": "2024-05-23T11:14:27.682Z"
}
]
}
Authorizations
Response
200
application/json
List of events retrieved successfully.
Example:
true
The ID of the event.
Example:
"clwj5o92a0001adaz8mcbxqja"
The name of the event.
Example:
"You got a new payment"
The ID of the channel associated with the event.
Example:
"new-channel-name"
The ID of the user associated with the event.
Example:
"user-999"
An optional icon for visual representation of the event.
Example:
"icon_event.png"
Flag indicating whether users should be notified about the event.
Example:
true
The timestamp when the event was created.
Example:
"2024-05-23T11:14:27.682Z"
curl --request GET \
--url https://api.dingify.workers.dev/api/events \
--header 'X-API-KEY: <api-key>'
{
"ok": true,
"events": [
{
"id": "clwj5o92a0001adaz8mcbxqja",
"name": "You got a new payment",
"channelId": "new-channel-name",
"userId": "user-999",
"icon": "icon_event.png",
"notify": true,
"tags": {
"Networking": "Yes",
"Tech": "Yes"
},
"createdAt": "2024-05-23T11:14:27.682Z"
}
]
}