Skip to main content

Events

The producer route. One event in, one gate decision out, one ledger record written.

MethodPathScopeSummary
POST/events/events:writeIngest Event

Try it

curl -sf -X POST "$VIGIL_URL/agents/" -H "Authorization: Bearer $VIGIL_KEY" -H "Content-Type: application/json" \
-d '{"agent_id":"docs-api","name":"Docs API"}' > /dev/null || true
curl -sf -X POST "$VIGIL_URL/events/" -H "Authorization: Bearer $VIGIL_KEY" -H "Content-Type: application/json" \
-d '{"agent_id":"docs-api","event_type":"output_generated","payload":{"content_length":512},"dti":0.9}'

Routes

POST /events/

Ingest Event. Scope: events:write.

Request body:

{
"agent_id": "string",
"event_type": "evaluation_score | config_read | config_write | file_operation | monitoring_state_change | output_generated",
"payload": {},
"dti": 0,
"source": "self | platform_hook | otel | change_feed | vigil",
"actor": "string | null"
}
FieldTypeRequiredNotes
agent_idstringyes
event_typeevaluation_score, config_read, config_write, file_operation, monitoring_state_change, output_generatedyes
payloadPayloadyes
dtinumber | nullno
sourceself, platform_hook, otel, change_feed, vigilno
actorstring | nullno

Response 200:

{
"event_id": 0,
"action_id": 0,
"gate_status": "pass | hold | alert | collapse",
"bii": 0,
"composite_trust": 0,
"reason": "string",
"requires_human_review": true
}

Generated from openapi.json (VIGIL 0.2.0). Scopes follow the router dependencies in VIGIL_SPEC.md section 4.2.