v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
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

siteUrlstring uri required

URL of the sitemap.xml file (or a homepage that links to one).

knowledgeBaseIdstring required

Target knowledge base ID — used for ownership validation only. The endpoint doesn't write any URLs at this stage.

Example request

{
  "siteUrl": "https://example.com/sitemap.xml",
  "knowledgeBaseId": "6867ca76d0f8f2e0f4201281"
}

Response

Extracted URLs, ready to be filtered + passed to /scrape-urls.

statusboolean

Example response

{
  "status": true
}