---
title: "Resolve an agent tool approval"
method: POST
path: "/api/agent/runs/{runId}/approvals/{approvalId}"
tags: ["Agent"]
---

# Resolve an agent tool approval

`POST /api/agent/runs/{runId}/approvals/{approvalId}`

## Request

- Base URL: `/api/plugins/consensys-asko11y-app/resources` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/plugins/consensys-asko11y-app/resources/api/agent/runs/{runId}/approvals/{approvalId}`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Approves or rejects a pending approval-gated tool call for an agent run. Duplicate same-decision requests are idempotent.

## Path parameters

- `runId` string, required
- `approvalId` string, required

## Headers

- `X-Grafana-Org-Id` string

## Request body

- ApprovalDecisionRequest
  - `decision` 'approved' | 'rejected', required
  - `comment` string
  - `approvalScope` 'once' | 'always': Use always to save a session-scoped grant for this tool after approving it.

## Response `200`

Approval resolved

- ApprovalResolvedEvent
  - `approvalId` string, required
  - `decision` string, required
  - `comment` string
  - `resolvedAt` string, date-time

## Other responses

- `400`: Bad request (invalid parameters or malformed request body)
- `403`: Forbidden (insufficient permissions or RBAC violation)
- `404`: Resource not found
- `409`: Conflict with current resource state

## Changes

- **2026-06-01** `3ccc03eccaef`: 1 info
  - added the new optional request property `approvalScope`
- **2026-05-29** `642c928dd8e4`: 1 info
  - endpoint added
- **2026-02-18** `5e7e9a233e2d`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/changes/api/agent/runs/:runId/approvals/:approvalId/post.md)

---

[API](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) - [All operations](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/revisions/ee3ccd0f186d?raw)
