Quick Start
Get your agent sending events to VIGIL in under 2 minutes. No SDK required — just one HTTP call.
REST API
The VIGIL API is a simple REST API. Every endpoint accepts JSON and returns JSON.
POST /api/ingest
Log a single event from your agent. Core endpoint — call this every time your agent does something.
Headers
Response
🔒 Storage Mode
Every event request accepts a storage_mode field. When set to "local", VIGIL validates your API key and enforces rate limits, but never writes to our database. Events are returned to the client and stored in your browser's IndexedDB. Nothing persists on COSTRINITY servers.
POST /api/ingest (batch)
Log multiple events in a single call. Up to 100 events per request.
TypeScript SDK
Optional typed wrapper around the REST API. Adds retry logic, batching, and type safety.
ElizaOS Plugin
Zero-config plugin for ElizaOS agents. Automatically logs every action your agent takes.
vigil.log() calls manually.Event Schema
Full schema of all fields accepted by the ingest endpoint.
Alerts
Smart alerts watch your agents for you. Configure them from the dashboard — no code needed.
Trigger when an agent hasn't sent an event in N minutes. Catches stuck, crashed, or looping agents.
Alert when error events exceed X% of total events in a rolling window.
Alert when cost_sol total exceeds your limit in 1 hour. Protects against runaway spending.
Alert when a specific action appears — e.g. fire immediately if action === 'emergency-stop'.
Delivery channels
- ✓ Email (all plans)
- ✓ Webhook POST (Pro+)
- ✓ Slack webhook (Team+)
Webhooks
VIGIL can POST to your endpoint when an alert fires. Available on Pro and above.
Webhook requests include a X-VIGIL-Signature header (HMAC-SHA256) so you can verify authenticity. Configure your endpoint URL in the Dashboard → Alerts → Settings.
Rate Limits
Rate limits are per API key. Exceeded requests return 429.
events[] array count as 1 request regardless of event count. Use batching to maximize throughput on high-frequency agents.