provider agent_platformagent_applications POST /api/projects/{project_id}/agent_applications/{id}/approvals/{approval_id}/decide/
@utdk/posthog /api/projects/{project_id}/agent_applications/{id}/approvals/{approval_id}/decide/
agent_applications_approvals_decide
Approve or reject a queued `agent`-type tool-approval request. This is the OWNER decision surface — the only PostHog-authoritative one: team admins decide here, in the console. `principal`-type approvals are decided by the session principal at the ingress decision API, not here. The runtime side runs the tool platform-side on approve and wakes the session with a synthetic tool_result either way.
approval_id path required
UUID of the approval request to decide.
string
id path required
A UUID string identifying this agent application.
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
agentApplicationsApprovalsDecide
POST/api/projects/{project_id}/agent_applications/{id}/approvals/{approval_id}/decide/
Approve or reject a queued `agent`-type tool-approval request. This is the OWNER decision surface — the only PostHog-authoritative one: team admins decide here, in the console. `principal`-type approvals are decided by the session principal at the ingress decision API, not here. The runtime side runs the tool platform-side on approve and wakes the session with a synthetic tool_result either way.

Parameters

required

UUID of the approval request to decide.

required

A UUID string identifying this agent application.

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

The approver's decision. `approve` runs the tool platform-side with the (possibly edited) args; `reject` records a terminal rejection and wakes the session with a synthetic rejected tool_result. * `approve` - approve * `reject` - reject

Approver-edited tool arguments. Only honoured when the tool's `approval_policy.allow_edit` is `true`; otherwise the janitor returns 422.

Free-form approver note. Surfaces in the session's synthetic tool_result so the model can communicate the reason back to the user.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.agentApplicationsApprovalsDecide()