Notifikationshåndterere
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}' \
Parametre | Detaljer | Beskrivelse |
---|---|---|
page | Valgfri Heltal | Sidetal, som du ønsker resultater fra. Standard er 1 . |
results_per_page | Valgfri Heltal | Hvor mange resultater vil du have pr. side. Tilladte værdier er: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standard er 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-07-01 16:49:45"
}
],
"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-07-01 16:49:45"
}
}
POST https://digily.link/api/notification-handlers
Parametre | Detaljer | Beskrivelse |
---|---|---|
name | Påkrævet Streng | - |
type | Påkrævet Streng | Tilladte værdier: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
Valgfri Streng | Tilgængelig når: type = email E-mail | |
webhook | Valgfri Streng | Tilgængelig når: type = webhook Webhook-URL |
slack | Valgfri Streng | Tilgængelig når: type = slack Slack webhook-URL |
discord | Valgfri Streng | Tilgængelig når: type = discord Discord webhook-URL |
telegram | Valgfri Streng | Tilgængelig når: type = telegram Telegram API-token |
telegram_chat_id | Valgfri Streng | Tilgængelig når: type = telegram Telegram Chat ID |
x_consumer_key | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
x_consumer_secret | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
x_access_token | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
x_access_token_secret | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
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}
Parametre | Detaljer | Beskrivelse |
---|---|---|
name | Valgfri Streng | - |
type | Valgfri Streng | Tilladte værdier: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
Valgfri Streng | Tilgængelig når: type = email E-mail | |
webhook | Valgfri Streng | Tilgængelig når: type = webhook Webhook-URL |
slack | Valgfri Streng | Tilgængelig når: type = slack Slack webhook-URL |
discord | Valgfri Streng | Tilgængelig når: type = discord Discord webhook-URL |
telegram | Valgfri Streng | Tilgængelig når: type = telegram Telegram API-token |
telegram_chat_id | Valgfri Streng | Tilgængelig når: type = telegram Telegram Chat ID |
x_consumer_key | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
x_consumer_secret | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
x_access_token | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
x_access_token_secret | Valgfri Streng | Tilgængelig når: type = x Telegram API-token |
is_enabled | Valgfri Boolesk | - |
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}' \