Skip to main content
GET
Get Agent Stats

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Headers

x-api-key
string | null

Path Parameters

agent_id
string
required

Response

Successful Response

Statistics for an agent

agent_id
string
required
total_tool_calls
integer
required
blocked_calls
integer
required
avg_risk_score
number
required
anomalies_detected
integer
required
active_sessions
integer
default:0
deprecated

Always 0. Agent session state is not retained across requests; this field is deprecated and will be removed in the next API version.