Skip to content

Ingest API

Base path /api/ingestJWT required. Runs connector ingest jobs, embeds sources for semantic search, and harvests OAI-PMH repositories. Ingest jobs run on the background queue (BullMQ).

Endpoints

MethodPathPurpose
GET/api/ingest/status/:projectIdAll IngestRun records for a project
POST/api/ingest/triggerEnqueue a connector ingest job
POST/api/ingest/embed/:projectIdEmbed all un-embedded sources in a project
POST/api/ingest/oaiHarvest an OAI-PMH repository (synchronous, up to limit records)

Status

GET /status/:projectId returns the IngestRun state machine for each job — useful for showing progress and surfacing failures.

Embeddings

POST /embed/:projectId generates vector embeddings (pgvector) for sources that don't have them yet, enabling per-project semantic search via the Search surface.

→ Related: Connectors · Sources

Released under the MIT License.