GetDataset
Queries the description, field structure, labels, and favorite status of a dataset.
Operation description
If the version parameter is not specified, this operation queries the current dataset. If an existing version number is provided, it queries the corresponding historical version. You can retrieve the version list by calling ListDatasetVersions. The returned schema describes the field structure of the dataset. To read the data content, call ExecuteQuery.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetDataset |
get |
*Dataset
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/dataset/{datasetName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
Yes |
The name of the agent space. |
sop-agent |
| datasetName |
string |
Yes |
The name of the dataset. |
product_faq_dataset |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| version |
string |
No |
The version number of the dataset to read. If omitted, the current dataset is read. |
1.0.0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response of the API call. |
||
| description |
string |
The description of the dataset. |
Product FAQ dataset for semantic search |
| createTime |
string |
The time when the resource was created in RFC 3339 format. |
2026-06-15T10:30:00Z |
| requestId |
string |
The ID of the request. |
D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D |
| updateTime |
string |
The time when the resource was last updated in RFC 3339 format. |
2026-06-15T11:20:00Z |
| agentSpace |
string |
The name of the agent space. |
sop-agent |
| datasetName |
string |
The name of the dataset. |
product_faq_dataset |
| regionId |
string |
The region ID. |
cn-beijing |
| schema |
object |
The table schema of the dataset. |
{ "field1": { "chn": false, "embedding": null, "jsonKeys": { "test": { "chn": true, "type": "text" } }, "type": "json" } } |
| IndexKey |
The table schema of the dataset. |
{ "chn": false, "embedding": null, "jsonKeys": { "test": { "chn": true, "type": "text" } }, "type": "json" } |
|
| isFavorite |
boolean |
Indicates whether the dataset is added to favorites. |
true |
| labels |
object |
The labels of the dataset. |
{ "Agent": ["Member Marketing"] } |
|
array |
The list of label values corresponding to the same label key. |
["Member Marketing"] |
|
|
string |
The label value. |
Member Marketing |
|
| ttlDays |
integer |
The data retention period in days. |
7 |
Examples
Success response
JSON format
{
"description": "Product FAQ dataset for semantic search",
"createTime": "2026-06-15T10:30:00Z",
"requestId": "D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D",
"updateTime": "2026-06-15T11:20:00Z",
"agentSpace": "sop-agent",
"datasetName": "product_faq_dataset",
"regionId": "cn-beijing",
"schema": {
"key": {
"chn": true,
"description": "test",
"embedding": "agentloop-embedding-v4",
"jsonKeys": {
"key": {
"chn": false,
"type": "text"
}
},
"type": "text"
}
},
"isFavorite": true,
"labels": {
"key": [
"Member Marketing"
]
},
"ttlDays": 7
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.