preventedRisks
List persisted risk-mitigated agent activities (guidelines provided/applied, tool calls blocked) for the calling org, newest first, with total count. Powers the VibeSec Risks Prevented page and survives beyond the 7-day Agent Activity Log TTL.
Examples
query PreventedRisks($input: RisksPreventedInput!) {
preventedRisks(input: $input) {
items
total
}
}Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
{
"input": {
"limit": 100,
"offset": 0,
"filter": {
"activityType": ["Prompt"],
"oxAction": ["NoGuidelinesNeeded"],
"user": ["developer@example.com"],
"source": ["Cursor"],
"from": "example",
"to": "example"
}
}
}Arguments
You can use the following argument(s) to customize your preventedRisks query.
Fields
Return type: RisksPreventedResponse!
You can use the following field(s) to specify what information your preventedRisks query will return. Please note that some fields may have their own subfields.
List of prevented risks matching the query criteria
id ID!
updatedAt DateTime!
activityType AgentActivityType!
activityLabel String!
oxAction OxAction!
oxActionLabel String!
userEmail String
userRole String
source VibeCodeSource!
sessionId String
hostId String
machineId String
total Int!
Total number of prevented risks matching the query criteria
Last updated