Queries a list of agents and their usage information.
Operation description
Usage notes
Pagination: This operation supports pagination by using the
NextTokenandMaxResultsparameters. For the first request, setNextTokento an empty string.Filtering: Use the
AgentTypeandAgentIdsparameters to filter the results.Status filtering: Use the
Statusparameter to filter agents by status. Valid values are 0 (deleted) and 1 (active).Sorting: By default, the results are sorted by
idin ascending order.Additional parameter for anonymous edition: The
FillInstanceparameter automatically populates the ID of the JVS_COPILOT agent that is associated with the current user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeCreditPackageAgents |
list |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BizType |
string |
No |
The business type. |
BUSINESS |
| AgentType |
string |
No |
The agent type. Valid values: |
JVS_COPILOT |
| AgentIds |
array |
No |
An array of agent IDs to query. Example: |
|
|
string |
No |
An agent ID. |
jvs-xxxx |
|
| MaxResults |
integer |
No |
The maximum number of results to return per page. |
100 |
| NextToken |
string |
No |
The token to retrieve the next page of results. Obtain this value from the |
eyJvZmZzZXQiOjIwfQ== |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. Provide this ID when contacting support. |
xxxx-xxxx-xxxx |
| Agents |
array<object> |
A list of agents. |
|
|
object |
|||
| AgentId |
string |
The ID of the agent. |
agent-abc |
| InstanceType |
string |
The instance type. |
jvs-copilot.standard |
| CreatedTime |
string |
The creation time of the instance. |
2026-04-01 10:00:00 |
| ExpiredTime |
string |
The expiration time of the instance. |
2026-10-01 10:00:00 |
| UsedCredit |
integer |
The amount of credit used. |
100 |
| TotalCredit |
integer |
The total credit. |
2000 |
| CreditPackageId |
string |
The ID of the active credit package instance. |
cp-inst-001 |
| WarnPercent |
integer |
The alarm threshold, specified as a percentage. Valid values: 0 to 100. |
80 |
| MaxResults |
integer |
The number of results returned on the current page. |
20 |
| NextToken |
string |
The token to retrieve the next page of results. If this value is empty, all results have been returned. |
eyJvZmZzZXQiOjIwfQ== |
Examples
Success response
JSON format
{
"RequestId": "xxxx-xxxx-xxxx",
"Agents": [
{
"AgentId": "agent-abc",
"InstanceType": "jvs-copilot.standard",
"CreatedTime": "2026-04-01 10:00:00",
"ExpiredTime": "2026-10-01 10:00:00",
"UsedCredit": 100,
"TotalCredit": 2000,
"CreditPackageId": "cp-inst-001",
"WarnPercent": 80
}
],
"MaxResults": 20,
"NextToken": "eyJvZmZzZXQiOjIwfQ=="
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.