Build with the REST API
Start with the fictional sandbox, no key. Then create a scoped key for a record you own and read exact fields, search and cited answers.
1. Read the sandbox, no key
Model-specific warranty and compatibility from sample-kettle. Each value says when it applies (context), so a support agent can tell the Pro from the standard model.
curl "https://knowledgebase.org/v1/knowledge-bases/sample-kettle/fields?keys=warranty,compatibility"
{
"object": "fields",
"knowledge_base": { "slug": "sample-kettle", "kind": "product", … },
"release": { "number": 1, "current": true, … },
"scope": "full",
"fields": [
{ "key": "warranty", "label": "Warranty", "values": [
{ "value": "2 years on the Model X. 3 years on the Model X Pro (revision B and later)…", "context": "", "revision": 1 } ] },
{ "key": "compatibility", "label": "Compatibility", "values": [
{ "value": "The Pro's temperature presets work with the Brightline app…", "context": "Model X Pro only", "revision": 1 } ] }
],
"missing": []
}Other sandbox records: sample-person (bios and preferences), sample-cafe (holiday hours and directions), sample-dental (a clinic).
2. Create a scoped key for a record you own
- Create a free KnowledgeBase, approve a few details and publish.
- In API keys, create a key that may read only that record. It's shown once.
- Keep it on your server and send it as
Authorization: Bearer.
# 1. What can this key read?
curl https://knowledgebase.org/v1/knowledge-bases -H "Authorization: Bearer $KB_API_KEY"
# 2. Exact values for a form
curl "https://knowledgebase.org/v1/knowledge-bases/my-profile/fields?keys=full_name,short_bio" -H "Authorization: Bearer $KB_API_KEY"
# 3. Search passages
curl -X POST https://knowledgebase.org/v1/search -H "Authorization: Bearer $KB_API_KEY" -H "Content-Type: application/json" \
-d '{"knowledge_base": "my-profile", "query": "travel preferences"}'
# 4. A cited answer
curl -X POST https://knowledgebase.org/v1/answers -H "Authorization: Bearer $KB_API_KEY" -H "Content-Type: application/json" \
-d '{"knowledge_base": "my-profile", "question": "How do I like to receive updates?"}'Which call to use
Fill a form or feed
Use fields. You get the exact approved value, its context and its revision, so what you submit matches what the owner approved. missing tells you which fields to ask the user for.
Answer a question
Use answers. Show citations; when insufficientEvidence is true or mode is no_match, say the record doesn't cover it instead of guessing; when conflicts is not empty, show both sides or hand off.
Your own ranking or UI
Use search. Ranked passages with release and revision, no AI.
Keep a copy
Use the full release, store its release number, and refresh when the change feed or a webhook names a newer one.
Endpoints
Machine-readable: OpenAPI 3.1, for code generators, Postman and agent frameworks.
/v1/knowledge-basesThe KnowledgeBases your key or token may read, with their type./v1/knowledge-bases/{slug}/fields?keys=Exact approved values by field, with the context each applies in. For forms, listings and feeds./v1/searchRanked passages, each with its release and revision. No AI./v1/answersA cited answer from approved details, with insufficientEvidence and conflicts./v1/knowledge-bases/{slug}?release=Every detail you were granted in the current (or a pinned) release, for sync or export./v1/knowledge-bases/{slug}/releasesRelease history. Your current grant applies to every release./v1/changes?cursor=New releases in what you may read (needs changes:read). Identifiers only; resume from next_cursor./v1/network/search · /v1/network/answersAcross everything you may read, or one of your collections, with disagreements listed./v1/collectionsYour workspace's collections./v1/directoryThe fictional sandbox records. Customer records are never listed.Errors
Errors return { "error": { "code", "message", "request_id" } }; every response carries an x-request-id header.
invalid_requestA required field is missing or malformed, such as an empty question or a bad release number.invalid_tokenMissing, expired or revoked key or token. The owner may have disconnected your app: delete what you cached.insufficient_scopeThe grant doesn't include the permission this endpoint needs.not_foundNo KnowledgeBase with that slug is available to you. Private records look exactly like missing ones.—Something went wrong on our side. Retry with backoff, and include the request_id if you contact us.Limits
Everything is free while KnowledgeBase.org grows: every type, template, QR code, API call and MCP connection. The limits below are operational, to keep the service healthy.
Search results
Up to 25 per request (30 across sources), default 8.
Questions
Up to 1,000 characters.
Access tokens
1 hour. Refresh tokens last 30 days and rotate on every use; reusing an old one ends the whole chain.
Authorization codes
Single use, 60 seconds, PKCE S256 required.
Self-registered clients
Up to 300 new registrations per hour across the service.
Imports
Websites up to 25 pages per run; documents up to 1 MB.
Webhooks
Retried up to 7 times over about 20 hours; replay any delivery from your app page.