POST
/v1/chatsbetauserworkspace
When to use
Start a conversation that will accept further messages.
For agents
Requires a user session. Reuse the first request ID on retry; poll the returned chat ID. Answer jobs remain one-shot analysis.
Example
import { PermuteAppClient } from '@permute/sdk/app';
const client = new PermuteAppClient();
const result = await client.chats.create({
"action": "send_message",
"clientRequestId": "first_turn",
"message": "Show the pipeline"
});Request body
{
"action": "send_message",
"clientRequestId": "first_turn",
"message": "Show the pipeline"
}Response
{
"data": {
"id": "chat_abcdefghijklmnopqrstuvwx",
"status": "running",
"error": null,
"conversation": [
{
"role": "user",
"content": "Show the pipeline"
}
],
"traceSteps": []
}
}