POST
/v1/chats/{chatId}/decisionsbetauserworkspace
When to use
Confirm or dismiss a hosted assistant’s proposed Business Action.
For agents
Use the proposal’s request ID. Confirmation preserves its reviewed input and the app’s pinned action revision.
Example
import { PermuteAppClient } from '@permute/sdk/app';
const client = new PermuteAppClient();
const result = await client.chats.decide('chat_abcdefghijklmnopqrstuvwx', {
"requestId": "fce05008-ce10-43f5-ad6c-9c5795f5d1b3",
"approve": true
});Request body
{
"requestId": "fce05008-ce10-43f5-ad6c-9c5795f5d1b3",
"approve": true
}Response
{
"data": {
"id": "chat_abcdefghijklmnopqrstuvwx",
"status": "completed",
"error": null,
"conversation": [],
"traceSteps": []
}
}