Benachrichtigungen
GET https://uptime.condoo.systems/api/notification-handlers/
curl --request GET \
--url 'https://uptime.condoo.systems/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://uptime.condoo.systems/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameter | Details | Beschreibung |
---|---|---|
page | Optional Zahl | Die Seitenzahl, von der du die Ergebnisse haben möchtest. Standardmäßig ist sie 1 . |
results_per_page | Optional Zahl | Wie viele Ergebnisse möchtest du pro Seite sehen? Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standardmäßig ist es 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-19 19:34:22"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://uptime.condoo.systems/api/notification-handlers?&page=1",
"last": "https://uptime.condoo.systems/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://uptime.condoo.systems/api/notification-handlers?&page=1"
}
}
GET https://uptime.condoo.systems/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://uptime.condoo.systems/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://uptime.condoo.systems/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-19 19:34:22"
}
}
POST https://uptime.condoo.systems/api/notification-handlers
Parameter | Details | Beschreibung |
---|---|---|
name | Erforderlich String | - |
type | Erforderlich String | Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams |
Optional String | Available when: type = email E-Mail | |
webhook | Optional String | Available when: type = webhook Webhook URL |
slack | Optional String | Available when: type = slack Slack Webhook URL |
discord | Optional String | Available when: type = discord Discord Webhook URL |
telegram | Optional String | Available when: type = telegram Telegram API Token |
telegram_chat_id | Optional String | Available when: type = telegram Telegram Chat ID |
x_consumer_key | Optional String | Available when: type = x Telegram API Token |
x_consumer_secret | Optional String | Available when: type = x Telegram API Token |
x_access_token | Optional String | Available when: type = x Telegram API Token |
x_access_token_secret | Optional String | Available when: type = x Telegram API Token |
curl --request POST \
--url 'https://uptime.condoo.systems/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://uptime.condoo.systems/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://uptime.condoo.systems/api/notification-handlers/{notification_handler_id}
Parameter | Details | Beschreibung |
---|---|---|
name | Optional String | - |
type | Optional String | Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams |
Optional String | Available when: type = email E-Mail | |
webhook | Optional String | Available when: type = webhook Webhook URL |
slack | Optional String | Available when: type = slack Slack Webhook URL |
discord | Optional String | Available when: type = discord Discord Webhook URL |
telegram | Optional String | Available when: type = telegram Telegram API Token |
telegram_chat_id | Optional String | Available when: type = telegram Telegram Chat ID |
x_consumer_key | Optional String | Available when: type = x Telegram API Token |
x_consumer_secret | Optional String | Available when: type = x Telegram API Token |
x_access_token | Optional String | Available when: type = x Telegram API Token |
x_access_token_secret | Optional String | Available when: type = x Telegram API Token |
is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://uptime.condoo.systems/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://uptime.condoo.systems/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://uptime.condoo.systems/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://uptime.condoo.systems/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://uptime.condoo.systems/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \