Skip to content
dimmiDocs

AI agent

Read a document again

POST/api/v1/knowledge/sources/{source}/documents/{document}/syncs

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Path parameters

sourcestringrequired

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

documentstringrequired

Id of the knowledge source document, starting with kd_, such as kd_01jx2m8k4t. Find it with GET /knowledge/sources/{source}/documents.

Response 202

Accepted
dataobjectrequired
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.

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.