> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravan.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Exclusions

> Manage Exclusions.

### Authorizations

<ParamField header="X-Api-Key" type="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.
</ParamField>

***

### Body

<ParamField body="org_id" type="string" required>
  The organization ID that owns the resource. Use the organization ID from your Agni account.
</ParamField>

<ParamField body="kb_id" type="string" required>
  The unique knowledge base ID. Use the ID returned by the knowledge base create or list endpoint.
</ParamField>

<ParamField body="action" type="string" required>
  The exclusion operation to perform. Use the value supported by this endpoint, such as adding or removing URLs from the exclusion list.
</ParamField>

<ParamField body="urls" type="string[]" required>
  A list of publicly reachable URLs. Include the full protocol for each URL.
</ParamField>

***

### Response

<ResponseField name="success" type="boolean">
  Whether the request succeeded.
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable status message.
</ResponseField>

<ResponseField name="data" type="object">
  Returned data.

  <Expandable title="data">
    <ResponseField name="urls" type="string[]">
      Updated exclusion list
    </ResponseField>
  </Expandable>
</ResponseField>


## OpenAPI

````yaml POST /api/v1/rag/exclusions
openapi: 3.0.1
info:
  title: Agni API
  version: 1.0.0
  description: >-
    Agni API for managing agents, tools, widget settings, telephony, and
    integrations.
servers:
  - url: https://api.ravan.ai
security:
  - X-Api-Key: []
tags:
  - name: AgentService
  - name: AgentToolService
  - name: WidgetSettingsService
  - name: PhoneService
  - name: AppointmentService
  - name: GHLService
  - name: CalComService
  - name: CampaignService
  - name: ContactService
  - name: CallingService
  - name: RAGService
  - name: ModelService
  - name: HealthService
paths:
  /api/v1/rag/exclusions:
    post:
      tags:
        - RAGService
      summary: Manage Exclusions
      operationId: ManageRAGExclusions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManageRAGExclusionsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRAGExclusionsResponse'
components:
  schemas:
    ManageRAGExclusionsRequest:
      type: object
      required:
        - org_id
        - kb_id
        - action
        - urls
      properties:
        org_id:
          type: string
          description: Organization ID
        kb_id:
          type: string
          description: Knowledge Base ID
        action:
          type: string
          enum:
            - add
            - remove
          description: Action to perform
        urls:
          type: array
          items:
            type: string
          description: URLs to add/remove from exclusion list
    ListRAGExclusionsResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          properties:
            urls:
              type: array
              items:
                type: string
              description: Excluded URLs
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key

````