List notification channels¶
List the current user’s in-app, email, and webhook channel settings.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/notification-channels
Before you begin¶
Prepare a personal access token. For creation and management, see Manage personal access tokens.
Results are scoped to data accessible to the current user.
Request example¶
Replace $MOI_PERSONAL_ACCESS_TOKEN in the example with your personal access token.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/notification-channels" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Successful response¶
Returns HTTP 200 with notification channel settings for the current user.
{
"items": [
{
"id": "channel_example",
"user_id": "user_example",
"channel_key": "in_app",
"type": "in_app",
"name": "In-app",
"enabled": true,
"readonly": true,
"priorities": [
"severe",
"important",
"normal"
],
"config_version": 1,
"created_at": 1788710400,
"updated_at": 1788710400
}
]
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Notification channels. |
|
string |
Channel ID. |
|
string |
Owning user ID. |
|
string |
Built-in channel key, when present. |
|
string |
Channel type. |
|
string |
Webhook subtype, when present. |
|
string |
Channel name. |
|
boolean |
Whether enabled. |
|
boolean |
Whether the channel is read-only. |
|
array of string |
Notification priorities delivered through this channel. |
|
string |
Destination; email channels return the saved email address, when present. |
|
integer |
Channel configuration version. |
|
integer |
Creation time, Unix seconds. |
|
integer |
Update time, Unix seconds. |
In field paths, [] denotes each array item.