Get agent instance detail
GET/api/v2/agent/:agentCode/instance/:agentInstanceId
Gets the detail of a single system-agent instance (Chat / Activity / AIProxyRequest). The base response always includes the instance request and response; use include to expand optional execution sections (input, skills, knowledge), each loaded only when requested.
Request
Path Parameters
The unique code identifying the agent the instance belongs to.
The instance id.
Query Parameters
Comma-separated list of optional sections to include: input (the full set of inputs the instance
received), skills, knowledge. Each section is loaded only when requested.
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 [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
Array [
]
Array [
Array [
]
]
Array [
]
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": [
{
"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
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
Array [
]
Array [
Array [
]
]
Array [
]
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": [
{
"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
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
Array [
]
Array [
Array [
]
]
Array [
]
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": [
{
"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
}
]
}
The user is unauthorized or the session expired
The user does not have permission
The entity was not found
There was an unexpected error