---
title: "Discover URLs"
method: POST
path: "/api/v1/rag/discover"
tags: ["RAGService"]
---

# Discover URLs

`POST /api/v1/rag/discover`

## Request body

- DiscoverURLsRequest
  - `url` string, required — Root URL to discover from
  - `max_depth` integer — Max crawl depth
  - `limit` integer — Max URLs to return

## Response `200`

Successful response

- DiscoverURLsResponse
  - `success` boolean
  - `message` string
  - `data` object
    - `urls` string[] — Discovered URLs

---

[API](https://skmtc.net/ravan/apis/agni-api.md) · [All operations](https://skmtc.net/ravan/apis/agni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ravan/agni-api/revisions/48f45dc58534/schema)
