API Documentation
AI Knowledge Engine API — v0.1.0
Base URL
Base endpoint for all API requests
http://localhost:3000Service Approval Flow
Draft←
Needs Review←
Approved←
Published
Endpoints
כללי
GET
/healthבדיקת תקינות השרת
סריקה
POST
/scanהתחלת סריקת אתר חדשה
{ "url": "https://example.com", "maxPages": 30 }GET
/scan/:idפרטי סריקה
GET
/scan/:id/statusסטטוס סריקה
GET
/scan/business/:businessIdכל הסריקות של עסק
שירותים
GET
/services/business/:businessIdכל השירותים של עסק
GET
/services/:idפרטי שירות
GET
/services/:id/profileפרופיל מלא של שירות
PUT
/services/:idעריכת שירות
PUT
/services/:id/statusעדכון סטטוס שירות
{ "status": "approved" }GET
/services/:id/scoresניקוד שירות
קטלוג
GET
/catalog/business/:businessIdקטלוג AI מלא (JSON)
GET
/catalog/business/:businessId/markdownקטלוג בפורמט Markdown
GET
/catalog/business/:businessId/csvקטלוג בפורמט CSV
סוכן AI
GET
/agent/catalog/servicesכל השירותים המפורסמים (לסוכני AI)
POST
/agent/recommendהמלצה על שירותים לפי צורך משתמש
{ "userNeed": "אני צריך אתר חדש", "budget": "5000-10000" }GET
/agent/catalog/recommend?intent=המלצה לפי כוונת חיפוש
GET
/agent/catalog/evidence?serviceId=חבילת הוכחות לשירות
Full Example — End-to-End Scan
# 1. Start a scan
curl -X POST http://localhost:3000/scan \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "maxPages": 30}'
# Response: { "scanId": "abc123", "businessId": "xyz", "status": "queued" }
# 2. Check status
curl http://localhost:3000/scan/abc123/status
# 3. Get services
curl http://localhost:3000/services/business/xyz
# 4. Get AI catalog
curl http://localhost:3000/catalog/business/xyz
# 5. Get AI agent recommendation
curl -X POST http://localhost:3000/agent/recommend \
-H "Content-Type: application/json" \
-d '{"userNeed": "I need a new website for my business"}'