---
title: "Execute tool with approval"
method: POST
path: "/api/tools/{tool_id}/approve"
tags: ["tools", "tools"]
---

# Execute tool with approval

`POST /api/tools/{tool_id}/approve`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/tools/{tool_id}/approve`
- Auth: none declared

Execute a tool that requires approval, with an approval token.

Used after getting an approval_required response from /execute.

## Path parameters

- `tool_id` string, required

## Request body

- ToolApprovalRequest: Request for executing a tool with approval.
  - `tool_id` string, required: ID of the tool to execute
  - `params` object: Tool parameters
  - `approval_token` string, required: Token proving user approval
  - `mode` 'draft' | 'auto' | 'supervised' | 'autonomous' | 'background_draft' | 'post_approval' | 'sandbox' | 'voice': Execution modes for the AI agent.
  - `thread_id` string, nullable: Thread/channel ID for context
  - `request_id` string, required: Request ID for idempotency

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
