View user tag list¶
View user tags in the current workspace by page. Use the list when selecting, updating, or removing a user’s tags.
POST https://api.moi.matrixorigin.cn/v5/user/tag/list
Preparation before calling¶
Prepare a personal access token that can access the target workspace and the target workspace ID.
Request parameters¶
curl -X POST "https://api.moi.matrixorigin.cn/v5/user/tag/list" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"page_size": 20
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Page number, starting at 1. The default is 1. |
|
integer |
No |
Number of items per page. The default is 20 and the maximum is 100. |
To read the next page, increase page by 1 and keep page_size unchanged. Stop when the cumulative number read reaches data.total, or when the current page’s data.tag_list is empty. The current service does not apply the sorting and filtering fields retained for compatibility in the request structure.
Successful response¶
On success, returns the total tag count and the tags on the current page.
{
"code": "OK",
"msg": "OK",
"data": {
"total": 1,
"tag_list": [
{
"id": 12,
"name": "finance",
"description": "Finance team"
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
integer |
Total number of tags in the current workspace. |
|
object array |
Tags on the current page. |
|
integer |
Tag ID. |
|
string |
Tag name. |
|
string |
Tag description. |
Error response¶
{
"code": "INVALID_ARGUMENT",
"msg": "Invalid request parameters",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
null |
— |
Next steps¶
Select a user tag¶
Select the tag to update, delete, or associate with a user. Continue reading by using the cursor returned by the previous page.