AI agent
Let a document back in
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Path parameters
sourcestringrequiredId of the knowledge source, starting with ks_, such as ks_01jx2m8k4t. Find it with GET /knowledge/sources.
documentstringrequiredId of the knowledge source document, starting with kd_, such as kd_01jx2m8k4t. Find it with GET /knowledge/sources/{source}/documents.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
errorstring | nullrequiredWhy the run failed, in words. Null when it did not.
error_codestring | nullrequiredShort code of the run's error. Null when it did not fail.
finished_atstring | nullrequiredWhen the run ended. Null while it is queued or running.
Format: date-time
full_runbooleanrequiredTrue when the run reads the whole source and removes documents it no longer finds; false for a partial run.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
source_idstringrequiredId of the knowledge source the run belongs to, starting with ks_.
started_atstring | nullrequiredWhen the run began. Null while it is still queued.
Format: date-time
statsanyrequiredThe run's counters as an object of numbers, such as created, updated, unchanged and removed documents.
statusstringrequiredWhere the run stands: queued, running, succeeded, partial, failed or canceled.
triggerstringrequiredWhat started the run: create, manual, schedule, webhook, retry or document.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.