Download OpenAPI specification:Download OpenAPI Spec (YAML)Download OpenAPI Spec (JSON)
Copyright SAKURA internet Inc.
APIを利用するためには、認証のための「APIキー」が必要です。事前にキーを発行しておきます。 APIキーは「ユーザーID」「パスワード」に相当する「トークン」と呼ばれる認証情報で構成されています。
| 項目名 | APIキー発行時の項目名 | このドキュメント内での例 |
|---|---|---|
| ユーザーID | アクセストークン(UUID) | 01234567-89ab-cdef-0123-456789abcdef |
| パスワード | アクセストークンシークレット | SAMPLETOKENSAMPLETOKENSAMPLETOKENSAM |
指定した通知先グループに対してメッセージを送信します。
| id required | string^[0-9]{12}$ |
| Message required | string <= 2048 characters |
{- "Message": "string"
}{- "is_ok": true
}{- "NotificationHistories": [
- {
- "request_id": "12345",
- "source_id": "",
- "statuses": [
- {
- "id": "67890",
- "status": 2,
- "error_info": "",
- "notification_request_id": "12345",
- "group_id": "123700020001",
- "destination_id": "123700010001",
- "created_at": "2025-12-18T12:00:00+09:00",
- "updated_at": "2025-12-18T12:05:00+09:00"
}
], - "received_at": "2025-12-18T12:00:00+09:00",
- "message": {
- "body": "This is a test notification message.",
- "color": "default",
- "color_code": "#7d7d7d",
- "title": "Test Notification"
}
}
]
}{- "NotificationHistory": {
- "request_id": "12345",
- "source_id": "",
- "statuses": [
- {
- "id": "67890",
- "status": 2,
- "error_info": "",
- "notification_request_id": "12345",
- "group_id": "123700020001",
- "destination_id": "123700010001",
- "created_at": "2025-12-18T12:00:00+09:00",
- "updated_at": "2025-12-18T12:05:00+09:00"
}
], - "received_at": "2025-12-18T12:00:00+09:00",
- "message": {
- "body": "This is a test notification message.",
- "color": "default",
- "color_code": "#7d7d7d",
- "title": "Test Notification"
}
}
}リソースの一覧取得。クエリパラメータにて下記のようにProvider.Classを指定してフィルタを設定することで通知先、通知先グループまたは通知ルーティングのリソースのみを取得できます。
/commonserviceitem?{"Filter":{"Provider.Class":"saknoticedestination"}}/commonserviceitem?{"Filter":{"Provider.Class":"saknoticegroup"}}/commonserviceitem?{"Filter":{"Provider.Class":"saknoticerouting"}}{- "From": 0,
- "Count": 2,
- "Total": 2,
- "CommonServiceItems": [
- {
- "Index": 0,
- "ID": "123700010001",
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}, - {
- "Index": 1,
- "ID": "123700010002",
- "Name": "webhook destination",
- "Description": "Webhook通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}
]
}リソースの作成。Provider.Classの値に応じて必要なSettingsの内容が異なります。
required | object |
{- "CommonServiceItem": {
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Tags": [ ],
- "Icon": {
- "ID": "123700100001"
}, - "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "ServiceClass": "cloud/saknoticedestination/2"
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}リソースの取得。取得されたCommonServiceItemのProvider.Classの値に応じてSettingsの内容は異なります。
| id required | string^[0-9]{12}$ |
{- "CommonServiceItem": {
- "ID": "123700010001",
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}
}リソースの更新。更新されるCommonServiceItemのProvider.Classの値に応じてSettingsの内容は異なります。
| id required | string^[0-9]{12}$ |
required | object |
{- "CommonServiceItem": {
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Tags": [ ],
- "Icon": {
- "ID": "123700100001"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}リソースの一覧取得。クエリパラメータにて下記のようにProvider.Classを指定してフィルタを設定することで通知先、通知先グループまたは通知ルーティングのリソースのみを取得できます。
/commonserviceitem?{"Filter":{"Provider.Class":"saknoticedestination"}}/commonserviceitem?{"Filter":{"Provider.Class":"saknoticegroup"}}/commonserviceitem?{"Filter":{"Provider.Class":"saknoticerouting"}}{- "From": 0,
- "Count": 2,
- "Total": 2,
- "CommonServiceItems": [
- {
- "Index": 0,
- "ID": "123700010001",
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}, - {
- "Index": 1,
- "ID": "123700010002",
- "Name": "webhook destination",
- "Description": "Webhook通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}
]
}リソースの作成。Provider.Classの値に応じて必要なSettingsの内容が異なります。
required | object |
{- "CommonServiceItem": {
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Tags": [ ],
- "Icon": {
- "ID": "123700100001"
}, - "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "ServiceClass": "cloud/saknoticedestination/2"
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}リソースの取得。取得されたCommonServiceItemのProvider.Classの値に応じてSettingsの内容は異なります。
| id required | string^[0-9]{12}$ |
{- "CommonServiceItem": {
- "ID": "123700010001",
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}
}リソースの更新。更新されるCommonServiceItemのProvider.Classの値に応じてSettingsの内容は異なります。
| id required | string^[0-9]{12}$ |
required | object |
{- "CommonServiceItem": {
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Tags": [ ],
- "Icon": {
- "ID": "123700100001"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}リソースの一覧取得。クエリパラメータにて下記のようにProvider.Classを指定してフィルタを設定することで通知先、通知先グループまたは通知ルーティングのリソースのみを取得できます。
/commonserviceitem?{"Filter":{"Provider.Class":"saknoticedestination"}}/commonserviceitem?{"Filter":{"Provider.Class":"saknoticegroup"}}/commonserviceitem?{"Filter":{"Provider.Class":"saknoticerouting"}}{- "From": 0,
- "Count": 2,
- "Total": 2,
- "CommonServiceItems": [
- {
- "Index": 0,
- "ID": "123700010001",
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}, - {
- "Index": 1,
- "ID": "123700010002",
- "Name": "webhook destination",
- "Description": "Webhook通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}
]
}リソースの作成。Provider.Classの値に応じて必要なSettingsの内容が異なります。
required | object |
{- "CommonServiceItem": {
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Tags": [ ],
- "Icon": {
- "ID": "123700100001"
}, - "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "ServiceClass": "cloud/saknoticedestination/2"
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}リソースの取得。取得されたCommonServiceItemのProvider.Classの値に応じてSettingsの内容は異なります。
| id required | string^[0-9]{12}$ |
{- "CommonServiceItem": {
- "ID": "123700010001",
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}, - "CreatedAt": "2025-12-18T12:00:00+09:00",
- "ModifiedAt": "2025-12-18T12:00:00+09:00",
- "Icon": {
- "ID": "123700100001"
}, - "Tags": [ ]
}
}リソースの更新。更新されるCommonServiceItemのProvider.Classの値に応じてSettingsの内容は異なります。
| id required | string^[0-9]{12}$ |
required | object |
{- "CommonServiceItem": {
- "Name": "mail destination",
- "Description": "メール通知先の説明",
- "Tags": [ ],
- "Icon": {
- "ID": "123700100001"
}, - "Settings": {
- "Type": "email",
- "Value": "user@example.com"
}
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}{- "CommonServiceItem": {
- "Index": 0,
- "ID": "string",
- "Name": "string",
- "Description": "string",
- "Settings": {
- "Type": "email",
- "Value": "string",
- "Disabled": true
}, - "CreatedAt": "2019-08-24T14:15:22Z",
- "ModifiedAt": "2019-08-24T14:15:22Z",
- "Provider": {
- "Class": "saknoticedestination"
}, - "Icon": {
- "ID": "string",
- "URL": "string",
- "Name": "string",
- "Scope": "string"
}, - "Tags": [
- "string"
]
}
}通知ルーティングの優先順位を並び替えます。
PriorityRankの値は他の通知ルーティングと重複しないように指定する必要があります。
required | Array of objects |
{- "Orders": [
- {
- "PriorityRank": 1,
- "RoutingID": "string"
}
]
}{- "is_ok": true
}