Upsert Document
RAG Knowledge Base API
Upsert Document
Upsert Document.
POST
Upsert Document
Authorizations
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.Body
The organization ID that owns the resource. Use the organization ID from your Agni account.
The unique knowledge base ID. Use the ID returned by the knowledge base create or list endpoint.
The unique document ID in the knowledge base. Use a stable ID so later upserts update the same document.
The text content to ingest, search, or store, depending on the endpoint.
A publicly reachable URL. Include the full protocol, for example
https://example.com/docs.A list of publicly reachable URLs. Include the full protocol for each URL.
The maximum number of pages to crawl or ingest from the provided URL sources.
The maximum crawl depth when discovering or ingesting URLs. Higher values can include more nested pages.
Custom key-value data to attach to the resource. Use this for IDs or attributes from your own systems.
Response
Whether the request succeeded.
Human-readable status message.
Returned data.
Authorizations
Body
application/json

