Indexer API
Source: backend/app/api/indexer.py
Overview
Background web indexer for crawling and extracting content from configured URLs.
Add Source
POST /api/indexer/sourcesRequest:
json
{
"url": "https://example.com/docs",
"label": "Example Docs"
}List Sources
GET /api/indexer/sourcesResponse:
json
{
"sources": [
{
"id": "uuid",
"url": "https://example.com/docs",
"label": "Example Docs",
"enabled": true
}
]
}Toggle Source
PUT /api/indexer/sources/{id}/toggleRequest:
json
{
"enabled": false
}Remove Source
DELETE /api/indexer/sources/{id}Trigger Crawl
Manually trigger a crawl of all enabled sources.
POST /api/indexer/crawlBackground Daemon
Get Status
GET /api/indexer/statusStart Indexer
Start the background daemon.
POST /api/indexer/start?interval_minutes=60Stop Indexer
POST /api/indexer/stop