Gestionnaires de notification

GET https://app.pulserr.com/api/notification-handler/
curl --request GET \
--url 'https://app.pulserr.com/api/notification-handler/' \
--header 'Authorization: Bearer {api_key}' \
Paramètres Détails Description
page Facultatif Entier Le numéro de page à partir duquel vous souhaitez obtenir des résultats. Par défaut, 1
results_per_page Facultatif Entier Combien de résultats souhaitez-vous par page. Les valeurs autorisées sont: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Par défaut, 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2021-06-27 22:16:23" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://app.pulserr.com/api/notification-handler?&page=1", "last": "https://app.pulserr.com/api/notification-handler?&page=1", "next": null, "prev": null, "self": "https://app.pulserr.com/api/notification-handler?&page=1" } }
GET https://app.pulserr.com/api/notification-handler/{notification_handler_id}
curl --request GET \
--url 'https://app.pulserr.com/api/notification-handler/{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": "2021-06-27 22:16:23" } }
POST https://app.pulserr.com/api/notification-handlers
Paramètres Détails Description
name Requis String -
type Requis String Valeurs autorisées: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp
email Facultatif String Disponible lorsque: type = email Courriel
webhook Facultatif String Disponible lorsque: type = webhook URL du webhook
slack Facultatif String Disponible lorsque: type = slack URL du webhook Slack
discord Facultatif String Disponible lorsque: type = discord URL du webhook Discord
telegram Facultatif String Disponible lorsque: type = telegram Jeton d'API Telegram
telegram_chat_id Facultatif String Disponible lorsque: type = telegram ID Chat Telegram
curl --request POST \
--url 'https://app.pulserr.com/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://app.pulserr.com/api/notification-handlers/{notification_handler_id}
Paramètres Détails Description
name Facultatif String -
type Facultatif String Valeurs autorisées: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp
email Facultatif String Disponible lorsque: type = email Courriel
webhook Facultatif String Disponible lorsque: type = webhook URL du webhook
slack Facultatif String Disponible lorsque: type = slack URL du webhook Slack
discord Facultatif String Disponible lorsque: type = discord URL du webhook Discord
telegram Facultatif String Disponible lorsque: type = telegram Jeton d'API Telegram
telegram_chat_id Facultatif String Disponible lorsque: type = telegram ID Chat Telegram
is_enabled Facultatif Booléen -
curl --request POST \
--url 'https://app.pulserr.com/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://app.pulserr.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://app.pulserr.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \