List local token keys¶
List the current user’s TaaS local keys, call limits, and quotas without returning raw secrets.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/token-keys
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/token-keys" \
-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/token-keys" \
-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 |
Status filter; |
|
string |
No |
Case-insensitive substring match on the name. |
|
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 local keys and pagination information.
{
"items": [],
"total": 0,
"next_page_token": ""
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Records on this page. |
|
string |
TaaS local token key ID. |
|
string |
Owning user ID. |
|
string |
Key name. |
|
string |
Key prefix. |
|
string |
Key status. |
|
string |
Key remark, when present. |
|
integer |
Concurrent request limit. |
|
integer |
Requests-per-minute limit. |
|
integer |
Tokens-per-minute limit. |
|
string |
Daily quota limit. Returned when populated. |
|
string |
Quota used |
|
string |
Total quota limit. Returned when populated. |
|
string |
Cumulative used quota. Returned when populated. |
|
string |
Remaining quota. Returned when populated. |
|
array of string |
Allowed catalog model object IDs. |
|
array of string |
Display names of allowed models, preferring aliases; returned when populated. |
|
integer or null |
Expiry time, Unix seconds; |
|
integer or null |
Last call 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.
This list contains keys issued locally by TaaS. Personal access tokens and service-account keys are managed on the Access Credentials page.