Generate knowledge base articles programmatically. Send a video URL or text, get a structured article back.
https://kbpipe.io/api/v1All API requests require an API key passed in the Authorization header. API keys are prefixed with vtk_ and can be generated from your Settings page.
Authorization: Bearer vtk_your_api_key_here/api/v1/generateGenerate a knowledge base article from a video URL or raw text. Returns structured markdown and optionally platform-formatted HTML.
curl -X POST https://kbpipe.io/api/v1/generate \
-H "Authorization: Bearer vtk_your_key" \
-H "Content-Type: application/json" \
-d '{
"videoUrl": "https://www.youtube.com/watch?v=example"
}'curl -X POST https://kbpipe.io/api/v1/generate \
-H "Authorization: Bearer vtk_your_key" \
-H "Content-Type: application/json" \
-d '{
"transcript": "Your text content here — user stories, meeting notes, specs...",
"articleType": "how-to-guide",
"platform": "zendesk"
}'| Parameter | Type | Required | Description |
|---|---|---|---|
videoUrl | string | required | URL of a Loom, YouTube, or Google Drive video to process. Required if transcript is not provided. |
transcript | string | required | Raw text content (user story, meeting notes, specs). Required if videoUrl is not provided. |
articleType | string | optional | Article type ID. Falls back to your workspace default if omitted. Examples: how-to-guide, feature-explainer |
platform | string | optional | Platform profile ID for HTML output. Falls back to workspace default. Examples: zendesk, intercom, helpjuice |
workspace | string | optional | Workspace ID. Falls back to your active workspace, then your first workspace. |
videoUrl or transcript is required. If both are provided, transcript takes precedence.A successful response returns the generated article with metadata.
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "How to Configure SSO in Your Dashboard",
"markdown": "# How to Configure SSO in Your Dashboard\n\n## Overview\n...",
"html": "<article class=\"kb-article\">...</article>",
"platform": "Zendesk",
"articleType": "How-to Guide"
}| Field | Type | Description |
|---|---|---|
id | string | UUID of the saved article |
title | string | Auto-extracted article title |
markdown | string | Structured article in Markdown format |
html | string? | Platform-formatted HTML (only when a platform profile is selected) |
platform | string | Name of the platform used |
articleType | string | Name of the article type used |
Errors return a JSON object with an error field.
{
"error": "Missing or invalid Authorization header. Use: Bearer vtk_..."
}| Status | Meaning |
|---|---|
| 400 | Bad request — missing required fields, invalid article type, or no workspace found |
| 401 | Unauthorized — missing, malformed, or revoked API key |
| 403 | Quota exceeded — upgrade your plan or wait for the next billing cycle |
| 404 | Workspace not found or access denied |
| 429 | Rate limit exceeded — max 5 requests per minute |
| 500 | Server error — article generation failed |
The API enforces a sliding-window rate limit per API key.
When rate limited, the response includes a Retry-After header with the number of seconds to wait.
const response = await fetch('https://kbpipe.io/api/v1/generate', {
method: 'POST',
headers: {
'Authorization': 'Bearer vtk_your_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
videoUrl: 'https://www.loom.com/share/abc123',
articleType: 'how-to-guide',
platform: 'zendesk',
}),
});
const article = await response.json();
console.log(article.title);
console.log(article.html);import requests
response = requests.post(
'https://kbpipe.io/api/v1/generate',
headers={'Authorization': 'Bearer vtk_your_key'},
json={
'transcript': 'Your raw text content here...',
'articleType': 'feature-explainer',
}
)
article = response.json()
print(article['title'])
print(article['markdown'])KBPipe also ships an MCP server for AI assistant integration. Install it to let Claude, Cursor, or other AI tools generate KB articles directly.
# Clone and build
cd mcp-server && npm install && npm run build
# Configure in your AI tool with:
# KBPIPE_API_KEY=vtk_your_key
# KBPIPE_BASE_URL=https://kbpipe.io (optional, defaults to this)