cURL
curl --request GET \ --url https://api.promptguard.dev/api/v1/proxy/agent/{agent_id}/stats \ --header 'X-API-Key: <api-key>'
{ "agent_id": "<string>", "total_tool_calls": 123, "blocked_calls": 123, "avg_risk_score": 123, "active_sessions": 123, "anomalies_detected": 123 }
Get statistics for an agent.
PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.
Successful Response
Statistics for an agent