Skip to main content
POST
Decide a request

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Path Parameters

conversation_id
string
required

The conversation’s id.

Body

application/json

Exactly one of approval, answer or action.

approval
object

Approves or denies an approval item of the conversation (its approval_id).

answer
object

Answers a question item of the conversation (its question_id).

action
object

An A2UI action on a request’s surface (the item’s surface_id), as a renderer sends it (or wrapped as { version: "v0.9", action }): on an approval item’s, name is approve or deny (and context.note, if any, the note); on a question item’s, its form’s submit (context: { answer: ["<option>"] }, or { answer: "<text>" } with no options).

Response

The request, decided.

A request decided (POST /v1/conversations/{conversation_id}/decisions, or the responses route when no reply was paused for it): the approval or question as it is now.

object
any
approval
object

A request for a yes before something runs: a task from a procedure whose Approval is on (scope: run), an HTTP tool with approval: "always", or one guarded step of a task (scope: step). Described by Eager, never by the model. Open while decision is null; the first decision counts.

question
object

A question a task asks, drawn as a form: a choice from options (or something else), or short text. Open while answer is null; the first answer counts.