Skip to content

Search sources

GET
/api/v1/sources/search

Case-insensitive substring match. Newest first, paginated.

NameType
query
required
string

The search term

page
integer
default: 1 >= 1

Page number; 20 records per page

200

Matching sources

Response body
Media typeapplication/json
object
sources
Array<object>
object
id
string
title
string
description
string | null
state
string
Allowed values: new ocr_job_started ocr_job_completed ocr_job_failed ocr_data_processed embedding_complete embedding_failed

Processing state. Passages are searchable once embedding_complete.

file
object
filename
string
content_type
string
byte_size
integer
download_url
string | null format: uri

The download endpoint for this source

created_at
string format: date-time
updated_at
string format: date-time
pagination
object
current_page
integer
total_pages
integer
total_count
integer
items_per_page
integer
from
integer | null

1-based index of the first record on this page

to
integer | null

1-based index of the last record on this page

400

A required parameter is missing

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation