Gets a paginated list of agent instances for a given agent
GET/api/v2/AgentInstance/:agentCode
Gets a paginated list of agent instances for a given agent
Request
Path Parameters
The unique code identifying the agent.
Query Parameters
Optional user identifier to filter by.
Optional group identifier to filter by.
Optional search term to filter by name.
Default value: desc
Sort direction by start date: "asc" or "desc". Default is "desc".
Default value: 1
The page number to retrieve. Default is 1.
Default value: 20
The number of items per page. Default is 20.
Use this param to override the culture of the response. Options: - en (default) - es
Responses
- 200
- 401
- 403
- 404
- 500
OK
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
Array [
]
Array [
Array [
]
]
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
usage
object
costs
object
citations
object[]
nullable
source
object
nullable
oneOf
input
object[]
nullable
The full set of inputs the instance received during its execution, as key/value parameters.
Populated only when include=input is requested.
skills
object[]
nullable
The skills (plugins) executed during the instance.
Populated only when include=skills is requested.
input
object[]
nullable
usage
object
knowledge
object[]
nullable
The knowledge retrieved during the instance.
Populated only when include=knowledge is requested.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "string",
"name": "string",
"agentVersion": 0,
"startDate": "2024-07-29T15:51:28.071Z",
"endDate": "2024-07-29T15:51:28.071Z",
"timeToFirstToken": 0,
"channel": "string",
"userIdentifier": "string",
"groupIdentifier": "string",
"ipAddress": "string",
"userAgent": "string",
"origin": "string",
"referer": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"costs": {
"prompt": 0,
"completion": 0,
"services": 0,
"total": 0,
"currency": "string"
},
"citations": [
{
"citationIndex": 0,
"startIndex": 0,
"endIndex": 0,
"relevance": 0,
"source": {}
}
],
"type": "string",
"request": "string",
"response": "string",
"input": [
{
"key": "string"
}
],
"skills": [
{
"name": "string",
"tool": "string",
"input": [
{
"key": "string"
}
],
"output": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"success": true,
"error": "string",
"iteration": 0,
"durationMs": 0,
"startDate": "2024-07-29T15:51:28.071Z"
}
],
"knowledge": [
{
"fileId": "string",
"fileName": "string",
"content": "string",
"relevance": 0,
"pageFrom": 0,
"pageTo": 0,
"position": 0,
"totalTokenCount": 0
}
]
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
Array [
]
Array [
Array [
]
]
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
usage
object
costs
object
citations
object[]
nullable
source
object
nullable
oneOf
input
object[]
nullable
The full set of inputs the instance received during its execution, as key/value parameters.
Populated only when include=input is requested.
skills
object[]
nullable
The skills (plugins) executed during the instance.
Populated only when include=skills is requested.
input
object[]
nullable
usage
object
knowledge
object[]
nullable
The knowledge retrieved during the instance.
Populated only when include=knowledge is requested.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "string",
"name": "string",
"agentVersion": 0,
"startDate": "2024-07-29T15:51:28.071Z",
"endDate": "2024-07-29T15:51:28.071Z",
"timeToFirstToken": 0,
"channel": "string",
"userIdentifier": "string",
"groupIdentifier": "string",
"ipAddress": "string",
"userAgent": "string",
"origin": "string",
"referer": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"costs": {
"prompt": 0,
"completion": 0,
"services": 0,
"total": 0,
"currency": "string"
},
"citations": [
{
"citationIndex": 0,
"startIndex": 0,
"endIndex": 0,
"relevance": 0,
"source": {}
}
],
"type": "string",
"request": "string",
"response": "string",
"input": [
{
"key": "string"
}
],
"skills": [
{
"name": "string",
"tool": "string",
"input": [
{
"key": "string"
}
],
"output": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"success": true,
"error": "string",
"iteration": 0,
"durationMs": 0,
"startDate": "2024-07-29T15:51:28.071Z"
}
],
"knowledge": [
{
"fileId": "string",
"fileName": "string",
"content": "string",
"relevance": 0,
"pageFrom": 0,
"pageTo": 0,
"position": 0,
"totalTokenCount": 0
}
]
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
Array [
]
Array [
Array [
]
]
Array [
]
]
Array [
]
items
object[]
nullable
links
object[]
nullable
usage
object
costs
object
citations
object[]
nullable
source
object
nullable
oneOf
input
object[]
nullable
The full set of inputs the instance received during its execution, as key/value parameters.
Populated only when include=input is requested.
skills
object[]
nullable
The skills (plugins) executed during the instance.
Populated only when include=skills is requested.
input
object[]
nullable
usage
object
knowledge
object[]
nullable
The knowledge retrieved during the instance.
Populated only when include=knowledge is requested.
links
object[]
nullable
{
"items": [
{
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
],
"id": "string",
"name": "string",
"agentVersion": 0,
"startDate": "2024-07-29T15:51:28.071Z",
"endDate": "2024-07-29T15:51:28.071Z",
"timeToFirstToken": 0,
"channel": "string",
"userIdentifier": "string",
"groupIdentifier": "string",
"ipAddress": "string",
"userAgent": "string",
"origin": "string",
"referer": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"costs": {
"prompt": 0,
"completion": 0,
"services": 0,
"total": 0,
"currency": "string"
},
"citations": [
{
"citationIndex": 0,
"startIndex": 0,
"endIndex": 0,
"relevance": 0,
"source": {}
}
],
"type": "string",
"request": "string",
"response": "string",
"input": [
{
"key": "string"
}
],
"skills": [
{
"name": "string",
"tool": "string",
"input": [
{
"key": "string"
}
],
"output": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"success": true,
"error": "string",
"iteration": 0,
"durationMs": 0,
"startDate": "2024-07-29T15:51:28.071Z"
}
],
"knowledge": [
{
"fileId": "string",
"fileName": "string",
"content": "string",
"relevance": 0,
"pageFrom": 0,
"pageTo": 0,
"position": 0,
"totalTokenCount": 0
}
]
}
],
"total": 0,
"pageSize": 0,
"page": 0,
"links": [
{
"method": "string",
"url": "string",
"rel": "string"
}
]
}
The user is unauthorized or the session expired
The user does not have permission
The entity was not found
There was an unexpected error