Notificatie handlers

GET https://dmpilot.ru/api/notification-handlers/
curl --request GET \
--url 'https://dmpilot.ru/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameters Details Beschrijving
page Optioneel Integer Pagina nummer. Standaard 1.
results_per_page Optioneel Integer Aantal resultaten per pagina. Toegestaan: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standaard 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-05-19 05:56:41" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://dmpilot.ru/api/notification-handlers?&page=1", "last": "https://dmpilot.ru/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://dmpilot.ru/api/notification-handlers?&page=1" } }
GET https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-05-19 05:56:41" } }
POST https://dmpilot.ru/api/notification-handlers
Parameters Details Beschrijving
name Verplicht String -
type Verplicht String Toegestane waarden: email , webhook , slack , discord , telegram , microsoft_teams
email Optioneel String Beschikbaar wanneer: type = email E-mail
webhook Optioneel String Beschikbaar wanneer: type = webhook Webhook URL
slack Optioneel String Beschikbaar wanneer: type = slack Slack webhook URL
discord Optioneel String Beschikbaar wanneer: type = discord Discord webhook URL
telegram Optioneel String Beschikbaar wanneer: type = telegram Telegram API Token
telegram_chat_id Optioneel String Beschikbaar wanneer: type = telegram Telegram Chat ID
x_consumer_key Optioneel String Beschikbaar wanneer: type = x Telegram API Token
x_consumer_secret Optioneel String Beschikbaar wanneer: type = x Telegram API Token
x_access_token Optioneel String Beschikbaar wanneer: type = x Telegram API Token
x_access_token_secret Optioneel String Beschikbaar wanneer: type = x Telegram API Token
curl --request POST \
--url 'https://dmpilot.ru/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{ "data": { "id": 1 } }
POST https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
Parameters Details Beschrijving
name Optioneel String -
type Optioneel String Toegestane waarden: email , webhook , slack , discord , telegram , microsoft_teams
email Optioneel String Beschikbaar wanneer: type = email E-mail
webhook Optioneel String Beschikbaar wanneer: type = webhook Webhook URL
slack Optioneel String Beschikbaar wanneer: type = slack Slack webhook URL
discord Optioneel String Beschikbaar wanneer: type = discord Discord webhook URL
telegram Optioneel String Beschikbaar wanneer: type = telegram Telegram API Token
telegram_chat_id Optioneel String Beschikbaar wanneer: type = telegram Telegram Chat ID
x_consumer_key Optioneel String Beschikbaar wanneer: type = x Telegram API Token
x_consumer_secret Optioneel String Beschikbaar wanneer: type = x Telegram API Token
x_access_token Optioneel String Beschikbaar wanneer: type = x Telegram API Token
x_access_token_secret Optioneel String Beschikbaar wanneer: type = x Telegram API Token
is_enabled Optioneel Boolean -
curl --request POST \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
{ "data": { "id": 1 } }
DELETE https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \