site yet to be completed

Bildirim işleyicileri

GET https://anon.cat/api/notification-handlers/
curl --request GET \
--url 'https://anon.cat/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametreler Detaylar Açıklama
page İsteğe bağlı Tamsayı Sonuçları istediğiniz sayfa numarası. Varsayılan olarak 1.
results_per_page İsteğe bağlı Tamsayı Sayfa başına kaç sonuç istiyorsunuz. İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Varsayılan: 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-05-19 10:08:49" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://anon.cat/api/notification-handlers?&page=1", "last": "https://anon.cat/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://anon.cat/api/notification-handlers?&page=1" } }
GET https://anon.cat/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://anon.cat/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-05-19 10:08:49" } }
POST https://anon.cat/api/notification-handlers
Parametreler Detaylar Açıklama
name Gerekli Dize -
type Gerekli Dize İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams
email İsteğe bağlı Dize Mevcut olduğunda: type = email E-posta
webhook İsteğe bağlı Dize Mevcut olduğunda: type = webhook Webhook URL
slack İsteğe bağlı Dize Mevcut olduğunda: type = slack Slack webhook URL
discord İsteğe bağlı Dize Mevcut olduğunda: type = discord Discord webhook URL
telegram İsteğe bağlı Dize Mevcut olduğunda: type = telegram Telegram API Anahtarı
telegram_chat_id İsteğe bağlı Dize Mevcut olduğunda: type = telegram Telegram Sohbet Kimliği
x_consumer_key İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
x_consumer_secret İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
x_access_token İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
x_access_token_secret İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
curl --request POST \
--url 'https://anon.cat/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://anon.cat/api/notification-handlers/{notification_handler_id}
Parametreler Detaylar Açıklama
name İsteğe bağlı Dize -
type İsteğe bağlı Dize İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams
email İsteğe bağlı Dize Mevcut olduğunda: type = email E-posta
webhook İsteğe bağlı Dize Mevcut olduğunda: type = webhook Webhook URL
slack İsteğe bağlı Dize Mevcut olduğunda: type = slack Slack webhook URL
discord İsteğe bağlı Dize Mevcut olduğunda: type = discord Discord webhook URL
telegram İsteğe bağlı Dize Mevcut olduğunda: type = telegram Telegram API Anahtarı
telegram_chat_id İsteğe bağlı Dize Mevcut olduğunda: type = telegram Telegram Sohbet Kimliği
x_consumer_key İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
x_consumer_secret İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
x_access_token İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
x_access_token_secret İsteğe bağlı Dize Mevcut olduğunda: type = x Telegram API Anahtarı
is_enabled İsteğe bağlı Boolean -
curl --request POST \
--url 'https://anon.cat/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://anon.cat/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://anon.cat/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \