Elizon Docs
API Reference

Submit URLs

POST /api/v1/knowledge-bases/:knowledgeBaseId/urls — crawl web pages into a Knowledge Base.

Crawls one page, a site from a root URL, or a list of pages, and indexes what it finds. Crawling runs in the background; follow it with List URL sources. See Web ingestion for how crawling works.

POST /api/v1/knowledge-bases/{knowledgeBaseId}/urls

Request body

FieldTypeRequiredDescription
typesingle | root | listYesOne page, a site crawled from this root, or the exact pages in urls.
urlstringFor single, rootThe page or the crawl root.
urlsstring[]For listThe pages to fetch.
maxPagesintegerNoCrawl limit for root.
allowSubdomainsbooleanNoFor root: also follow links to subdomains. Default false.
ignoreLinksbooleanNoDo not follow links from the fetched pages. Default false.

Response

202 Accepted

{ "sources": [{ "sourceId": "c3a9…", "url": "https://example.com/docs" }] }

Errors

StatuserrorWhen
400validation errorurl missing for single/root, or urls missing for list.
400invalid_requestThe service refused a URL, for example a private or internal address.
403forbiddenYour key is scoped to a different project.
404not_foundNo such Knowledge Base in your organization.