Skip to main content
POST
Validate knowledge files

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Body

application/json
files
string<uuid>[]
required

1–10 distinct knowledge file IDs, validated together as one set. Each current version is read; each file must be UTF-8 text of at most 1 MiB.

Required array length: 1 - 10 elements

File UUID, e.g. 01a150b0-b6a4-774f-a0e0-ad385dbc5028; normalized to lowercase.

Response

Validation result for the whole set.

valid
boolean
required

True exactly when no diagnostic is an error.

entries
object[]
required

Every entry, in request file order then line order. Empty unless valid.

diagnostics
object[]
required

Errors and warnings, ordered by file then line. Empty when the set is clean.