Skip to main content
POST
/
api
/
v1
/
rag
/
exclusions
Manage Exclusions
curl --request POST \
  --url https://api.ravan.ai/api/v1/rag/exclusions \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "org_id": "<string>",
  "kb_id": "<string>",
  "urls": [
    "<string>"
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "urls": [
      "<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.

Body

org_id
string
required
The organization ID that owns the resource. Use the organization ID from your Agni account.
kb_id
string
required
The unique knowledge base ID. Use the ID returned by the knowledge base create or list endpoint.
action
string
required
The exclusion operation to perform. Use the value supported by this endpoint, such as adding or removing URLs from the exclusion list.
urls
string[]
required
A list of publicly reachable URLs. Include the full protocol for each URL.

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

action
enum<string>
required

Action to perform

Available options:
add,
remove
urls
string[]
required

URLs to add/remove from exclusion list

Response

200 - application/json

Successful response

success
boolean
message
string
data
object