RAG

Create Collection

Create a new RAG knowledge base collection.

post/api/rag/collections

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/rag/collections
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

namestring required

Collection name

descriptionstring

Optional description

embedding_providerstring

openai | gemini

scopestring

project = shared project KB; user = personal KB on ecosystem cell

home_project_idinteger nullable

When session project_id is ecosystem (1), set this to the tenant project that should own RAG rows (requires read access).

Example request

{
  "description": "Mentor transcripts",
  "embedding_provider": "openai",
  "home_project_id": 1445,
  "name": "mentor-kb",
  "scope": "project"
}

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.