import requests
url = "https://labs.chonkie.ai/api/v1/knowledge"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"name": "Product Documentation",
"description": "Technical documentation for our products"
}
response = requests.post(url, headers=headers, json=data)
kb = response.json()
print(f"Created knowledge base: {kb['name']}")
print(f"Slug: {kb['slug']}")