Upload file for retrieval
Changed onUploads a file of up to 100 MiB as multipart form data for managed semantic retrieval. Supported formats are PDF, PNG, JPG/JPEG, GIF, WebP, TXT, Markdown, CSV, JSON, JSONL, YAML, LOG, DOCX, DOC, ODT, RTF, HTML, XLSX, XLS, ODS, PPTX, ODP, EML, and MSG. The file is processed, chunked, and embedded asynchronously; the entry appears in GET /retrieval/entries once indexing finishes.
Required permission: retrieval.manage.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Query parameters
Environment ID from GET /environments.
Dot-separated namespace such as docs.api, up to 10 levels. Omit for the default namespace.
Entry identifier. Uploading again with the same ID and namespace replaces the entry. Defaults to the file name.
Keep the file in Files under retrieval/, so search results can link to it. Uploading the entry again with false removes the kept file.
Request body multipart/form-data
File to index, up to 100 MiB. The file name must end in a supported extension that matches the content; it is also the default entry ID.
JSON object as a string, stored with every chunk of the entry, up to 64 KB. file_size and original_filename are always set from the upload.
Response
Successful Response
ID of the ingestion job that chunks and indexes the content.
Job status at submission, pending.
Entry the content is stored under. Generated when not supplied.
Changes
- info
added the new optional
queryrequest parameterkeep_file
- info