PermuteDocs
Go to Permute

Chats · chatDecisionsCreate

Confirm or dismiss an action proposal

Resolves a hosted Business Action proposal using its original request ID. Confirmation uses the release-pinned revision and current permissions. It does not accept an arbitrary action or replacement input.

POST/v1/chats/{chatId}/decisions
betauserworkspace

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

typescript
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

json
{
  "requestId": "fce05008-ce10-43f5-ad6c-9c5795f5d1b3",
  "approve": true
}

Response

json
{
  "data": {
    "id": "chat_abcdefghijklmnopqrstuvwx",
    "status": "completed",
    "error": null,
    "conversation": [],
    "traceSteps": []
  }
}