通知ハンドラー

GET https://www.japaso.com/api/notification-handlers/
curl --request GET \
--url 'https://www.japaso.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
パラメーター 詳細 説明
page オプション 整数 結果が必要なページ番号。デフォルトは 1 です。
results_per_page オプション 整数 ページごとに必要な結果の数。許可される値は次のとおりです: 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-03-12 04:23:16" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://www.japaso.com/api/notification-handlers?&page=1", "last": "https://www.japaso.com/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://www.japaso.com/api/notification-handlers?&page=1" } }
GET https://www.japaso.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://www.japaso.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-03-12 04:23:16" } }
POST https://www.japaso.com/api/notification-handlers
パラメーター 詳細 説明
name 必須 -
type 必須 許可される値:
email オプション 利用可能な場合: type = email Eメール
webhook オプション 利用可能な場合: type = webhook Webhook URL
slack オプション 利用可能な場合: type = slack Slack webhook URL
discord オプション 利用可能な場合: type = discord Discord webhook URL
telegram オプション 利用可能な場合: type = telegram Telegram APIトークン
telegram_chat_id オプション 利用可能な場合: type = telegram TelegramチャットID
x_consumer_key オプション 利用可能な場合: type = x Telegram APIトークン
x_consumer_secret オプション 利用可能な場合: type = x Telegram APIトークン
x_access_token オプション 利用可能な場合: type = x Telegram APIトークン
x_access_token_secret オプション 利用可能な場合: type = x Telegram APIトークン
curl --request POST \
--url 'https://www.japaso.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://www.japaso.com/api/notification-handlers/{notification_handler_id}
パラメーター 詳細 説明
name オプション -
type オプション 許可される値:
email オプション 利用可能な場合: type = email Eメール
webhook オプション 利用可能な場合: type = webhook Webhook URL
slack オプション 利用可能な場合: type = slack Slack webhook URL
discord オプション 利用可能な場合: type = discord Discord webhook URL
telegram オプション 利用可能な場合: type = telegram Telegram APIトークン
telegram_chat_id オプション 利用可能な場合: type = telegram TelegramチャットID
x_consumer_key オプション 利用可能な場合: type = x Telegram APIトークン
x_consumer_secret オプション 利用可能な場合: type = x Telegram APIトークン
x_access_token オプション 利用可能な場合: type = x Telegram APIトークン
x_access_token_secret オプション 利用可能な場合: type = x Telegram APIトークン
is_enabled オプション ブール値 -
curl --request POST \
--url 'https://www.japaso.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://www.japaso.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://www.japaso.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \