Weav

Get knowledge base

GET https://api.weav.com/v1/kb

Requires a token with the external-api:read or external-api:write ability.

Request

cURL
curl --request GET \
  --url 'https://api.weav.com/v1/kb' \
  --header "Authorization: Bearer ${WEAV_API_TOKEN}"
JavaScript
const response = await fetch("https://api.weav.com/v1/kb", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.WEAV_API_TOKEN}`
  }
});
console.log(await response.json());
Python
import os
import requests

headers = {"Authorization": f"Bearer {os.environ['WEAV_API_TOKEN']}"}
response = requests.get("https://api.weav.com/v1/kb", headers=headers)
print(response.json())
PHP
use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('GET', 'https://api.weav.com/v1/kb', [
    'headers' => ['Authorization' => 'Bearer '.getenv('WEAV_API_TOKEN')],
]);
echo $response->getBody();

Response

200 OK
{
    "id": "9b2f6c1e-3d4a-4f5b-8c7d-1e2f3a4b5c6d",
    "organization_id": "9b2f6c1e-3d4a-4f5b-8c7d-1e2f3a4b5c6d",
    "logo_url": "string",
    "improvement_enabled": false,
    "mcp_enabled": false,
    "social_links": {
        "x": "string",
        "linkedin": "string",
        "facebook": "string",
        "instagram": "string",
        "youtube": "string",
        "github": "string",
        "discord": "string",
        "website": "string"
    },
    "banner": {
        "enabled": false,
        "content": "string",
        "dismissible": false,
        "type": "info",
        "light_color": "string",
        "dark_color": "string"
    },
    "seo": {
        "indexing_enabled": false,
        "description": "string",
        "agent_instructions": "string",
        "og_image_url": "https://example.com",
        "verification": {
            "google": "string",
            "bing": "string",
            "yandex": "string"
        },
        "content_signals": {
            "ai_train": false,
            "search": false,
            "ai_input": false
        }
    },
    "sitemap_url": "https://example.com"
}
  • 401 Unauthorized

Response fields

idstring

Format: uuid.

organization_idstring

Format: uuid.

logo_urlstring | null
improvement_enabledboolean
mcp_enabledboolean
social_linksobject
bannerobject

Current public KB announcement banner settings.

seoobject

Organization SEO controls; all defaults preserve existing indexing behavior.

sitemap_urlstring

Format: uri.