Skip to content
dimmiDocs

AI agent

Get a knowledge source

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

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.

Response 200

OK
dataobjectrequired
Show child attributes
countsobjectrequired

How many of the source's documents are in each status, keyed by status, such as {"active": 120, "excluded": 4}.

created_atstringrequired

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

Format: date-time

document_countintegerrequired

How many documents the source holds.

Format: int32

excludestring[] | nullrequired

Path patterns of documents to leave out; empty when none.

help_center_idstring | nullrequired

Id of the help center the source's documents go to, starting with hc_. Set when the mode is import or help_center is a target; null otherwise.

idstringrequired

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

includestring[] | nullrequired

Path patterns of documents to keep; empty keeps everything.

last_errorstring | nullrequired

What went wrong in the last sync, in words. Null when there is no error.

last_error_codestring | nullrequired

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

last_runobjectrequired
Show child attributes
created_atstringrequired

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

Format: date-time

errorstring | nullrequired

Why the run failed, in words. Null when it did not.

error_codestring | nullrequired

Short code of the run's error. Null when it did not fail.

finished_atstring | nullrequired

When the run ended. Null while it is queued or running.

Format: date-time

full_runbooleanrequired

True when the run reads the whole source and removes documents it no longer finds; false for a partial run.

idstringrequired

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

objectstringrequired

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

source_idstringrequired

Id of the knowledge source the run belongs to, starting with ks_.

started_atstring | nullrequired

When the run began. Null while it is still queued.

Format: date-time

statsanyrequired

The run's counters as an object of numbers, such as created, updated, unchanged and removed documents.

statusstringrequired

Where the run stands: queued, running, succeeded, partial, failed or canceled.

triggerstringrequired

What started the run: create, manual, schedule, webhook, retry or document.

last_success_atstring | nullrequired

When a sync last succeeded. Null when none has yet.

Format: date-time

last_synced_atstring | nullrequired

When the source was last synced, whether or not it succeeded. Null when it never was.

Format: date-time

modestringrequired

How the source is used: sync keeps a read-only copy refreshed on a schedule; import copies it once into editable help center articles.

namestringrequired

The name the team gave this source.

next_sync_atstring | nullrequired

When the next scheduled sync is due. Null when none is planned, as with a manual schedule.

Format: date-time

objectstringrequired

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

schedulestringrequired

How often the source is synced: manual, hourly, daily or weekly.

secrets_setstring[] | nullrequired

Names of the secret settings that have a value saved; the values themselves are never shown. Empty when none.

settingsanyrequired

The source's own settings without its secrets, an object shaped by the settings schema of its type, such as a website's start address.

statusstringrequired

Where the source stands: idle, queued, syncing, error (see last_error) or paused.

targetsstring[] | nullrequired

Who reads the source's documents: any of agent (the AI agent), operator and help_center.

typestringrequired

What kind of source it is, such as website, notion, github, markdown_upload, zendesk_help_center or intercom_help_center.

updated_atstringrequired

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

Format: date-time

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.