Meldingshandlers
GET https://digily.link/api/notification-handlers/
curl --request GET \
--url 'https://digily.link/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameters | Details | Beschrijving |
---|---|---|
page | Optioneel Integer | Het paginanummer waarvan u resultaten wilt. Standaard is 1 . |
results_per_page | Optioneel Integer | Hoeveel resultaten wilt u per pagina. Toegestane waarden zijn: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standaard is 25 . |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-09-14 12:07:56", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://digily.link/api/notification-handlers?page=1", "last": "https://digily.link/api/notification-handlers?page=1", "next": null, "prev": null, "self": "https://digily.link/api/notification-handlers?page=1" } }
GET https://digily.link/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://digily.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/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-09-14 12:07:56", } }
POST https://digily.link/api/notification-handlers
Parameters | Details | Beschrijving |
---|---|---|
name | Vereist Tekenreeks | - |
type | Vereist Tekenreeks | Toegestane waarden: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
Optioneel Tekenreeks | Beschikbaar wanneer: type = email E-mail | |
webhook | Optioneel Tekenreeks | Beschikbaar wanneer: type = webhook Webhook-URL |
slack | Optioneel Tekenreeks | Beschikbaar wanneer: type = slack Slack webhook-URL |
discord | Optioneel Tekenreeks | Beschikbaar wanneer: type = discord Discord-webhook-URL |
telegram | Optioneel Tekenreeks | Beschikbaar wanneer: type = telegram Telegram API-token |
telegram_chat_id | Optioneel Tekenreeks | Beschikbaar wanneer: type = telegram Telegram Chat-ID |
microsoft_teams | Optioneel Tekenreeks | Beschikbaar wanneer: type = microsoft_teams Microsoft Teams webhook-URL |
push_subscriber_id | Optioneel Tekenreeks | Beschikbaar wanneer: type = push_subscriber_id Push-abonnee |
curl --request POST \
--url 'https://digily.link/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' \
--url 'https://digily.link/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://digily.link/api/notification-handlers/{notification_handler_id}
Parameters | Details | Beschrijving |
---|---|---|
name | Optioneel Tekenreeks | - |
type | Optioneel Tekenreeks | Toegestane waarden: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
Optioneel Tekenreeks | Beschikbaar wanneer: type = email E-mail | |
webhook | Optioneel Tekenreeks | Beschikbaar wanneer: type = webhook Webhook-URL |
slack | Optioneel Tekenreeks | Beschikbaar wanneer: type = slack Slack webhook-URL |
discord | Optioneel Tekenreeks | Beschikbaar wanneer: type = discord Discord-webhook-URL |
telegram | Optioneel Tekenreeks | Beschikbaar wanneer: type = telegram Telegram API-token |
telegram_chat_id | Optioneel Tekenreeks | Beschikbaar wanneer: type = telegram Telegram Chat-ID |
microsoft_teams | Optioneel Tekenreeks | Beschikbaar wanneer: type = microsoft_teams Microsoft Teams webhook-URL |
push_subscriber_id | Optioneel Tekenreeks | Beschikbaar wanneer: type = push_subscriber_id Push-abonnee |
is_enabled | Optioneel Boolean | - |
curl --request POST \
--url 'https://digily.link/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' \
--url 'https://digily.link/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://digily.link/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://digily.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \