provider agent_platformagent_fleet GET /api/projects/{project_id}/agent_fleet/stats/
@utdk/posthog /api/projects/{project_id}/agent_fleet/stats/
agent_fleet_stats
Roll-up stats across every agent owned by this team.
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
since query
ISO datetime — counts spend + session totals from this point forward. Defaults to 24h ago.
string

Try it

Authentication
Configure credentials for PostHog API
agentFleetStats
GET/api/projects/{project_id}/agent_fleet/stats/
Roll-up stats across every agent owned by this team.

Parameters

required

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

ISO datetime — counts spend + session totals from this point forward. Defaults to 24h ago.

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.agentFleetStats()