POST
/
agents
/
{agentId}
/
kb
Add Knowledge Base
curl --request POST \
  --url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/kb \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "content": "<string>",
  "metadata": {
    "description": "<string>"
  },
  "tags": [
    "<string>"
  ],
  "sourceType": "doc",
  "refreshRate": "never",
  "urls": [
    "<string>"
  ],
  "sitemapUrl": "<string>",
  "maxPages": 123,
  "scrapeContent": true
}'
{
  "success": true,
  "message": "<string>",
  "data": "<any>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

Body

application/json
name
string
required
sourceType
enum<string>
required
Available options:
doc,
url,
sitemap
content
string
metadata
object
tags
string[]
refreshRate
enum<string>
default:never
Available options:
1h,
6h,
12h,
24h,
7d,
never
urls
string[]

Array of URLs to process when sourceType is 'url'

sitemapUrl
string

URL of the sitemap to process when sourceType is 'sitemap'

maxPages
integer

Maximum number of pages to process from the sitemap

scrapeContent
boolean

Whether to scrape content from the URLs

Response

Successful response

success
boolean
required
message
string
required
data
any