Skip to Content
Docs

Get sources with pagination, sorting and filtering

GET
/api/sources/paginated

Get sources with pagination, sorting and filtering. Each row carries used_by (the agents using it). kind_counts counts every kind with the search and usage filters applied; usage_counts counts all/in_use/unused with the search and kind filters applied.

Personal access token scope: sources:read.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Query Parameters

page?string

Page number, from 1

rows?string

Rows per page

sort?string

date (default), name, tokens, type, created_at or updated_at

order?string

asc or desc (default)

search?string

Substring of the name, case-insensitive

kind?string

all (default), files, websites, synced, wikis, or shared (sources a team shares with the caller, of any kind)

usage?string

all (default), in_use (some agent uses it) or unused

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/sources/paginated'
Example Response200
Empty