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
- 200
- 400
- 401
- 403
- 404
- 413
- 415
- 429
Document accepted; processing started in the background.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
File exceeds the plan upload limit or account storage limit.
Unsupported file type (this endpoint ingests PDF only).
Too Many Requests — rate limit exceeded