Skip to content
dimmiDocs

AI agent

List a knowledge source's documents

GET/api/v1/knowledge/sources/{source}/documents

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:read ability

Path parameters

sourcestringrequired

Id of the knowledge source, starting with ks_, such as ks_01jx2m8k4t. Find it with GET /knowledge/sources.

Query parameters

statusstring

active, error, excluded, pending or removed.

Available options:activeerrorexcludedpendingremoved

qstring

Words to search for, such as refund.

Maximum length: 200

afterstring

Leave out for the first page; pass the cursor the previous page returned for the next.

Maximum length: 2100

limitinteger

How many items to return in one page, such as 25.

Format: int32 · Maximum: 100

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
chunk_countintegerrequired

How many searchable pieces the document's text was cut into.

Format: int32

errorstring | nullrequired

Why the document could not be fetched or indexed, in words. Null when there is no error.

error_codestring | nullrequired

Short code of the document's error. Null when there is no error.

excluded_bystring | nullrequired

Why the document is left out: member, robots, pattern, js_rendered, duplicate, too_large, unsupported_type, empty or draft. Null when it is not excluded.

external_idstringrequired

The document's own id at its source, such as its address for a website page. Unique within the source.

fetched_atstring | nullrequired

When the document was last fetched from its source. Null when it never was.

Format: date-time

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

indexed_atstring | nullrequired

When the document was last made searchable. Null when it is not indexed yet.

Format: date-time

linked_article_idstring | nullrequired

Id of the help center article this document was imported into, starting with art_. Null when there is none.

localestringrequired

The document's language as a language code, such as en. Empty when unknown.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

pathstringrequired

Where the document sits in its source, such as /docs/billing/refunds. Include and exclude patterns match against it.

statusstringrequired

Where the document stands: pending, active (searchable), excluded, error or removed.

titlestringrequired

The document's title. Empty when it has none.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

urlstring | nullrequired

The document's address at its source. Null when it has none.

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.