Gestionnaires de notifications
GET https://prouvia.com/api/notification-handlers/
curl --request GET \
--url 'https://prouvia.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://prouvia.com/api/notification-handlers/' \
--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 est utilisé. |
| 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": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-11-18 03:43:38",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://prouvia.com/api/notification-handlers?page=1",
"last": "https://prouvia.com/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://prouvia.com/api/notification-handlers?page=1"
}
}
GET https://prouvia.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://prouvia.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://prouvia.com/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-11-18 03:43:38",
}
}
POST https://prouvia.com/api/notification-handlers
| Paramètres | Détails | Description |
|---|---|---|
| name | Requis Chaîne | - |
| type | Requis Chaîne | Valeurs autorisées: email , webhook , slack , discord , telegram , microsoft_teams |
| Facultatif Chaîne | Disponible lorsque: type = email E-mail | |
| webhook | Facultatif Chaîne | Disponible lorsque: type = webhook URL de Webhook |
| slack | Facultatif Chaîne | Disponible lorsque: type = slack URL de webhook Slack |
| discord | Facultatif Chaîne | Disponible lorsque: type = discord URL de webhook Discord |
| telegram | Facultatif Chaîne | Disponible lorsque: type = telegram Jeton API de Telegram |
| telegram_chat_id | Facultatif Chaîne | Disponible lorsque: type = telegram ID de chat Telegram |
| microsoft_teams | Facultatif Chaîne | Disponible lorsque: type = microsoft_teams URL du webhook Microsoft Teams |
curl --request POST \
--url 'https://prouvia.com/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://prouvia.com/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://prouvia.com/api/notification-handlers/{notification_handler_id}
| Paramètres | Détails | Description |
|---|---|---|
| name | Facultatif Chaîne | - |
| type | Facultatif Chaîne | Valeurs autorisées: email , webhook , slack , discord , telegram , microsoft_teams |
| Facultatif Chaîne | Disponible lorsque: type = email E-mail | |
| webhook | Facultatif Chaîne | Disponible lorsque: type = webhook URL de Webhook |
| slack | Facultatif Chaîne | Disponible lorsque: type = slack URL de webhook Slack |
| discord | Facultatif Chaîne | Disponible lorsque: type = discord URL de webhook Discord |
| telegram | Facultatif Chaîne | Disponible lorsque: type = telegram Jeton API de Telegram |
| telegram_chat_id | Facultatif Chaîne | Disponible lorsque: type = telegram ID de chat Telegram |
| microsoft_teams | Facultatif Chaîne | Disponible lorsque: type = microsoft_teams URL du webhook Microsoft Teams |
| is_enabled | Facultatif Booléen | - |
curl --request POST \
--url 'https://prouvia.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' \
--url 'https://prouvia.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://prouvia.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://prouvia.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://prouvia.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \