Skip to navigation

API · Context · Get context document by type

View as Markdown

Retrieve a single context document by its canonical type key. Most types return the full KnowledgeDoc directly (not the junction wrapper). For content_pillars, the backend reads the Brand Kit’s existing structured ContentPillar records, renders cached Markdown on demand, and returns {doc_type: "content_pillars", content: "..."}. It does not create or synchronize a KnowledgeDoc. If no structured pillars exist, the endpoint returns 404 even when a legacy active context document exists.

Authentication

AuthorizationApi-Key

Header authentication of the form Api-Key <token>

OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

brand_idstringRequiredformat: "uuid"
Brand kit UUID
context_typeenumRequired
Canonical type key to retrieve

Response

Document found

Errors

401
Unauthorized Error
404
Not Found Error