Skip to main content

Knowledge (Native RAG)

This is Truedy’s only public knowledge workflow. Knowledge Base is a product label for a Knowledge Space; both creation and source management use the native RAG infrastructure. The legacy /knowledge-bases URL is retained as a compatibility alias to the same space resources and does not create a separate legacy corpus. All endpoints require Authorization: Bearer YOUR_API_KEY. Use X-Idempotency-Key on create, update, and archive mutations when a safe retry is needed.

Resource lifecycle

Sources and ingestion

Sources support text, url, sitemap, and private upload kinds. Uploads use POST /knowledge-spaces/{space_id}/sources/upload-url, followed by POST /knowledge-spaces/{space_id}/sources with the returned private storage path. Source creation returns the source, version, and queued ingestion job together.

Create an upload URL

Request body:
The response is 200 OK with data.bucket, data.path, data.signed_url, data.token, data.expires_in, data.content_type, and data.byte_size. Upload the file to the returned signed URL, then create the upload source using the returned path.

Ingestion response

Source creation returns the following response envelope:
Ingestion is processed asynchronously by Truedy. Use the source status returned by the list or source-detail endpoints to observe completion; job inspection and manual retry remain dashboard operations. The compatibility /knowledge-bases URL maps to these same Knowledge Spaces. New integrations should use /knowledge-spaces and the knowledge agent reference with {"kind":"rag_v2","id":"SPACE_ID"}.