Controladores de notificaciones

GET https://estatus.info/api/notification-handlers/
curl --request GET \
--url 'https://estatus.info/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parámetros Detalles Descripción
page Opcional Entero (Integer) El número de página del que deseas resultados. Por defecto es 1
results_per_page Opcional Entero (Integer) El número de resultados por página. Los valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Por defecto %s
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-04-30 17:44:53" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://estatus.info/api/notification-handlers?&page=1", "last": "https://estatus.info/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://estatus.info/api/notification-handlers?&page=1" } }
GET https://estatus.info/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://estatus.info/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-04-30 17:44:53" } }
POST https://estatus.info/api/notification-handlers
Parámetros Detalles Descripción
name Requerido Cadena (string) -
type Requerido Cadena (string) Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , x , latinsms , ntfy , pushover , push_subscriber_id
email Opcional Cadena (string) Disponibe cuando: type = email Correo
webhook Opcional Cadena (string) Disponibe cuando: type = webhook URL del webhook
slack Opcional Cadena (string) Disponibe cuando: type = slack URL del webhook de Slack
discord Opcional Cadena (string) Disponibe cuando: type = discord URL del webhook de Discord
telegram Opcional Cadena (string) Disponibe cuando: type = telegram Token para la API de Telegram
telegram_chat_id Opcional Cadena (string) Disponibe cuando: type = telegram ID de chat en Telegram
x_consumer_key Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
x_consumer_secret Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
x_access_token Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
x_access_token_secret Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
curl --request POST \
--url 'https://estatus.info/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://estatus.info/api/notification-handlers/{notification_handler_id}
Parámetros Detalles Descripción
name Opcional Cadena (string) -
type Opcional Cadena (string) Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams , x , latinsms , ntfy , pushover , push_subscriber_id
email Opcional Cadena (string) Disponibe cuando: type = email Correo
webhook Opcional Cadena (string) Disponibe cuando: type = webhook URL del webhook
slack Opcional Cadena (string) Disponibe cuando: type = slack URL del webhook de Slack
discord Opcional Cadena (string) Disponibe cuando: type = discord URL del webhook de Discord
telegram Opcional Cadena (string) Disponibe cuando: type = telegram Token para la API de Telegram
telegram_chat_id Opcional Cadena (string) Disponibe cuando: type = telegram ID de chat en Telegram
x_consumer_key Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
x_consumer_secret Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
x_access_token Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
x_access_token_secret Opcional Cadena (string) Disponibe cuando: type = x Token para la API de Telegram
is_enabled Opcional Booleano (Boolean) -
curl --request POST \
--url 'https://estatus.info/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://estatus.info/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://estatus.info/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \