Create an approval request

Returns immediately with an event_id; poll the result endpoint by it for the decision.

Authentication

AuthorizationBearer

Organization-scoped API key.

Headers

X-API-VersionstringRequired
Idempotency-KeystringRequired

Idempotency key; duplicate submissions return the original event.

Request

This endpoint expects an object.
projectNamestringRequired>=1 character

Slug of an existing project (create it ahead of time)

summarystringRequired>=1 character

Human-readable summary of the action needing approval

taskIdstringRequired

Target task — create one via POST /tasks first

attachmentslist of stringsOptional

Upload ids of attached files to render for this request (must already be attached to the task)

externalTraceIdstringOptional
Optional link to the agent author's observability trace
keyValueContextmap from strings to stringsOptional

Display context as a plain key→value object (order/dup-keys are the client’s concern)

recommendationobjectOptional

Response

Created