- The account must have Knowledge Base (RAG) enabled.
- The organization must have Knowledge Base (RAG) enabled.
403 forbidden.
Workflow
- Create or list knowledge bases for an organization.
- Add sources to a knowledge base.
- For file sources, upload the file to the returned presigned URL, then enqueue ingestion.
- Assign the knowledge base to an agent with Update Agent.
- Enable
ragEnabledfor that agent.
Endpoints
| Endpoint | Purpose |
|---|---|
GET /v1/organizations/{organization_id}/knowledge-bases | List knowledge bases |
POST /v1/organizations/{organization_id}/knowledge-bases | Create a knowledge base |
PUT /v1/knowledge-bases/{knowledgeBaseId} | Rename/update a knowledge base |
DELETE /v1/knowledge-bases/{knowledgeBaseId} | Delete a knowledge base |
GET /v1/knowledge-bases/{knowledgeBaseId}/sources | List sources |
POST /v1/knowledge-bases/{knowledgeBaseId}/sources | Create a URL or file source |
POST /v1/knowledge-sources/{sourceId}/enqueue | Enqueue file ingestion after upload |
POST /v1/knowledge-sources/{sourceId}/reingest | Re-ingest a source |
DELETE /v1/knowledge-sources/{sourceId} | Delete a source |
GET /v1/rag/jobs/{jobId} | Poll ingestion job status |
