Skip to main content
GET
Get Agent Knowledge Base
List does NOT return document bodies by default.Each item is metadata only (id, name, url, tags, ts, status, etc.). The content field is usually empty or the placeholder string IN CONTENT URL — that is not the scraped/uploaded text.To load real content, either:
By default results are sorted by ts (newest first). Docs missing a ts field are excluded from that order — pass orderBy=id to paginate every KB document.
Pagination (pick one):
  • Preferred: pass nextCursor from the previous response as cursor.
  • Legacy: page + pageSize (max 50). Page 2+ advances with Firestore offset.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

Query Parameters

cursor
string
limit
integer
Required range: 1 <= x <= 50
tags
string
Maximum string length: 512
searchQuery
string
Maximum string length: 256
includeTotal
boolean
includeContent
boolean
page
integer
Required range: x >= 1
pageSize
integer
Required range: 1 <= x <= 50
orderBy
enum<string>
Available options:
id,
ts

Response

Successful response

success
boolean
required
message
string
required
data
object[]
required
total
number | null
required
pageSize
number
required
hasMore
boolean
required
nextCursor
string | null
required
totalPages
number | null
required
currentPage
number | null
required