Get conversation by id (deprecated)
GET/api/v2/conversation
This endpoint is obsolete. Please use '/api/v2/agent/{agentCode}/conversation/{conversationId}' instead.
Request
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
Responses
- 200
- 401
- 403
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
Array [
Array [
]
]
Array [
]
Array [
- KnowledgeFile
- KnowledgeWebsite
- WebSearch
]
]
messages
object[]
nullable
The conversation messages in chronological order, each with the per-message sections requested via include.
metaAnalysis
object
Meta-analysis produced for the message when the agent has meta-analysis enabled. Free-form: the set of sections depends on the agent's configuration.
Meta-analysis produced for the message when the agent has meta-analysis enabled. Free-form: the set of sections depends on the agent's configuration.
tokenUsage
object
attachedVolatileKnowledges
object[]
nullable
executorTaskLogs
object[]
nullable
input
object[]
nullable
The input used in the message execution. Populated only when include=input.
skills
object[]
nullable
The skills executed for this message. Populated only when include=skills.
input
object[]
nullable
usage
object
knowledge
object[]
nullable
The knowledge retrieved for this message. Populated only when include=knowledge.
citations
object[]
nullable
The citations associated with this message. Populated only when include=citations.
source
object
nullable
oneOf
costs
object
{
"id": "string",
"name": "string",
"startDate": "2024-07-29T15:51:28.071Z",
"endDate": "2024-07-29T15:51:28.071Z",
"messagesJson": "string",
"userIdentifier": "string",
"conversationStarters": [
"string"
],
"useVision": true,
"open": true,
"messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sender": "string",
"type": "string",
"value": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"metaAnalysis": {},
"tokenUsage": {
"promptTokens": 0,
"completionTokens": 0,
"reasoningTokens": 0,
"cacheWriteTokens": 0,
"cacheReadTokens": 0,
"calculatedSystemDefinitionTokens": 0,
"calculatedKnowledgeTokens": 0,
"calculatedVolatileKnowledgeTokens": 0,
"calculatedUserMessageTokens": 0,
"calculatedMessagesTokens": 0,
"calculatedSkillInputTokens": 0,
"usedSkills": true,
"includedVision": true
},
"attachedVolatileKnowledges": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"expirationDate": "2024-07-29T15:51:28.071Z",
"fileId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"fileName": "string",
"fileSize": 0,
"downloadUrl": "string"
}
],
"executorTaskLogs": [
{
"key": "string",
"description": "string",
"duration": 0,
"success": true
}
],
"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
}
],
"citations": [
{
"citationIndex": 0,
"startIndex": 0,
"endIndex": 0,
"relevance": 0,
"source": {}
}
],
"costs": {
"prompt": 0,
"completion": 0,
"services": 0,
"total": 0,
"currency": "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