API referenceSections

Approve or decline a change the assistant proposed

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/assistant/conversations/{cid}/actions/{aid}

Approve or decline a change the assistant proposed. Approved, it runs as the caller through its own route, audited with via=assistant, plus assistant.action; then the answer continues as server-sent events

Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
cidpathstringrequired
aidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • decision string required
    Allowed values: "approve" "deny"
  • lang string optional
    Allowed values: "vi" "en"
Example
{
  "decision": "approve",
  "lang": "vi"
}

Responses

200 Events

Content type: text/event-stream

One server-sent event (data: <json>) of a turn

  • type string required
    Allowed values: "text" "tool" "action" "usage" "waiting" "done" "error"
  • text string optional
  • tool AssistantToolEvent optional
    • id string required
    • name string required
    • state string required
      Allowed values: "running" "done" "error"
    • code string optional
  • action AssistantAction optional
    • id string required
    • tool string required
    • state string required
      Allowed values: "pending" "done" "failed" "denied" "expired"
    • code string optional
    • preview object required
      • tool string required
      • target string required
      • changes array<AssistantChange> required
        • field string required
        • from string required
        • to string required
  • usage object optional
    • input_tokens integer optional
    • output_tokens integer optional
    • cache_read_tokens integer optional
    • cache_write_tokens integer optional
  • code string optional
  • message string optional

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required