Skip to main content
GET
/
api
/
v1
/
rag
/
document
Get Document
curl --request GET \
  --url https://api.ravan.ai/api/v1/rag/document \
  --header 'X-Api-Key: <api-key>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "doc_id": "<string>",
    "kb_id": "<string>",
    "org_id": "<string>",
    "text": "<string>",
    "url": "<string>",
    "status": "<string>",
    "metadata": {},
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Authorizations

X-Api-Key
string
required
Your Agni API key used to authenticate the request. Pass it in the X-Api-Key header. Find or rotate it from your Ravan AI account settings.

Query Parameters

org_id
string
required
The organization ID that owns the resource. Use the organization ID from your Agni account.
doc_id
string
required
The unique document ID in the knowledge base. Use a stable ID so later upserts update the same document.

Response

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

Authorizations

X-Api-Key
string
header
required

Query Parameters

org_id
string
required

Organization ID

doc_id
string
required

Document ID

Response

200 - application/json

Successful response

success
boolean
message
string
data
object