API לסוכנים
כל הסוכנים משתמשים ב-API הזה כדי לקרוא ולכתוב נתונים במערכת
אימות
Base URL: https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app
Header (POST/PATCH): X-Agent-Key: ${AGENT_API_KEY}
דוגמת curl (POST עם auth):
curl -X POST https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/agent-reports \
-H "X-Agent-Key: $AGENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agent_id":"vp_eng","title":"Health check","body":"All good","report_type":"daily"}'
-H "X-Agent-Key: $AGENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agent_id":"vp_eng","title":"Health check","body":"All good","report_type":"daily"}'
Board
GET
/api/boardקבל את כל הבורד — Groups + Items + Sub-items
דוגמה:
curl https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/board
הודעות
GET
/api/agent-messages?to=gilקרא הודעות (to=gil | to=vp_eng | ...)
דוגמה:
curl "https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/agent-messages?to=gil&unread=true"
POST
/api/agent-messages🔑 מפתח נדרששלח הודעה לסוכן אחר או לגיל
Request body (JSON):
{ "from_agent": "vp_eng", "to_agent": "gil", "subject": "...", "body": "...", "priority": "high" }דוחות
GET
/api/agent-reports?agent_id=vp_engקבל דוחות (אופציונלי: agent_id, limit)
דוגמה:
curl "https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/agent-reports?limit=5"
POST
/api/agent-reports🔑 מפתח נדרששלח דוח תקופתי
Request body (JSON):
{ "agent_id": "vp_eng", "title": "...", "body": "...", "report_type": "daily" }אירועים
GET
/api/incidents?status=openקבל אירועים (status: open | in_progress | resolved)
דוגמה:
curl "https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/incidents?status=open"
POST
/api/incidents🔑 מפתח נדרשדווח אירוע חדש
Request body (JSON):
{ "agent_id": "vp_it", "title": "...", "description": "...", "severity": "high", "project": "social-ai" }PATCH
/api/incidents/{id}🔑 מפתח נדרשעדכן סטטוס אירוע
Request body (JSON):
{ "status": "resolved" }החלטות
GET
/api/decisions?status=pendingקבל החלטות ממתינות
דוגמה:
curl "https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/decisions"
POST
/api/decisions🔑 מפתח נדרשבקש החלטה מגיל
Request body (JSON):
{ "agent_id": "ceo", "title": "...", "description": "...", "risk_tier": "high" }PATCH
/api/decisions/{id}🔑 מפתח נדרשעדכן תשובת גיל
Request body (JSON):
{ "status": "approved" }זיכרון
GET
/api/agent-memory?agent_id=vp_engקרא זיכרון של סוכן (אופציונלי: key)
דוגמה:
curl "https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/agent-memory?agent_id=vp_eng"
POST
/api/agent-memory🔑 מפתח נדרשכתוב/עדכן ערך בזיכרון
Request body (JSON):
{ "agent_id": "vp_eng", "key": "last_deploy", "value": { "sha": "abc123", "time": "2026-05-01T22:00:00Z" } }כספים
GET
/api/financeקבל כל הכנסות/הוצאות + סיכום P&L
דוגמה:
curl "https://claude-9jz8ta0lf-gilgershovich-clouds-projects.vercel.app/api/finance?type=expense"
POST
/api/finance🔑 מפתח נדרשהוסף רשומת כסף
Request body (JSON):
{ "agent_id": "vp_finance", "type": "expense", "amount_ils": 150, "description": "Anthropic API", "category": "api_usage" }