Add knowledge files
Add many files to the knowledge base in one call, from https links or inline text. Text files, PDF and Word files are read; a zip is unpacked and its .txt, .md, .csv, .srt and .vtt files are read. Subtitle timings are removed. Up to 25 files become one source each; more are packed into sources of about 400,000 characters, with each file's name kept as its heading. A file longer than that is split into parts. Identical files are added once, and a file already in the knowledge base is skipped. Limits per call: 200 items, 2,000 files after unzipping, 100 MB of text, 50 MB per link. Every source passes the same quality gate as any other, and is read in the background: the result lists each file as added, duplicate, skipped or failed with the reason, and list_kb_sources shows reading progress. Embedding is metered like add_text_kb_source. The first source on an agent adds the search_knowledge_base tool once it is read.
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/operations/add_kb_files" \ -H "Content-Type: application/json" \ -d '{ "items": [ {} ], "agent": "string" }'{
"target": "string",
"sources": [
{
"id": "string",
"name": "string",
"property1": null,
"property2": null
}
],
"results": [
{
"name": "string",
"status": "string",
"property1": null,
"property2": null
}
],
"property1": null,
"property2": null
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}Add infrastructure suite POST
Seed this agent with the Infrastructure Suite, a tagged 'infrastructure-suite' folder of ~17 real reliability scenarios (latency, audio quality, interruption, dead air, double-speak, ramble, stability) with the deterministic metric set attached, so you can run a one-click reliability sweep. Idempotent: re-adding tops up only the missing scenarios. Returns { ok, created, folder }.
Add plugin POST
Add a PLATFORM PLUGIN as a finished HTTP tool, a paid third-party capability that runs on Vertical AI's account, not the customer's. The tool arrives fully authored: URL, headers, input schema, response handling and description are already written, and the API key resolves from a platform variable, so nothing needs setting up afterwards. Each call is metered to the workspace at the plugin's rate and itemised on the bill. Prefer this over hand-building an HTTP tool against Google Maps: a hand-built one needs a key pasted in as a secret variable and reproduces none of the tuned error handling.