feat: OpenClaw external agent sync API at /api/openclaw/*

- API key auth via x-openclaw-key header (OPENCLAW_API_KEY env var)
- GET  /api/openclaw/sync/status
- POST /api/openclaw/sync/autotask/incremental
- POST /api/openclaw/sync/autotask/full
- POST /api/openclaw/sync/autotask/entity   { entities: [...] }
- POST /api/openclaw/sync/datto-rmm          { syncType: full|incremental }
- POST /api/openclaw/sync/sentinelone
- POST /api/openclaw/sync/veeam              { syncType: full|incremental }
- POST /api/openclaw/sync/zoom
- POST /api/openclaw/sync/engagement
- POST /api/openclaw/sync/qbo                { syncType: full|incremental }
- POST /api/openclaw/sync/zabbix
- POST /api/openclaw/sync/itglue
All routes bypass Better Auth middleware, delegate to existing sync services
This commit is contained in:
lorentz 2026-03-17 23:26:44 -04:00
parent eea66de129
commit 5be7b22953
14 changed files with 450 additions and 0 deletions

View file

@ -20,6 +20,8 @@ const publicRoutes = [
"/api/integrations/status",
// Legal pages required by Intuit
"/legal",
// OpenClaw external agent API (auth via x-openclaw-key header)
"/api/openclaw",
// Sync endpoints called by scheduler
"/api/sync",
"/api/datto-rmm/sync",