Skip to main content
POST
Ingest Knowledge
Use this API to submit reference material (guidelines, standards, policy docs) to your Memory knowledge base. Ingestion is asynchronous: the call returns immediately with a sourceId, and conversion, rule extraction, and embedding run in the background. Poll Get Ingest Status until the status is terminal. Supported file types: PDF, CSV, Excel (.xlsx), and plain text.

Endpoint

POST https://api.velt.dev/v2/memory/knowledge/ingest Rate limit: 30 requests per minute per API key.

Headers

string
required
Your API key.
string
required

Body

Params

The request is a discriminated union on source: send source: "inline" with a base64 file (decoded size up to 5 MB, 5,242,880 bytes), or source: "fileRef" with a gs:// URI from Get Upload URL (up to 30 MB, 31,457,280 bytes).
object
required
On an inline upload, the server verifies file.mimeType against the file’s own bytes. A mismatch, or a text/csv or text/plain file that is not valid UTF-8, returns INVALID_ARGUMENT. This endpoint also rejects unrecognized fields, so a misspelled key returns INVALID_ARGUMENT instead of being ignored.

Example Requests

Inline (file up to 5 MB)

By reference (file up to 30 MB)

Response

Ingestion runs in the background. Poll Get Ingest Status with the returned sourceId until the status is completed or failed.

Success Response

Failure Response