GET
/v1/chats/{chatId}betauserworkspace
When to use
Poll a conversation for messages, citations and generation status.
For agents
Hosted history requires current app, source and action access, as well as ownership.
Example
import { PermuteAppClient } from '@permute/sdk/app';
const client = new PermuteAppClient();
const result = await client.chats.get('chat_abcdefghijklmnopqrstuvwx');Response
{
"data": {
"id": "chat_abcdefghijklmnopqrstuvwx",
"status": "completed",
"error": null,
"conversation": [
{
"role": "assistant",
"content": "The pipeline contains 11 opportunities."
}
],
"traceSteps": []
}
}