Monitoring API

Continuous compliance monitoring โ€” schedule automated checks, receive alerts, and configure webhook notifications. All endpoints require JWT authentication.

Schedules (4)

POST /api/v1/monitoring/schedules ๐Ÿ”’
Create a scheduled compliance check.

Request Body

FieldTypeRequiredDescription
frameworkIdstringYesFramework to check
frequencystringYesdaily, weekly, monthly, quarterly
businessProfileobjectYesBusiness profile for checks
notifyOnFailbooleanNoSend alert on failures (default: true)
curl -X POST https://api.privabase.com/api/v1/monitoring/schedules \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "frameworkId": "gdpr",
    "frequency": "weekly",
    "businessProfile": { "collectsPersonalData": true, "hasPrivacyPolicy": true },
    "notifyOnFail": true
  }'
GET /api/v1/monitoring/schedules ๐Ÿ”’
List all monitoring schedules.
DELETE /api/v1/monitoring/schedules/:id ๐Ÿ”’
Delete a monitoring schedule.
POST /api/v1/monitoring/schedules/:id/run ๐Ÿ”’
Trigger an immediate run of a scheduled check.

Results

GET /api/v1/monitoring/results ๐Ÿ”’
Get monitoring check results. Supports filtering by framework, date range, and status.

Webhook Notifications (3)

POST /api/v1/monitoring/webhooks ๐Ÿ”’
Register a webhook URL for monitoring alerts.

Request Body

{
  "url": "https://your-app.com/webhooks/privabase",
  "events": ["check.failed", "check.degraded", "schedule.error"],
  "secret": "your-webhook-secret"
}
GET /api/v1/monitoring/webhooks ๐Ÿ”’
List registered webhooks.
DELETE /api/v1/monitoring/webhooks/:id ๐Ÿ”’
Delete a webhook registration.

Alerts (3)

GET /api/v1/monitoring/alerts ๐Ÿ”’
List compliance alerts โ€” triggered when scheduled checks fail or scores degrade.
POST /api/v1/monitoring/alerts/:id/read ๐Ÿ”’
Mark an alert as read.
POST /api/v1/monitoring/alerts/read-all ๐Ÿ”’
Mark all alerts as read.