List notifications¶
List the current user’s notifications and read status.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/notifications
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.
Query parameters¶
Replace $MOI_PERSONAL_ACCESS_TOKEN in the example with your personal access token.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/notifications" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN" \
--data-urlencode "page_size=2"
Save the returned next_page_token as $NEXT_PAGE_TOKEN, retain the same filters, and request the next page. Stop when this value is empty or omitted.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/notifications" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN" \
--data-urlencode "page_size=2" \
--data-urlencode "page_token=$NEXT_PAGE_TOKEN"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Category: usage, key, call, |
|
string |
No |
Priority: |
|
string |
No |
Read filter: |
|
string |
No |
Time range: all, |
|
integer |
No |
Page size; default 100, maximum 1000. |
|
string |
No |
Next-page token from the previous response; omit for the first request. |
Successful response¶
Returns HTTP 200 with the current page of notifications and pagination information.
{
"items": [],
"total": 0,
"next_page_token": ""
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Records on this page. |
|
string |
Notification ID. |
|
string |
Owning user ID. |
|
string |
Identifier of the triggering rule. |
|
string |
Notification category. |
|
string |
Priority: |
|
string |
Notification title. |
|
string |
Notification summary. |
|
string |
Notification state. |
|
string |
Related object type, when present. |
|
string |
Related object ID, when present. |
|
string |
Related object name, when present. |
|
string |
Notification source type, when present. |
|
string |
Notification source ID, when present. |
|
string |
Related action URL, when present. |
|
string |
Notification event fingerprint, when present. |
|
integer |
Notification sequence number. |
|
boolean |
Whether the notification has been read. |
|
integer |
Event time, Unix seconds. |
|
integer |
Creation time, Unix seconds. |
|
integer |
Update time, Unix seconds. |
|
integer |
Total records matching the filters. |
|
string |
Next-page token; empty or omitted on the last page. |
In field paths, [] denotes each array item.