Skip to main content
POST
/
api
/
v1
/
rag
/
create-knowledge-base
Create Knowledge Base
curl --request POST \
  --url https://api.ravan.ai/api/v1/rag/create-knowledge-base \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "knowledge_base_name": "<string>",
  "enable_auto_refresh": true
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "knowledge_base_id": "<string>",
    "knowledge_base_name": "<string>",
    "status": "<string>",
    "enable_auto_refresh": true,
    "knowledge_base_sources": [
      {
        "source_id": "<string>",
        "source_type": "<string>",
        "source_name": "<string>",
        "source_url": "<string>",
        "source_status": "<string>",
        "created_timestamp": 123
      }
    ],
    "created_timestamp": 123,
    "last_updated_timestamp": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ravan.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
required
Your Agni API key. Find it in your RavanAi.

Body

knowledge_base_name
string
required
Name for the knowledge base
enable_auto_refresh
boolean
Whether to enable automatic refresh of sources

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Returned data.

Authorizations

X-Api-Key
string
header
required

Body

application/json
knowledge_base_name
string
required

Name for the knowledge base

enable_auto_refresh
boolean

Enable automatic refresh of sources

Response

201 - application/json

Created

success
boolean
message
string
data
object