Create a Knowledge Base
Add Documents
Request a presigned URL
Call
POST /kb/:kbId/docs/upload with the filename and MIME type to receive a presigned upload URL.Upload directly to storage
PUT the file to the presigned URL. No data passes through the Autoposting backend — uploads are fast regardless of file size.
Supported Formats
| Type | Formats | Description |
|---|---|---|
| File upload | PDF, DOCX, TXT | Text extracted automatically during ingestion |
| URL ingest | Any public web page | Backend crawls and extracts page text |
| Raw text | — | Paste content directly via the API |
Large PDFs (100+ pages) can take 30–90 seconds to fully index. The KB
status returns to active when all pending ingestion jobs complete.Ingest a URL
Search the Knowledge Base
Find semantically relevant content across all indexed documents:KB Status
| Status | Description |
|---|---|
active | Ready for queries |
building | Ingestion job running |
error | Last ingestion failed — check errorMessage |
Connect to an Agent
Attach a KB to an agent via thekbId field. Set contentSource: "both" to combine KB grounding with real-time news signals.
AI Agents
Connect a KB to an agent for grounded content generation.
Carousels
Use KB content as the source for AI carousel copy.
Posts
KB-powered agent ideas become post drafts in the publish pipeline.
API Reference
Full endpoint reference for KB management and document ingestion.