Get a conversation transcript
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/agents/{agent_id}/conversations/{context_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/agents/{agent_id}/conversations/{context_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/agents/{agent_id}/conversations/{context_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){}{
"error": "InvalidArgumentsError",
"message": "Invalid arguments",
"details": {
"errors": []
}
}{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}{
"error": "FORBIDDEN",
"message": "Access denied: missing permission 'ai-insights-v2:analytics:read'"
}{
"error": "METHOD_NOT_ALLOWED",
"message": "Only GET is supported on the monitoring proxy"
}{
"error": "AGENT_FACTORY_ERROR",
"message": "Agent Factory API error: Agent not found"
}Agents
Get a conversation transcript
Returns the messages of one conversation of the agent. The request is
forwarded to Agent Factory; the response body is Agent Factory’s,
returned as is. Only GET is accepted.
Requires ai-insights-v2:conversations (read). No rate limit.
GET
/
v1
/
agents
/
{agent_id}
/
conversations
/
{context_id}
Get a conversation transcript
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/agents/{agent_id}/conversations/{context_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/agents/{agent_id}/conversations/{context_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-insights-v2/webhooks/v1/agents/{agent_id}/conversations/{context_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){}{
"error": "InvalidArgumentsError",
"message": "Invalid arguments",
"details": {
"errors": []
}
}{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}{
"error": "FORBIDDEN",
"message": "Access denied: missing permission 'ai-insights-v2:analytics:read'"
}{
"error": "METHOD_NOT_ALLOWED",
"message": "Only GET is supported on the monitoring proxy"
}{
"error": "AGENT_FACTORY_ERROR",
"message": "Agent Factory API error: Agent not found"
}Authorizations
BearerAuthOrgApiKeyAuth
Path Parameters
Query Parameters
Response
Conversation transcript, as returned by Agent Factory.
The response is of type object.
Was this page helpful?