API reference
6 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/notificationsMy notifications/api/v1/w/{workspaceId}/notifications/readMark notifications read (all if ids omitted)/api/v1/w/{workspaceId}/notification-channelsSlack / email notification channels (secrets never returned)/api/v1/w/{workspaceId}/notification-channelsAdd a Slack incoming webhook or email channel/api/v1/w/{workspaceId}/notification-channels/{id}Remove a channel/api/v1/w/{workspaceId}/notification-channels/testSend a test notification to all channels/api/v1/w/{workspaceId}/notificationsMy notifications
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/notifications" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/notifications/readMark notifications read (all if ids omitted)
Path parameters
workspaceIdrequired | string |
Request body (JSON)
ids | string (uuid)[] |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/notifications/read" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"00000000-0000-4000-8000-000000000000"
]
}'/api/v1/w/{workspaceId}/notification-channelsSlack / email notification channels (secrets never returned)
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/notification-channelsAdd a Slack incoming webhook or email channel
Path parameters
workspaceIdrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "SLACK",
"name": "string",
"webhookUrl": "https://example.com",
"events": [
"string"
]
}'/api/v1/w/{workspaceId}/notification-channels/{id}Remove a channel
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/notification-channels/testSend a test notification to all channels
Path parameters
workspaceIdrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels/test" \
-H "Authorization: Bearer $EMN_API_KEY"