Agent
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
DELETE | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET |
List all agent applications users
List this agent's end-users (the stable identities behind inbound principals) and each user's linked external connections. Connection metadata only — credential material is never returned.
Required API key scopes
agents:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /agent_applications /:id /usersExample response
Status 200
Delete agent applications users connection
Revoke one of an end-user's linked connections. The credential is marked revoked (kept for audit), so the agent can no longer act as that user on the provider.
Required API key scopes
agents:writePath parameters
- agent_user_idstring
- idstring
- providerstring
Example request
DELETE /api /projects /:project_id /agent_applications /:id /users /:agent_user_id /connections /:providerExample response
Status 204 No response body
Retrieve agent applications
Served-model catalog — each model's id, provider, context window, and USD-per-million-token pricing — plus the curated auto-level → model map. Project-agnostic; sourced from the AI gateway catalog. Powers the config UI model browser and the agent builder's model-choosing skill.
Required API key scopes
agents:readResponse
Example request
GET /api /projects /:project_id /agent_applications /modelsExample response
Status 200
Retrieve agent applications spec
The canonical JSON Schema for an agent spec — every field, type, enum, default, and the discriminated unions for models / triggers[] / tools[], each with an inline description. Emitted from the same source the runner validates against (fields with a default are optional on write), so read it BEFORE composing a spec for create / revisions-spec-update instead of guessing the shape. Pass section to fetch just one part.
Required API key scopes
agents:readQuery parameters
- sectionstring
Response
Example request
GET /api /projects /:project_id /agent_applications /spec_schemaExample response
Status 200
List all agent fleet approvals
Approval-gated tool requests across every agent in this team. Team-admin only.
Required API key scopes
agents:readQuery parameters
- agent_idstring
- limitinteger
- offsetinteger
- statestring
Example request
GET /api /projects /:project_id /agent_fleet /approvalsExample response
Status 200 No response body
Retrieve agent fleet live
Live (non-terminal) sessions across every agent owned by this team, newest activity first.
Required API key scopes
agents:readQuery parameters
- limitinteger
Response
Example request
GET /api /projects /:project_id /agent_fleet /live_sessionsExample response
Status 200
Retrieve agent fleet
Roll-up stats across every agent owned by this team.
Required API key scopes
agents:readQuery parameters
- sincestring
Response
Example request
GET /api /projects /:project_id /agent_fleet /statsExample response
Status 200
List all agent native tools
Read-only catalog of every @posthog/* native tool the runner knows.
Required API key scopes
agents:readExample request
GET /api /projects /:project_id /agent_native_tools