Manejadores de notificaciones
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}' \
Parámetros | Detalles | Descripción |
---|---|---|
page | Opcional Entero | El número de página del que deseas obtener resultados. Por defecto es 1 . |
results_per_page | Opcional Entero | ¿Cuántos resultados deseas por página? Los valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Por defecto es 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:57", } ], "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:57", } }
POST https://digily.link/api/notification-handlers
Parámetros | Detalles | Descripción |
---|---|---|
name | Requerido Cadena | - |
type | Requerido Cadena | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
Opcional Cadena | Disponible cuando: type = email Correo electrónico | |
webhook | Opcional Cadena | Disponible cuando: type = webhook URL del Webhook |
slack | Opcional Cadena | Disponible cuando: type = slack URL del webhook de Slack |
discord | Opcional Cadena | Disponible cuando: type = discord URL del webhook de Discord |
telegram | Opcional Cadena | Disponible cuando: type = telegram Token de la API de Telegram |
telegram_chat_id | Opcional Cadena | Disponible cuando: type = telegram ID de Chat de Telegram |
microsoft_teams | Opcional Cadena | Disponible cuando: type = microsoft_teams URL del webhook de Microsoft Teams |
push_subscriber_id | Opcional Cadena | Disponible cuando: type = push_subscriber_id Suscriptor de notificaciones push |
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}
Parámetros | Detalles | Descripción |
---|---|---|
name | Opcional Cadena | - |
type | Opcional Cadena | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
Opcional Cadena | Disponible cuando: type = email Correo electrónico | |
webhook | Opcional Cadena | Disponible cuando: type = webhook URL del Webhook |
slack | Opcional Cadena | Disponible cuando: type = slack URL del webhook de Slack |
discord | Opcional Cadena | Disponible cuando: type = discord URL del webhook de Discord |
telegram | Opcional Cadena | Disponible cuando: type = telegram Token de la API de Telegram |
telegram_chat_id | Opcional Cadena | Disponible cuando: type = telegram ID de Chat de Telegram |
microsoft_teams | Opcional Cadena | Disponible cuando: type = microsoft_teams URL del webhook de Microsoft Teams |
push_subscriber_id | Opcional Cadena | Disponible cuando: type = push_subscriber_id Suscriptor de notificaciones push |
is_enabled | Opcional 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}' \