Notification de l'intermédiaire
GET https://0o0.online/api/notification-handlers/
curl --request GET \
--url 'https://0o0.online/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://0o0.online/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Paramètres | Les détails | Description |
|---|---|---|
| search | Optionnel String | La ligne de recherche. |
| search_by | Optionnel String | Quels champs recherchez-vous ? les valeurs autorisées sont : name. |
| is_enabled | Optionnel Boolean | |
| type | Optionnel String | Quels champs recherchez-vous ? les valeurs autorisées sont : email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat, ntfy, push_subscriber_id. |
| datetime_field | Optionnel String | Les valeurs autorisées : datetime, last_datetime |
| datetime_start | Optionnel String | Filtrer les résultats à partir de cette date. Y-m-d H:i:s Le format. |
| datetime_end | Optionnel String | Filter les résultats jusqu'à cette date. Y-m-d H:i:s Le format. |
| order_by | Optionnel String | Quel champ pour commander les résultats par. Les valeurs autorisées sont: notification_handler_id, datetime, last_datetime, name. |
| order_type | Optionnel String | La commande des résultats. Les valeurs autorisées sont: ASC pour la montée de l'ordre, et DESC pour la descente de commande. |
| search | Optionnel String | La ligne de recherche. |
| search_by | Optionnel String | Quels champs recherchez-vous ? les valeurs autorisées sont : name. |
| is_enabled | Optionnel Boolean | |
| type | Optionnel String | Quels champs recherchez-vous ? les valeurs autorisées sont : email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat, ntfy, push_subscriber_id. |
| datetime_field | Optionnel String | Les valeurs autorisées : datetime, last_datetime |
| datetime_start | Optionnel String | Filtrer les résultats à partir de cette date. Y-m-d H:i:s Le format. |
| datetime_end | Optionnel String | Filter les résultats jusqu'à cette date. Y-m-d H:i:s Le format. |
| order_by | Optionnel String | Quel champ pour commander les résultats par. Les valeurs autorisées sont: notification_handler_id, datetime, last_datetime, name. |
| order_type | Optionnel String | La commande des résultats. Les valeurs autorisées sont: ASC pour la montée de l'ordre, et DESC pour la descente de commande. |
| page | Optionnel intégré | Le numéro de page que vous voulez des résultats. défauts à 1. |
| results_per_page | Optionnel intégré | Combien de résultats vous voulez par page. Les valeurs autorisées sont: 10, 25, 50, 100, 250, 500, 1000. Défauts à 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2026-12-02 19:05:32",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://0o0.online/api/notification-handlers?page=1",
"last": "https://0o0.online/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://0o0.online/api/notification-handlers?page=1"
}
}
GET https://0o0.online/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://0o0.online/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://0o0.online/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": "2026-12-02 19:05:32",
}
}
POST https://0o0.online/api/notification-handlers
| Paramètres | Les détails | Description |
|---|---|---|
| name | Obligatoire String | - |
| type | Obligatoire String | Les valeurs autorisées : email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat, ntfy, push_subscriber_id |
| Optionnel String | Disponible lorsque : type = email E-mail | |
| webhook | Optionnel String | Disponible lorsque : type = webhook Webhook URL |
| slack | Optionnel String | Disponible lorsque : type = slack Le Webhook URL |
| discord | Optionnel String | Disponible lorsque : type = discord Discord Webhook URL |
| telegram | Optionnel String | Disponible lorsque : type = telegram Telegram API Le token |
| telegram_chat_id | Optionnel String | Disponible lorsque : type = telegram Telegram Chat ID |
| microsoft_teams | Optionnel String | Disponible lorsque : type = microsoft_teams Microsoft Le Webhook URL |
| google_chat | Optionnel String | Disponible lorsque : type = google_chat Google Le chat webhook URL |
| ntfy | Optionnel String | Disponible lorsque : type = ntfy Thématique NTF URL |
| x_consumer_key | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| x_consumer_secret | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| x_access_token | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| x_access_token_secret | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| push_subscriber_id | Optionnel String | Disponible lorsque : type = push_subscriber_id Les abonnés push |
curl --request POST \
--url 'https://0o0.online/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://0o0.online/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://0o0.online/api/notification-handlers/{notification_handler_id}
| Paramètres | Les détails | Description |
|---|---|---|
| name | Optionnel String | - |
| type | Optionnel String | Les valeurs autorisées : email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat, ntfy, push_subscriber_id |
| Optionnel String | Disponible lorsque : type = email E-mail | |
| webhook | Optionnel String | Disponible lorsque : type = webhook Webhook URL |
| slack | Optionnel String | Disponible lorsque : type = slack Le Webhook URL |
| discord | Optionnel String | Disponible lorsque : type = discord Discord Webhook URL |
| telegram | Optionnel String | Disponible lorsque : type = telegram Telegram API Le token |
| telegram_chat_id | Optionnel String | Disponible lorsque : type = telegram Telegram Chat ID |
| microsoft_teams | Optionnel String | Disponible lorsque : type = microsoft_teams Microsoft Le Webhook URL |
| google_chat | Optionnel String | Disponible lorsque : type = google_chat Google Le chat webhook URL |
| ntfy | Optionnel String | Disponible lorsque : type = ntfy Thématique NTF URL |
| x_consumer_key | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| x_consumer_secret | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| x_access_token | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| x_access_token_secret | Optionnel String | Disponible lorsque : type = x Telegram API Le token |
| push_subscriber_id | Optionnel String | Disponible lorsque : type = push_subscriber_id Les abonnés push |
| is_enabled | Optionnel Boolean | - |
curl --request POST \
--url 'https://0o0.online/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://0o0.online/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://0o0.online/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://0o0.online/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://0o0.online/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \