Ingest Content

Unified endpoint to ingest files, text, URIs, or already processed content

Request

JSON request body supporting multiple input types
artifactstringRequired1-255 characters
Unique identifier for the text being ingested within the collection
inputobjectRequired

Raw input data to be processed and ingested into the system. Can be a file (base64), URI, or plain text

collectionstringOptional1-255 charactersDefaults to pgpt_collection
Collection name to group related documents for better organization and filtering
metadatamap from strings to any or nullOptional

Optional metadata dictionary containing additional document information. If provided, must include ‘file_name’ with a valid file extension

Response

Content successfully ingested and processed
datalist of objects
List of ingested documents with their metadata and processing information
object"list"Defaults to list
Response object type, always 'list' for ingestion responses
model"private-gpt"Defaults to private-gpt

Model identifier, always ‘private-gpt’

Errors

401
Unauthorized Error