(Convocore agents only) Adds a new document to the agent’s knowledge base, if your agent is built with VF use Voiceflow’s API instead. This route must use the new V3 endpoints.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the agent
Document name/title (required)
Source type: 'doc' for text, 'url' for webpages, 'sitemap' for crawling
doc, url, sitemap Document text content (required for sourceType 'doc')
Document metadata
Array of tags for filtering/categorization
Auto-refresh interval for URL sources
3d, 7d, never Array of URLs to process (required when sourceType is 'url')
URL of the sitemap to crawl (required when sourceType is 'sitemap')
Maximum number of pages to process from sitemap
Whether to scrape and extract content from URLs