Knowledge Base
Extract URLs from a sitemap.xml
Fetches a website's sitemap.xml, parses it, and returns the list of URLs inside. Use this before calling POST /knowledgebase/{id}/scrape-urls to let the customer pick which URLs they actually want indexed.
Returns 422 if the URL doesn't return a fetchable sitemap or if the XML is malformed.
post/knowledgebase/get-sitemap-urls
Request body
Example request
{
"siteUrl": "https://example.com/sitemap.xml",
"knowledgeBaseId": "6867ca76d0f8f2e0f4201281"
}Response
Extracted URLs, ready to be filtered + passed to /scrape-urls.
Example response
{
"status": true
}