Get Agent Knowledge Base
curl --request GET \
--url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb \
--header 'Authorization: Bearer <token>'import requests
url = "https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb', 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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb",
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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb"
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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb")
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{
"success": true,
"message": "<string>",
"data": [
{
"ID": "<string>",
"name": "<string>",
"url": "<string>",
"content": "<string>",
"contentURL": "<string>",
"agentId": "<string>",
"userId": "<string>",
"workspaceId": "<string>",
"agencyId": "<string>",
"tags": [
"<string>"
],
"sourceType": "doc",
"status": "ERROR",
"refreshRate": "3d",
"withRefresh": true,
"nextRefreshAt": 123,
"useProxy": true,
"aiPostProcess": true,
"dimensions": 123,
"charCount": 123,
"chunksIds_JSON_STRING": "<string>",
"ts": 123,
"createdAt": 123,
"updatedAt": 123,
"metadata": {
"description": "<string>"
},
"refreshMetadata": {
"lastRefreshTS": 123
}
}
],
"total": 123,
"pageSize": 123,
"hasMore": true,
"nextCursor": "<string>",
"totalPages": 123,
"currentPage": 123
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Knowledge Base
Get agent KB docs
Retrieves all the KB docs for an agent, this route must use the new V3 endpoints.
GET
/
agents
/
{agentId}
/
kb
Get Agent Knowledge Base
curl --request GET \
--url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb \
--header 'Authorization: Bearer <token>'import requests
url = "https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb', 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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb",
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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb"
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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb")
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{
"success": true,
"message": "<string>",
"data": [
{
"ID": "<string>",
"name": "<string>",
"url": "<string>",
"content": "<string>",
"contentURL": "<string>",
"agentId": "<string>",
"userId": "<string>",
"workspaceId": "<string>",
"agencyId": "<string>",
"tags": [
"<string>"
],
"sourceType": "doc",
"status": "ERROR",
"refreshRate": "3d",
"withRefresh": true,
"nextRefreshAt": 123,
"useProxy": true,
"aiPostProcess": true,
"dimensions": 123,
"charCount": 123,
"chunksIds_JSON_STRING": "<string>",
"ts": 123,
"createdAt": 123,
"updatedAt": 123,
"metadata": {
"description": "<string>"
},
"refreshMetadata": {
"lastRefreshTS": 123
}
}
],
"total": 123,
"pageSize": 123,
"hasMore": true,
"nextCursor": "<string>",
"totalPages": 123,
"currentPage": 123
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}List does NOT return document bodies by default.Each item is metadata only (
id, name, url, tags, ts, status, etc.). The content field is usually empty or the placeholder string IN CONTENT URL — that is not the scraped/uploaded text.To load real content, either:- add
includeContent=trueon this list call (hydrates the current page, max 50 docs), or - call
GET /agents/{agentId}/kb/{docId}for each document.
By default results are sorted by
ts (newest first). Docs missing a ts field are excluded from that order — pass orderBy=id to paginate every KB document.Pagination (pick one):
- Preferred: pass
nextCursorfrom the previous response ascursor. - Legacy:
page+pageSize(max 50). Page 2+ advances with Firestore offset.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Required range:
1 <= x <= 50Maximum string length:
512Maximum string length:
256Required range:
x >= 1Required range:
1 <= x <= 50Available options:
id, ts 