Notification handlers
GET https://calisiyormu.com/api/notification-handlers/
curl --request GET \
--url 'https://calisiyormu.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://calisiyormu.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
page | İstəyə bağlı Tam | Nəticələri istədiyiniz səhifə nömrəsi. Varsayılan 1 olaraq təyin edilir. |
results_per_page | İstəyə bağlı Tam | Səhifə başına neçə nəticə istəyirsiniz. İcazə verilən dəyərlər: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Varsayılan 25 olaraq təyin edilir. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-09-02 04:41:19",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://calisiyormu.com/api/notification-handlers?page=1",
"last": "https://calisiyormu.com/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://calisiyormu.com/api/notification-handlers?page=1"
}
}
GET https://calisiyormu.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://calisiyormu.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://calisiyormu.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-09-02 04:41:19",
}
}
POST https://calisiyormu.com/api/notification-handlers
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
name | Tələb olunur Sətir | - |
type | Tələb olunur Sətir | İcazə verilən dəyərlər: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x , push_subscriber_id |
İstəyə bağlı Sətir | Mövcud olduğu zaman: type = email Email | |
webhook | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = webhook Webhook URL |
slack | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = slack Slack webhook URL |
discord | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = discord Discord webhook URL |
telegram | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = telegram Telegram API Token |
telegram_chat_id | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = telegram Telegram Chat ID |
microsoft_teams | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = microsoft_teams Microsoft Teams webhook URL |
x_consumer_key | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
x_consumer_secret | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
x_access_token | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
x_access_token_secret | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
push_subscriber_id | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = push_subscriber_id Push subscriber |
twilio | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = twilio Phone number |
twilio_call | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = twilio_call Phone number |
İstəyə bağlı Sətir | Mövcud olduğu zaman: type = whatsapp Phone number |
curl --request POST \
--url 'https://calisiyormu.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://calisiyormu.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://calisiyormu.com/api/notification-handlers/{notification_handler_id}
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
name | İstəyə bağlı Sətir | - |
type | İstəyə bağlı Sətir | İcazə verilən dəyərlər: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , whatsapp , x , push_subscriber_id |
İstəyə bağlı Sətir | Mövcud olduğu zaman: type = email Email | |
webhook | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = webhook Webhook URL |
slack | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = slack Slack webhook URL |
discord | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = discord Discord webhook URL |
telegram | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = telegram Telegram API Token |
telegram_chat_id | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = telegram Telegram Chat ID |
microsoft_teams | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = microsoft_teams Microsoft Teams webhook URL |
x_consumer_key | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
x_consumer_secret | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
x_access_token | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
x_access_token_secret | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = x Telegram API Token |
push_subscriber_id | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = push_subscriber_id Push subscriber |
twilio | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = twilio Phone number |
twilio_call | İstəyə bağlı Sətir | Mövcud olduğu zaman: type = twilio_call Phone number |
İstəyə bağlı Sətir | Mövcud olduğu zaman: type = whatsapp Phone number | |
is_enabled | İstəyə bağlı Boolean | - |
curl --request POST \
--url 'https://calisiyormu.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://calisiyormu.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://calisiyormu.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://calisiyormu.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://calisiyormu.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \