Create Knowledge Base
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Headers
Request
Human-readable label.
Optional workspace project to place this resource in (prefixed
proj_... id). Omit for the implicit Default project. An
unknown id returns 404 project_not_found.
Response headers
Response
Prefixed wire identifier (kb_<26 char Crockford base32>).
Human-readable label for the knowledge base.
The prompt budget in force for this knowledge base, present on the
by-id read. auto_tokens is the automatic tier’s budget (0 when the
tier is off): a knowledge base whose documents count at most that
many tokens is placed in the prompt whole. pin_budget_tokens
bounds the documents pinned with injection_mode: always, and
pinned_tokens is what they count today.
Workspace project this resource lives in (prefixed external id). Null means the implicit Default project.