Skip to main content
POST
Retry document ingestion

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Path Parameters

id
string
required
docId
string
required

Response

Re-queued for ingestion

A knowledge base document and its ingestion state.

id
string
kbId
string
orgId
string
source
enum<string>

upload = file, url = fetched page, api = pasted text.

Available options:
upload,
url,
api
uri
string | null
title
string | null
filename
string | null
mime
string | null
sizeBytes
integer
chunks
integer

Indexed chunk count (0 until indexed).

status
enum<string>
Available options:
pending,
indexed,
failed
error
string | null

Human-readable failure/stall reason.

indexedAt
integer | null

Unix ms.

createdAt
integer

Unix ms.