List notification event definitions
Allows you to retrieve a paginated list of notification event definitions under your account.
GET
/api/event_definitions
curl \
--request GET 'http://localhost:4000/api/event_definitions' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Doors open during bake mode",
"rules": [
{
"op": "like",
"tag": "BoothMode",
"value": "Bake%"
},
{
"op": "==",
"tag": "I_xDoorClosed",
"value": false
}
],
"category": "Safety & Regulatory",
"booth_ids": [
"a920bc22-de00-1983-bbca-90201849fbac",
"29302931-fabe-aaac-910a-119301b8ac91"
],
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128",
"created_at": "2025-07-30 13:00:00Z",
"created_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"event_type": "tag",
"updated_at": "2025-07-30 13:00:00Z",
"description": "Event definition to check if doors were opened while the booth was in bake mode",
"min_duration": 2,
"last_edited_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"evaluation_period": "daily"
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (200)
{
"data": [
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Doors open during bake mode",
"rules": [
{
"op": "like",
"tag": "BoothMode",
"value": "Bake%"
},
{
"op": "==",
"tag": "I_xDoorClosed",
"value": false
}
],
"category": "Safety & Regulatory",
"booth_ids": [
"a920bc22-de00-1983-bbca-90201849fbac",
"29302931-fabe-aaac-910a-119301b8ac91"
],
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128",
"created_at": "2025-07-30 13:00:00Z",
"created_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"event_type": "tag",
"updated_at": "2025-07-30 13:00:00Z",
"description": "Event definition to check if doors were opened while the booth was in bake mode",
"min_duration": 2,
"last_edited_by": "371a9242-02da-433d-a25a-b5031d5f3b46",
"evaluation_period": "daily"
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}