Skip to main content

Ingest a PDF document from a URL

POST 

/api/v1/chatbots/:chatbotId/documents

Ingests a PDF into the chatbot's knowledge base by fetching it from a PUBLIC URL (SSRF-safe: http(s) only, public-IP-pinned + rebind-safe, size- and time-bounded), then running the standard extract → chunk → embed pipeline. This endpoint is PDF-only (the fileName / URL must end in .pdf); to ingest a local file, host it at a public URL first. Asynchronous — processing continues in the background; poll GET /documents for status. Required scope: documents:write.

Request

Responses

Document accepted; processing started in the background.