/api/Hadiq.io-api prefix.
Documents ingested through this API are tracked separately from connector-synced documents and can only be deleted via this API.
Ingest a document
id already exists, it is updated in place.
Request body
object
required
The document to ingest.
integer
Connector-credential pair to associate the document with. Defaults to the system ingestion CC pair if omitted.
Response
string
The ID of the document that was indexed (either the
id you provided or the derived ID).boolean
true if the document was newly created, false if it replaced an existing document.List ingested documents
Response
An array ofDocMinimalInfo objects.
string
Document identifier.
string
Human-readable title (the
semantic_identifier set at ingestion time).string
Link to the source document, if provided.
Delete an ingested document
Path parameters
string
required
The
document_id returned when the document was ingested (or the id field you provided).204 No Content on success.
List documents by CC pair
Path parameters
integer
required
The CC pair whose documents to list.
Response
Same as list ingested documents — an array ofDocMinimalInfo objects.
Bulk ingestion pattern
To ingest many documents efficiently, loop over your documents and call the ingestion endpoint for each one. The endpoint is idempotent — re-ingesting a document with the sameid updates it in place.
Python