Skip to content

Sources API

Base path /api/sourcesJWT required. Sources are the UKS Layer A records inside a project.

Endpoints

MethodPathPurpose
GET/api/sources?projectId=&page=&limit=&search=&type=List + filter sources
POST/api/sources/batchAdd many at once (e.g. from a research run)
POST/api/sources/scrape-urlScrape a URL (Jina Reader → direct fetch fallback)
POST/api/sources/verify-linksCheck source-link liveness
PUT/api/sources/:idUpdate a source
DELETE/api/sources/:idDelete a source
POST/api/sources/:id/kbToggle the knowledge-base bookmark
POST/api/sources/dedup/:projectIdRun entity resolution / dedup

Listing

GET /api/sources supports pagination (page, limit), full-text search, and a type filter, scoped to projectId.

Field shape

Each source follows the UKS Source schemaevidence_grade, clinical_status, credibility_score, and per-record license are preserved. domain_data is merged, never overwritten, so deep-analysis results accumulate.

→ Related: Projects · Research · Source Fields

Released under the MIT License.