Manejadores de notificaciones
GET https://omnes.link/api/notification-handlers/
curl --request GET \
--url 'https://omnes.link/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://omnes.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": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-09-18 11:16:28", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://omnes.link/api/notification-handlers?page=1", "last": "https://omnes.link/api/notification-handlers?page=1", "next": null, "prev": null, "self": "https://omnes.link/api/notification-handlers?page=1" } }
GET https://omnes.link/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://omnes.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://omnes.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-09-18 11:16:28", } }
POST https://omnes.link/api/notification-handlers
Parámetros | Detalles | Descripción |
---|---|---|
name | Requerido Cadena | - |
type | Requerido Cadena | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x , google_chat , internal_notification , push_subscriber_id |
Opcional Cadena | Disponible cuando: type = email Email | |
webhook | Opcional Cadena | Disponible cuando: type = webhook Webhook URL |
slack | Opcional Cadena | Disponible cuando: type = slack Slack webhook URL |
discord | Opcional Cadena | Disponible cuando: type = discord Discord webhook URL |
telegram | Opcional Cadena | Disponible cuando: type = telegram Telegram API Token |
telegram_chat_id | Opcional Cadena | Disponible cuando: type = telegram Telegram Chat ID |
microsoft_teams | Opcional Cadena | Disponible cuando: type = microsoft_teams Microsoft Teams webhook URL |
google_chat | Opcional Cadena | Disponible cuando: type = google_chat Google chat webhook URL |
x_consumer_key | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
x_consumer_secret | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
x_access_token | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
x_access_token_secret | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
push_subscriber_id | Opcional Cadena | Disponible cuando: type = push_subscriber_id Push subscriber |
twilio | Opcional Cadena | Disponible cuando: type = twilio Phone number |
twilio_call | Opcional Cadena | Disponible cuando: type = twilio_call Phone number |
Opcional Cadena | Disponible cuando: type = whatsapp Phone number |
curl --request POST \
--url 'https://omnes.link/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
--url 'https://omnes.link/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
{ "data": { "id": 1 } }
POST https://omnes.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 , twilio , twilio_call , whatsapp , x , google_chat , internal_notification , push_subscriber_id |
Opcional Cadena | Disponible cuando: type = email Email | |
webhook | Opcional Cadena | Disponible cuando: type = webhook Webhook URL |
slack | Opcional Cadena | Disponible cuando: type = slack Slack webhook URL |
discord | Opcional Cadena | Disponible cuando: type = discord Discord webhook URL |
telegram | Opcional Cadena | Disponible cuando: type = telegram Telegram API Token |
telegram_chat_id | Opcional Cadena | Disponible cuando: type = telegram Telegram Chat ID |
microsoft_teams | Opcional Cadena | Disponible cuando: type = microsoft_teams Microsoft Teams webhook URL |
google_chat | Opcional Cadena | Disponible cuando: type = google_chat Google chat webhook URL |
x_consumer_key | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
x_consumer_secret | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
x_access_token | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
x_access_token_secret | Opcional Cadena | Disponible cuando: type = x Telegram API Token |
push_subscriber_id | Opcional Cadena | Disponible cuando: type = push_subscriber_id Push subscriber |
twilio | Opcional Cadena | Disponible cuando: type = twilio Phone number |
twilio_call | Opcional Cadena | Disponible cuando: type = twilio_call Phone number |
Opcional Cadena | Disponible cuando: type = whatsapp Phone number | |
is_enabled | Opcional Boolean | - |
curl --request POST \
--url 'https://omnes.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://omnes.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://omnes.link/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://omnes.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://omnes.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \