POST
/
api
/
v1
/
rag
/
discover
curl -X POST https://api.ravan.ai/api/v1/rag/discover \
  -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"url": "https://docs.example.com", "max_depth": 3, "limit": 50}'
{
  "success": true,
  "message": "Discovery completed",
  "data": {
    "urls": [
      "https://docs.example.com/",
      "https://docs.example.com/getting-started",
      "https://docs.example.com/api-reference",
      "https://docs.example.com/pricing"
    ],
    "total": 4
  }
}

Authorizations

X-Api-Key
string
required
Your Agni API key.

Body

url
string
required
Root URL to start crawling from.
max_depth
integer
Maximum link depth to follow. Default: 5.
limit
integer
Maximum number of URLs to return. Default: 100.

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Discovered URLs and total count.
curl -X POST https://api.ravan.ai/api/v1/rag/discover \
  -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"url": "https://docs.example.com", "max_depth": 3, "limit": 50}'
{
  "success": true,
  "message": "Discovery completed",
  "data": {
    "urls": [
      "https://docs.example.com/",
      "https://docs.example.com/getting-started",
      "https://docs.example.com/api-reference",
      "https://docs.example.com/pricing"
    ],
    "total": 4
  }
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
url
string
required
max_depth
integer
default:5
limit
integer
default:100

Response

Successful response