---
title: "Confirm or reject a destructive AI tool action"
method: POST
path: "/api/{org_id}/ai/confirm/{session_id}"
tags: ["AI"]
---

# Confirm or reject a destructive AI tool action

`POST /api/{org_id}/ai/confirm/{session_id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/ai/confirm/{session_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/ai/confirm/:session_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Forwards user confirmation or rejection to the o2-sre-agent service for a pending destructive tool call.

## Path parameters

- `org_id` string, required
- `session_id` string, required

## Request body

- object

## Response `200`

Confirmation forwarded

- object

## Other responses

- `400`: Invalid session ID, malformed body, or AI agent not configured
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
