Skip to main content
POST
Create Knowledge Base

Create Knowledge Base

Create a new non-deterministic knowledge base that can be used to provide context and information to your AI agents. Knowledge bases support multiple content types including files, URLs, and FAQs.
Rate Limits:
  • Maximum 10 requests per hour per workspace
  • File size limit: 2 MB per file, 5 MB total
  • Maximum 10 files and 20 URLs per request

Content Types

Files

Upload documents (PDF, TXT, DOCX, etc.) to provide structured information to your knowledge base.
  • Max 10 files per request
  • 2 MB per file limit
  • 5 MB total size limit

URLs

Index web pages to automatically extract and store their content.
  • Max 20 URLs per request
  • URLs are crawled and indexed automatically
  • Content is refreshed periodically

FAQs

Provide question-answer pairs for deterministic responses to common queries.

Processing Status

Knowledge base creation is asynchronous. The response includes:
  • kb_id: Unique identifier for the knowledge base
  • processing_status: Current status (pending, processing, completed)
  • files_queued: Number of files being processed
Use the Get Knowledge Base by ID endpoint to check processing status.

Important Notes

  • Asynchronous Processing: Files and URLs are processed in the background
  • Content Updates: Use the Edit Knowledge Base endpoint to update content
  • Agent Integration: Link knowledge bases to agents via the assistant configuration

Headers

X-API-KEY
string
required

(Required) Your Revenueable AI API key.

Example:

"7251cb4b-3373-43a4-844c-b27a1d45e0c9"

Body

multipart/form-data
kb_name
string
required

(Required) Name of the knowledge base

Example:

"Product Documentation"

files
file[]

(Optional) Array of files to upload (max 10 files, 2 MB each, 5 MB total)

urls
string

(Optional) JSON string array of URLs to index (max 20 URLs)

Example:

"[\"https://example.com/docs\", \"https://example.com/faq\"]"

faqs
string

(Optional) JSON string array of FAQ objects

Example:

"[{\"question\": \"What is your return policy?\", \"answer\": \"30-day money back guarantee\"}]"

Response

Knowledge base created successfully.

message
string
Example:

"Knowledge Base creation initiated"

kb_id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

processing_status
string
Example:

"pending"

files_queued
integer
Example:

3