---
title: "Allow once or deny your pending tool approval"
method: POST
path: "/v1/tool-approvals/{approvalId}/decision"
tags: ["Tool permissions"]
---

# Allow once or deny your pending tool approval

`POST /v1/tool-approvals/{approvalId}/decision`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/tool-approvals/{approvalId}/decision`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Allows a waiting tool call once, or denies it. Only the person who was asked can decide; a 409 means it was already decided.

## Path parameters

- `approvalId` string, required

## Request body

- DecideToolApproval
  - `decision` 'deny' | 'allow_once', required

## Response `200`

Success.

- ToolApproval
  - `id` string, required
  - `context` object, required
    - `kind` 'agent' | 'automation' | 'chat', required
    - `id` string, nullable, required: The agent or Automation; null for a chat.
    - `label` string, nullable, required: The agent's or Automation's name when the call was refused.
  - `runId` string, nullable, required
  - `connectionId` string, required
  - `connectionName` string, required
  - `toolName` string, required
  - `toolTitle` string, required
  - `status` 'pending' | 'denied' | 'allowed_once' | 'always_allowed' | 'used', required
  - `createdAt` string, date-time, required

## Other responses

- `400`: Invalid request.
- `401`: Sign in first.
- `403`: This caller cannot use this operation.
- `404`: Tool permissions are off or the requested resource does not belong to this organization or caller.
- `409`: Someone already decided this.

## Changes

- **2026-11-26** `bc0092687a7b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/tool-approvals/:approvalId/decision/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
