Skip to Content

Webhooks

Webhooks are planned but not yet implemented. Use the Activity Stream (SSE) for real-time events.

Planned Webhook Events

EventTrigger
note.createdA new note was added
note.updatedA note was modified
note.contestedA note was challenged
link.createdA new link was created
recall.queryA recall query was executed
quota.warningUsage approaching limit (80%)
quota.exceededUsage limit reached

Planned Configuration

curl -X POST https://api.cortex-app.dev/api/webhooks \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-app.com/webhooks/cortex", "events": ["note.created", "note.contested"], "secret": "your-webhook-secret" }'

Payload Format

{ "event": "note.created", "timestamp": "2025-03-10T14:30:00Z", "data": { "id": "note_abc123", "title": "Active recall beats passive review", "note_type": "fact" }, "signature": "sha256=..." }

Verify the signature using your webhook secret to ensure the request is from Cortex.

Last updated on