OmniDimension Knowledge base API

Upload, manage, and attach PDF documents to agents.

GitHub OpenAPI

Operations 6

GET /knowledge_base/list List knowledge base files #
POST /knowledge_base/can_upload Check file upload capability #
POST /knowledge_base/create Upload file to knowledge base #
POST /knowledge_base/attach Attach files to agent #
POST /knowledge_base/detach Detach files from agent #
POST /knowledge_base/delete Delete file from knowledge base #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/omnidim-io:omnidim-io-knowledge-base-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

omnidim-io-knowledge-base-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OmniDimension Knowledge base API
  version: '1.0'
  description: 'Public REST API for the OmniDimension voice-agent platform. Use it

    to manage agents, dispatch calls, run bulk-call campaigns, manage

    knowledge bases, attach phone numbers, run agent simulations, and

    administer reseller accounts.'
  contact:
    name: OmniDimension
    url: https://omnidim.io
servers:
- url: https://omnidim.io/api/v1
  description: Production. `https://backend.omnidim.io/api/v1` also works and serves the same API.
security:
- BearerAuth: []
tags:
- name: Knowledge base
  description: Upload, manage, and attach PDF documents to agents.
paths:
  /knowledge_base/list:
    get:
      tags:
      - Knowledge base
      operationId: listKnowledgeBaseFiles
      summary: List knowledge base files
      description: List all knowledge-base files for the authenticated user.
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: 'from omnidimension import Client

          client = Client(api_key)


          # List all knowledge base files

          response = client.knowledge_base.list()

          print(response)

          '
      parameters:
      - $ref: '#/components/parameters/ClientUserId'
      responses:
        '200':
          description: List of files.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  files:
                    type: array
                    items:
                      $ref: '#/components/schemas/KnowledgeBaseFile'
              example:
                success: true
                files:
                - id: 964
                  name: customer_call.mp3
                  original_filename: customer_call.mp3
                  file_size: 1145133
                  mime_type: audio/mpeg
                  download_url: https://omnidim.s3.amazonaws.com/live_uploads/1234/20260411_162353_customer_call.mp3?AWSAccessKeyId=AKIA...&Signature=...&Expires=...
                  upload_status: uploaded
                  upload_date: 04/11/2026 16:24:00
                  user_name: Demo User
                  user_id: 1234
                  organization_id: 14
  /knowledge_base/can_upload:
    post:
      tags:
      - Knowledge base
      operationId: canUploadFile
      summary: Check file upload capability
      description: Check whether a file can be uploaded based on size and type.
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: 'from omnidimension import Client

          client = Client(api_key)


          # Check if a file of the given size can be uploaded

          file_size = 1024 * 1024  # 1MB file

          response = client.knowledge_base.can_upload(file_size)

          print(response)

          '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - file_size
              - file_type
              properties:
                user_id:
                  $ref: '#/components/schemas/ClientUserId'
                file_size:
                  type: integer
                  minimum: 1
                  description: Size in bytes.
                  example: 524288
                file_type:
                  type: string
                  description: File extension. Only `pdf` is accepted.
                  example: pdf
      responses:
        '200':
          description: Upload capability and quota information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  quota:
                    type: object
                    description: Knowledge-base storage quota in megabytes.
                    properties:
                      total:
                        type: number
                      used:
                        type: number
                      remaining:
                        type: number
              example:
                success: true
                message: File can be uploaded
                quota:
                  total: 10
                  used: 0
                  remaining: 10
  /knowledge_base/create:
    post:
      tags:
      - Knowledge base
      operationId: uploadKnowledgeBaseFile
      summary: Upload file to knowledge base
      description: Upload a PDF file. The file content must be Base64 encoded.
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: "from omnidimension import Client\nclient = Client(api_key)\n\n# Upload a file to the knowledge base\nimport base64\n\nfile_path = \"sample.pdf\"  # Path to your PDF file\nfile_name = \"sample.pdf\"  # Name for the file in the knowledge base\n\nwith open(file_path, \"rb\") as file:\n    file_data = base64.b64encode(file.read()).decode('utf-8')\n\nresponse = client.knowledge_base.create(file_data, file_name)\nprint(response)\n"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - file
              - filename
              properties:
                user_id:
                  $ref: '#/components/schemas/ClientUserId'
                file:
                  type: string
                  description: Base64-encoded file content.
                filename:
                  type: string
                  description: Filename including the `.pdf` extension.
                  example: sample.pdf
      responses:
        '200':
          description: Uploaded file metadata.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  file:
                    $ref: '#/components/schemas/KnowledgeBaseFile'
              example:
                success: true
                message: File uploaded successfully
                file:
                  id: 964
                  name: sample.pdf
                  original_filename: sample.pdf
                  file_size: 524288
                  mime_type: application/pdf
                  upload_status: uploaded
                  upload_date: 05/08/2026 10:30:00
                  user_id: 1234
                  user_name: Demo User
                  organization_id: 14
  /knowledge_base/attach:
    post:
      tags:
      - Knowledge base
      operationId: attachKnowledgeBaseFiles
      summary: Attach files to agent
      description: Attach multiple knowledge-base files to an agent.
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: "from omnidimension import Client\nclient = Client(api_key)\n\n# Attach files to an agent\nfile_ids = [123, 456]  # Replace with your file IDs\nagent_id = 789  # Replace with your agent ID\n\nresponse = client.knowledge_base.attach(\n  file_ids,\n  agent_id,\n  when_to_use=\"Use KB When User ask for pricing\"\n)\nprint(response)\n"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - file_ids
              - agent_id
              properties:
                file_ids:
                  type: array
                  minItems: 1
                  items:
                    type: integer
                  description: List of knowledge-base file IDs to attach.
                  example:
                  - 17686
                agent_id:
                  type: integer
                  description: ID of the agent to attach files to.
                  example: 158910
                when_to_use:
                  type: string
                  description: Instruction to the agent on when to consult these files.
                  example: Use these documents to answer billing-related questions.
      responses:
        '200':
          description: Files attached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
              example:
                success: true
                message: 1 files attached to agent successfully
  /knowledge_base/detach:
    post:
      tags:
      - Knowledge base
      operationId: detachKnowledgeBaseFiles
      summary: Detach files from agent
      description: Detach multiple knowledge-base files from an agent.
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: 'from omnidimension import Client

          client = Client(api_key)


          # Detach files from an agent

          file_ids = [123, 456]  # Replace with your file IDs

          agent_id = 789  # Replace with your agent ID


          response = client.knowledge_base.detach(file_ids, agent_id)

          print(response)

          '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - file_ids
              - agent_id
              properties:
                file_ids:
                  type: array
                  minItems: 1
                  items:
                    type: integer
                  description: List of knowledge-base file IDs to detach.
                  example:
                  - 17686
                agent_id:
                  type: integer
                  description: ID of the agent to detach files from.
                  example: 158910
      responses:
        '200':
          description: Files detached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
              example:
                success: true
                message: 1 files detached from agent successfully
  /knowledge_base/delete:
    post:
      tags:
      - Knowledge base
      operationId: deleteKnowledgeBaseFile
      summary: Delete file from knowledge base
      description: Permanently delete a file. Removes it from any attached agents. Cannot be undone.
      x-codeSamples:
      - lang: python
        label: Python SDK
        source: 'from omnidimension import Client

          client = Client(api_key)


          # Delete a file from the knowledge base

          file_id = 123  # Replace with your file ID


          response = client.knowledge_base.delete(file_id)

          print(response)

          '
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - file_id
              properties:
                user_id:
                  $ref: '#/components/schemas/ClientUserId'
                file_id:
                  type: integer
                  description: ID of the file to delete.
                  example: 17686
      responses:
        '200':
          description: File deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
              example:
                success: true
                message: File deleted successfully
components:
  schemas:
    ClientUserId:
      type: integer
      description: 'Reseller keys only: act as one of your clients by its user id. Omit

        it to act on your own account.

        [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).

        '
      example: 1234
    KnowledgeBaseFile:
      type: object
      description: A file uploaded to the knowledge base.
      properties:
        id:
          type: integer
          example: 17686
        name:
          type: string
          example: customer_call.mp3
        original_filename:
          type: string
          example: customer_call.mp3
        file_size:
          type: integer
          description: Size in bytes.
        mime_type:
          type: string
          example: audio/mpeg
        download_url:
          type: string
          format: uri
        upload_status:
          type: string
          example: uploaded
        upload_date:
          type: string
          example: 04/11/2026 16:24:00
        user_name:
          type: string
        user_id:
          type: integer
        organization_id:
          type: integer
  parameters:
    ClientUserId:
      in: query
      name: user_id
      required: false
      description: 'Reseller keys only: act as one of your clients by its user id. Omit

        it to act on your own account.

        [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).

        '
      schema:
        $ref: '#/components/schemas/ClientUserId'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token authentication. Obtain your API key from the

        OmniDimension dashboard.

        '