Skip to main content

Sources API

Create, read, update, and delete sources.

Create Source

string
required
Human-readable name for the source
string
required
Source type: repo, docs, or pdf (PDFs can also be created via POST /sources/upload)
string
required
Git URL for repos, base URL or spec URL for docs
string
Git branch (repos only, default: main)
string
Docs format: html or openapi (default: html)
string[]
Explicit URL list for HTML docs
boolean
Use sitemap for URL discovery (HTML docs only)
string[]
Glob patterns to include
string[]
Glob patterns to exclude

List Sources

Get Source

Update Source

Delete Source

Deletes the source and all its indexed content.

Trigger Sync

Starts a background job to sync the source.
Returns 409 Conflict if a sync is already running for this source.

Upload PDF (multipart)

Creates a pdf source from an uploaded file and queues ingestion.
Form fields:
  • file: PDF binary (multipart/form-data)
  • name: Display name for the source