Skip to main content
The Risk API provides six endpoints for assessing, retrieving, and verifying risk scores for individual agents and teams. All endpoints require authentication via Bearer token or API key. GET endpoints that retrieve a stored resource by ID are account-scoped — a valid token from a different account returns 404 rather than 403 to avoid leaking resource existence. See Authorization model for the full specification.

Endpoints

Assess individual risk

Compute a context-aware risk assessment for an individual agent. Request body: Example request:
Response: A RiskAssessment object with risk_score, risk_level, recommendation, confidence, contributing_factors, suggested_thresholds, explanation, proof_id, proof_status (none immediately after creation on the Free tier or when async proof dispatch does not complete; progresses to pendingcompleted or failed as the proof generates — see proof lifecycle), and created_at.

Assess team risk

Compute a risk assessment for a team of agents, including three-pillar analysis, Shapley attribution, outlier detection, and synergy classification. Request body: Example request:
Response: A TeamRiskAssessment object with team_risk_score, team_risk_level, team_coherence_score, team_recommendation, pillar breakdowns (portfolio_risk, coherence_risk, concentration_risk, weakest_link_risk), shapley_values, outliers, clusters, value_divergences, synergy_type, individual_assessments, explanation, and proof fields.

Get assessment

Retrieve a previously computed individual risk assessment by ID. Returns 404 for IDs that belong to a different account.

Get team assessment

Retrieve a previously computed team risk assessment by ID. Returns 404 for IDs that belong to a different account — see Authorization model.

Get risk history

Retrieve risk assessment history for an agent, ordered by most recent first. Query parameters:

Get proof

Retrieve the ZK proof status and receipt for a risk assessment. Returns 404 for IDs that belong to a different account. Response includes:

Feature gating

Risk endpoints require the risk_assessment feature to be enabled on the caller’s billing plan. Team risk requires the team_risk_assessment feature. ZK proofs require the zk_proofs feature. See Pricing for plan details.

Error codes