External API

WEMS Knowledge Crawler API Guide

All endpoints use a consistent JSON envelope. Member login, logout, registration, profile changes, and permission lookup are not handled here; use the centralized member API.

API integration
Base URL: https://knowledge.sun-bd.com
Response envelope:
{
  "success": true,
  "traceId": "...",
  "data": { }
}

Crawler API

GET

/api/v1/health

Service health, version, public base URL, and live-crawl status.

GET

/api/v1/sources

Configured source catalog, keywords, and affected documents.

GET

/api/v1/status

Source count, report path, latest report, and pending update state.

GET

/api/v1/reports/latest

Latest crawler report, or a 404 envelope when no report exists.

POST

/api/v1/crawl/simulate

Safe offline simulation; no external fetch and no report write.

Central Member API

GET

/api/v1/member/integration

Returns centralized member API metadata, callback URL, required permissions, and disabled local-member behavior.

POST

/api/v1/member/callback/simulate

Simulates centralized login returning to this project. Sensitive credential fields are rejected and no local session is created.

curl https://knowledge.sun-bd.com/api/v1/member/integration

curl -X POST https://knowledge.sun-bd.com/api/v1/member/callback/simulate \
  -H "Content-Type: application/json" \
  -d "{\"state\":\"demo\",\"returnedFields\":{\"memberId\":\"demo-001\",\"loginId\":\"demo.user\",\"companyId\":\"co-prod\"}}"

Central member API guide: https://loginapi.sun-bd.com/docs/integration/member-login-logout.html