Notification handlers
GET https://notifer.ir/api/notification-handlers/
curl --request GET \
--url 'https://notifer.ir/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://notifer.ir/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| page | اختیاری Integer | شماره صفحه ای که می خواهید از آن نتیجه بگیرید. پیشفرض 1 است. |
| results_per_page | اختیاری Integer | در هر صفحه چند نتیجه می خواهید. مقادیر مجاز عبارتند از: 10 , 25 , 50 , 100 , 250 , 500 , 1000. پیشفرض 25 است. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-10-27 01:38:48"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://notifer.ir/api/notification-handlers?&page=1",
"last": "https://notifer.ir/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://notifer.ir/api/notification-handlers?&page=1"
}
}
GET https://notifer.ir/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://notifer.ir/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://notifer.ir/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-10-27 01:38:48"
}
}
POST https://notifer.ir/api/notification-handlers
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| name | اجباری String | - |
| type | اجباری String | مقادیر مجاز: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp , x |
| اختیاری String | Available when: type = email Email | |
| webhook | اختیاری String | Available when: type = webhook Webhook URL |
| slack | اختیاری String | Available when: type = slack Slack webhook URL |
| discord | اختیاری String | Available when: type = discord Discord webhook URL |
| telegram | اختیاری String | Available when: type = telegram Telegram API Token |
| telegram_chat_id | اختیاری String | Available when: type = telegram Telegram Chat ID |
| x_consumer_key | اختیاری String | Available when: type = x Telegram API Token |
| x_consumer_secret | اختیاری String | Available when: type = x Telegram API Token |
| x_access_token | اختیاری String | Available when: type = x Telegram API Token |
| x_access_token_secret | اختیاری String | Available when: type = x Telegram API Token |
| اختیاری String | Available when: type = whatsapp Phone number |
curl --request POST \
--url 'https://notifer.ir/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://notifer.ir/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://notifer.ir/api/notification-handlers/{notification_handler_id}
| پارامترها | جزئیات | توضیحات |
|---|---|---|
| name | اختیاری String | - |
| type | اختیاری String | مقادیر مجاز: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp , x |
| اختیاری String | Available when: type = email Email | |
| webhook | اختیاری String | Available when: type = webhook Webhook URL |
| slack | اختیاری String | Available when: type = slack Slack webhook URL |
| discord | اختیاری String | Available when: type = discord Discord webhook URL |
| telegram | اختیاری String | Available when: type = telegram Telegram API Token |
| telegram_chat_id | اختیاری String | Available when: type = telegram Telegram Chat ID |
| x_consumer_key | اختیاری String | Available when: type = x Telegram API Token |
| x_consumer_secret | اختیاری String | Available when: type = x Telegram API Token |
| x_access_token | اختیاری String | Available when: type = x Telegram API Token |
| x_access_token_secret | اختیاری String | Available when: type = x Telegram API Token |
| اختیاری String | Available when: type = whatsapp Phone number | |
| is_enabled | اختیاری Boolean | - |
curl --request POST \
--url 'https://notifer.ir/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://notifer.ir/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://notifer.ir/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://notifer.ir/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://notifer.ir/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \