Companies
Decide an approval
Approve or reject a pending gate or tool permission.
Approve or reject a pending gate. Approving a tool permission also resumes the execution that paused for it, once; that part never fails the decision (see continue_error). A reject leaves the execution paused. An approval that is not pending, or not yours to decide, is refused.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Path parameters
plunge), never a row idQuery parameters
Available options: json, yaml, markdown, text
Body
application/jsontext/yaml
Available options: approve, reject
Maximum string length: 65536
Response
The decision as recorded Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
execution_id: true when an approve resumed that execution. A reject leaves it paused (false, no error)invalid_json — body is not valid JSON or YAML; invalid_format — format must be one of json, yaml, markdown, text
application/json
unauthorized — missing, invalid or revoked ozk_ key
application/json
company_not_found — no company with that slug for this account (a foreign slug answers the same); or no approval with that id in this company; not_found — no route for this method on this path: every other method answers it
application/json
the approval was already decided or expired, or is not yours to decide; nothing changed
application/json
invalid_params — a field failed validation; nothing was written
application/json
upstream_error — the company service is unavailable; retry
application/json
not_enabled — the company service is not deployed on this tier
application/json