BizKitHub
DocsAPI ReferenceAi Agent/bff/ai-context/create
postAi AgentAdmin BFF

/bff/ai-context/create

Add a new topic to the shared context. Before creating, check /document for an existing note on the same topic and prefer /update. Never store secrets (passwords, API keys, tokens) or sensitive personal data.

AI AgentpostBffAi-contextCreate

Parameters

JSON body

Request body

application/json
titlestringRequired

Short topic title, e.g. "Invoicing conventions" or "Warehouse and shipping".

Length: 1–160
contentstringRequired

Markdown body. Keep it concise and factual; it is loaded into every agent session.

Length: 0–20000
isPinnedbooleanOptional

Pinned notes render first. Default false.

Response schema

1 status code documented

200Success
idstringRequired
versionnumberRequired

Response example

application/json
{
  "id": "example_id",
  "version": 0
}

Request example

POST /bff/ai-context/create

post
curl -X POST "https://api.bizkithub.com/bff/ai-context/create" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "title": "example_title",
  "content": "example_content",
  "isPinned": false
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key