Skip to main content
POST
/
api
/
v1
/
rag
/
query
Query Knowledge Base
curl --request POST \
  --url https://api.ravan.ai/api/v1/rag/query \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "org_id": "<string>",
  "kb_id": "<string>",
  "query": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "results": [
      {
        "text": "<string>",
        "score": 123,
        "doc_id": "<string>",
        "metadata": {}
      }
    ]
  }
}

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

org_id
string
required
Organization ID
kb_id
string
required
Knowledge Base ID
query
string
required
Search query

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
org_id
string
required

Organization ID

kb_id
string
required

Knowledge Base ID

query
string
required

Search query

Response

200 - application/json

Successful response

success
boolean
message
string
data
object