cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/agent/analyze-behavior \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "agent_id": "<string>", "recent_actions": [ {} ], "session_id": "<string>" } '
{ "is_normal": true, "anomaly_score": 123, "detected_patterns": [ "<string>" ], "recommendations": [ "<string>" ] }
Analyze agent behavior for anomalies.
Detects suspicious patterns like:
API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'
Request to analyze agent behavior
Successful Response
Response from behavior analysis