Schemas
Error
errorHuman-readable message. Not stable across releases — do not branch on this value.
codeStable machine-readable identifier for this failure. Branch on this. The full list is generated from errorCodes.ts.
messageAdditional detail. Present on authentication failures.
Job
job_idstatusraw_statusUnnormalised status as stored.
kindstagepercenttotal_pagescompleted_pageserrorParse/extract manifest with internal filesystem paths removed. Fetch artifacts through the links object on ArtifactManifest.
created_atstarted_atcancel_requested_atcompleted_atReservation
idstatusestimated_creditsreserved_creditsused_creditsGrant
idresource_typeresource_idaccess_levelRole
idorg_idNull for system roles.
keynamedescriptionpermissionsis_systemcreated_atupdated_atExtractionSchema
idorg_idknowledge_base_idfile_idtitledescriptioncreated_by_user_idcreated_atupdated_atMember
org_iduser_idemailnameorg_rolestatusmust_change_passwordinvited_by_user_idonboarded_atdisabled_atAgent
idorg_idnamedescriptioninstructionscreated_by_user_idcreated_atupdated_atKnowledgebases this agent may read.
ArtifactManifestBody
pagesPage count, when the parse produced one.
ArtifactManifest
idorg_idfile_idfile_version_idjob_idartifact_typeParse/extract manifest with internal filesystem paths removed. Fetch artifacts through the links object on ArtifactManifest.
created_atFetch each non-null link with GET /v1/artifacts/{manifestId}/{artifactKey}. Null means the parse did not produce that artifact.
File
idorg_idknowledge_base_idfolder_idfilenamecontent_typeIncludes sync_relative_path, sync_artifact_fingerprint, sync_size and sync_last_modified for files imported through a folder sync.
created_atupdated_atdeleted_atSet by the soft delete; the row is retained.
FileEnvelope
File row plus its current version. Additional columns may appear; the properties below are the stable contract.
FileRestored
restoredFile row plus its current version. Additional columns may appear; the properties below are the stable contract.
JobEnvelope
RoleEnvelope
KnowledgeBase
idorg_idnamedescriptioncreated_atupdated_atKnowledgeBaseDeleted
deletedpermanentknowledge_base_idknowledge_base_namefiles_deletedfilesystem_roots_removedPer-table row counts removed.
Folder
idorg_idknowledge_base_idparent_folder_idnamecreated_atupdated_atIndexedFileJob
job_idstatusstagepercenterrorcreated_atcompleted_atIndexedFile
file_idfilenamecontent_typefolder_idfolder_namecurrent_version_idversion_numberstorage_pathOpaque bundle key. Fetch artifacts through the links below instead.
sha256byte_sizepage_countcreated_atupdated_atLatest job of this kind for the file, or null if none has run.
Latest job of this kind for the file, or null if none has run.
KnowledgeBaseIndex
EvidenceIndexJob
idorg_idknowledge_base_idmodestatusindex_versionforcerequested_file_idserrorcreated_atupdated_atstarted_atcompleted_atEvidenceIndexSnapshot
index_versionknowledge_base_idcurrent_root_hashsnapshot_idsnapshot_root_hashstatusstale means the parse artifacts changed since the last index run.
indexed_file_countindexed_segment_counttable_segment_countnote_ref_countcompleted_atEvidenceCoordinate
pageNumberxminyminxmaxymaxsourceTypesheetIndexsheetNamestartRowendRowstartColendColrangeA1EvidenceSearchHit
iddocIdfileIdfileVersionIdartifactManifestIdsegmentIddocNametitlemarkdownscoresourceTypePage box for PDFs and images; sheet range for spreadsheets.
noteRefsyearsquartersEvidenceSearchResult
knowledge_base_idindex_versionstatusFileUploaded
FileDeleted
deletedfile_iddeleted_atFilePermanentlyDeleted
deletedpermanentfile_idfilenameFailedJobsCleaned
cleanedcleaned_job_idscleaned_kindsfile_idJobEvent
idjob_idevent_typemessagestagepage_numbercreated_atSegment
iddocIddocNametitlemarkdownpdfUrlxlsxUrlPage box for PDFs and images; sheet range for spreadsheets.
sourceTypeSegmentList
A bare array, not an envelope.
iddocIddocNametitlemarkdownpdfUrlxlsxUrlPage box for PDFs and images; sheet range for spreadsheets.
sourceTypePageImages
availablesourceTypereasonpagesArtifact URLs, one per page image.
pageCountSpreadsheetSheet
indexnamerowCountcolumnCountusedRangehiddenSpreadsheetMetadata
fileIdsourceTypefilenamesheetCountDetected used-range tables.
warningsCorpusDocument
docIdfileIdnamefolderfolderNameknowledgeBaseIdknowledgeBaseNamepdfUrlparseArtifactManifestIdparsedsourceTypesegmentCountparseArtifactCreatedAtparseArtifactStatusCorpusImportResult
Operation
operation_idoperation_typestatusPopulated only once status is completed.
errorcreated_atcompleted_atOperationEnvelope
Queued document workflow. Poll GET /v1/operations/{operationId} until status is completed or failed; output is null until then.
SchemaGenerateOutput
operation_idschema_idmodelIddocumentTypeschemaRationaleModel call counts, token usage and duration.
ExtractRunOutput
operation_idmodelIdwarningsModel call counts, token usage and duration.
ClassifyClassesOutput
operation_idwarningsmodelIdCredits debited by this run.
ClassifyRunOutput
operation_idwarningsmodelIdCredits debited by this run.
EditRunOutput
operation_idproposal_idmodelIdCredits debited by this run.
MePermissions
org_iduser_idorg_rolemust_change_passwordEffective permissions and resource grants for this user.
Chat
idcreatedAttitleuserIdvisibilityChatEnvelope
ChatMessage
idchatIdrolecreatedAtChatDocument
idcreatedAttitlecontentkinduserIdChatDocumentList
A bare array, not an envelope. Every version of the document, oldest first.
idcreatedAttitlecontentkinduserIdSuggestion
iddocumentIddocumentCreatedAtoriginalTextsuggestedTextdescriptionisResolveduserIdcreatedAtApiKeyCreated
permissionsCreditAccount
balance_creditsmonthly_quota_creditsmonthly_reserved_creditsmonthly_used_creditsreserved_creditstotal_used_creditsused_creditsbilling_period_startCreditLedger
ParseDispatch
SyncAccepted
acceptedknowledge_base_idmessageCorpusImportQueued
ManualParsedImport
source_pathServer-local or mounted directory containing raw files plus matching parsed JSON and markdown artifacts.
Optional metadata. Manual parsed import always validates raw + parsed JSON + parsed markdown and does not dispatch processing.
CorpusImportQueueProcessing
normalized_keysOptional normalized bundle keys from pending_decisions. When omitted, every queueable raw bundle from the import is queued.
Optional parse options passed to the processing job.
KnowledgeBaseIndexJobCreate
modeIncremental reindexes changed files only.
forceReindex even when the snapshot is fresh.
file_idsLimit the run to these files.
run_nowRun inline and answer 200 instead of queueing with 202.
KnowledgeBaseSearchRequest
queryLexical full-text query over parsed grounding evidence.
limitDefaults to 30. Above 80 is rejected with 400.
file_idsfolder_idyearssource_typetable_onlyRestrict hits to table segments.
CreditCheckout
price_idquantitycreditssuccess_urlcancel_urlBillingLedgerResponse
Present when view=activity. Parse page debits are grouped by document/job.
FileParseRequest
idempotency_keyOptional override. Defaults to parse:{file_version_id}:{options_hash}.
FileExtractRequest
schema_nameidempotency_keyOptional override. Defaults to extract:{file_version_id}:{schema_hash}:{options_hash}.
BulkFileExtractRequest
file_idsschema_nameidempotency_keyWorkflowModelControls
model_idreasoning_levelidempotency_keyExtractSchemaGenerateRequest
file_idmodel_idreasoning_levelidempotency_keysegment_idstitleExtractRunRequest
file_idmodel_idreasoning_levelidempotency_keyschema_idsegment_idsSplitRulesSuggestRequest
file_idmodel_idreasoning_levelidempotency_keySplitRunRequest
file_idmodel_idreasoning_levelidempotency_keySplitDownloadRequest
file_idstartPageendPagetitleOperationStatusResponse
operation_idoperation_typestatusThe workflow's result. Always null while status is queued/in_progress/failed/cancelled — it is only ever populated once status === "completed". A client that reads output on its first poll (typically still queued/in_progress) will see null, not an empty result; keep polling until status is completed.
errorSet for failed/cancelled operations. Null otherwise.
created_atcompleted_atClassifyClassesSuggestRequest
file_idmodel_idreasoning_levelidempotency_keyguidelinesClassifyRunRequest
file_idmodel_idreasoning_levelidempotency_keylabelsEditRunRequest
file_idpromptmodel_idreasoning_levelidempotency_keyrulesInternalUsageCommit
orgIdjobIdfileVersionIdpageNumberidempotencyKeycreditsInternalUsageFinalize
orgIdjobIdstatusChatCreate
idselectedVisibilityTypeVotePatch
chatIdmessageIdtype
