API Reference
Discover managed knowledge websites
List website groups with crawl state, applicability and selection metadata. Follow nextCursor and use websiteId for detail, refresh, selection and scope; websiteId is not a sourceId. Detail reads show pages and current generation. Required permission: knowledge:read. Connected business only; no tenant override.
GET
/
knowledge
/
websites
Discover managed knowledge websites
curl --request GET \
--url https://platform-api.visitoai.com/m2m/v1/knowledge/websites \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform-api.visitoai.com/m2m/v1/knowledge/websites"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform-api.visitoai.com/m2m/v1/knowledge/websites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform-api.visitoai.com/m2m/v1/knowledge/websites",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platform-api.visitoai.com/m2m/v1/knowledge/websites"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platform-api.visitoai.com/m2m/v1/knowledge/websites")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.visitoai.com/m2m/v1/knowledge/websites")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"websites": [
{
"websiteId": "<string>",
"sourceId": "<string>",
"sourceType": "website",
"active": true,
"scope": "property",
"title": "<string>",
"url": "<string>",
"chunkCount": 1,
"rootUrl": "<string>",
"normalizedRootUrl": "<string>",
"crawlDepth": 5,
"maxPages": 250,
"status": "idle",
"defaultEnabled": true,
"selectionRules": [
{
"kind": "path",
"key": "<string>",
"enabled": true
}
],
"totalPages": 1,
"enabledPages": 1,
"activeTokens": 1,
"selectedTokens": 1,
"createdBy": {
"id": "<string>",
"displayName": "<string>",
"email": "<string>"
},
"propertyId": "<string>",
"propertyName": "<string>",
"currentGenerationId": "<string>",
"latestJob": {
"jobId": "<string>",
"status": "queued",
"progress": {
"phase": "queued",
"pagesDiscovered": 123,
"pagesProcessed": 123,
"chunksEmbedded": 123
},
"chunks": 123,
"url": "<string>",
"crawlDepth": 123,
"maxPages": 123,
"sourceId": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
},
"websiteId": "<string>",
"websiteGenerationId": "<string>",
"createdAt": "<string>",
"startedAt": "<string>",
"completedAt": "<string>",
"updatedAt": "<string>",
"snapshotPages": 1
},
"pages": [
{
"sourceId": "<string>",
"url": "<string>",
"canonicalUrl": "<string>",
"path": "<string>",
"enabled": true,
"chunkCount": 1,
"tokens": 1,
"displayOrder": 1,
"updatedAt": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"lastCrawledAt": "<string>"
}
],
"nextCursor": "<string>"
}Authorizations
Server-side tenant-scoped credential created from Build > API Keys.
Query Parameters
Page size; default 50, maximum 100.
Required range:
1 <= x <= 100Copy nextCursor from the previous response and retain all filters. Stop when nextCursor is absent; never construct a cursor.
Maximum string length:
400⌘I
Discover managed knowledge websites
curl --request GET \
--url https://platform-api.visitoai.com/m2m/v1/knowledge/websites \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform-api.visitoai.com/m2m/v1/knowledge/websites"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform-api.visitoai.com/m2m/v1/knowledge/websites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform-api.visitoai.com/m2m/v1/knowledge/websites",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platform-api.visitoai.com/m2m/v1/knowledge/websites"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platform-api.visitoai.com/m2m/v1/knowledge/websites")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.visitoai.com/m2m/v1/knowledge/websites")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"websites": [
{
"websiteId": "<string>",
"sourceId": "<string>",
"sourceType": "website",
"active": true,
"scope": "property",
"title": "<string>",
"url": "<string>",
"chunkCount": 1,
"rootUrl": "<string>",
"normalizedRootUrl": "<string>",
"crawlDepth": 5,
"maxPages": 250,
"status": "idle",
"defaultEnabled": true,
"selectionRules": [
{
"kind": "path",
"key": "<string>",
"enabled": true
}
],
"totalPages": 1,
"enabledPages": 1,
"activeTokens": 1,
"selectedTokens": 1,
"createdBy": {
"id": "<string>",
"displayName": "<string>",
"email": "<string>"
},
"propertyId": "<string>",
"propertyName": "<string>",
"currentGenerationId": "<string>",
"latestJob": {
"jobId": "<string>",
"status": "queued",
"progress": {
"phase": "queued",
"pagesDiscovered": 123,
"pagesProcessed": 123,
"chunksEmbedded": 123
},
"chunks": 123,
"url": "<string>",
"crawlDepth": 123,
"maxPages": 123,
"sourceId": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
},
"websiteId": "<string>",
"websiteGenerationId": "<string>",
"createdAt": "<string>",
"startedAt": "<string>",
"completedAt": "<string>",
"updatedAt": "<string>",
"snapshotPages": 1
},
"pages": [
{
"sourceId": "<string>",
"url": "<string>",
"canonicalUrl": "<string>",
"path": "<string>",
"enabled": true,
"chunkCount": 1,
"tokens": 1,
"displayOrder": 1,
"updatedAt": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"lastCrawledAt": "<string>"
}
],
"nextCursor": "<string>"
}