Notification handlers
GET https://noiq.us/api/notification-handlers/
curl --request GET \
--url 'https://noiq.us/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://noiq.us/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. La valeur par défaut est 1.
|
| results_per_page | Facultatif Entier | Combien de résultats voulez-vous par page ? Valeurs autorisées : 10 , 25 , 50 , 100 , 250 , 500 , 1000. Valeur par défaut : 25.
|
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-12-07 11:45:22",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://noiq.us/api/notification-handlers?page=1",
"last": "https://noiq.us/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://noiq.us/api/notification-handlers?page=1"
}
}
GET https://noiq.us/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://noiq.us/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://noiq.us/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-12-07 11:45:22",
}
}
POST https://noiq.us/api/notification-handlers
| Paramètres | Détails | Description |
|---|---|---|
| name | Obligatoire Chaîne | - |
| type | Obligatoire Chaîne | Valeurs autorisées : email , webhook , slack , discord , telegram , microsoft_teams
|
| Facultatif Chaîne | Disponible le : type = email Email | |
| webhook | Facultatif Chaîne | Disponible le : type = webhook Webhook URL |
| slack | Facultatif Chaîne | Disponible le : type = slack Slack webhook URL |
| discord | Facultatif Chaîne | Disponible le : type = discord Discord webhook URL |
| telegram | Facultatif Chaîne | Disponible le : type = telegram Telegram API Token |
| telegram_chat_id | Facultatif Chaîne | Disponible le : type = telegram Telegram Chat ID |
| microsoft_teams | Facultatif Chaîne | Disponible le : type = microsoft_teams Microsoft Teams webhook URL |
curl --request POST \
--url 'https://noiq.us/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://noiq.us/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://noiq.us/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 le : type = email Email | |
| webhook | Facultatif Chaîne | Disponible le : type = webhook Webhook URL |
| slack | Facultatif Chaîne | Disponible le : type = slack Slack webhook URL |
| discord | Facultatif Chaîne | Disponible le : type = discord Discord webhook URL |
| telegram | Facultatif Chaîne | Disponible le : type = telegram Telegram API Token |
| telegram_chat_id | Facultatif Chaîne | Disponible le : type = telegram Telegram Chat ID |
| microsoft_teams | Facultatif Chaîne | Disponible le : type = microsoft_teams Microsoft Teams webhook URL |
| is_enabled | Facultatif Booléen | - |
curl --request POST \
--url 'https://noiq.us/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://noiq.us/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://noiq.us/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://noiq.us/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://noiq.us/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \