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). Five keys are projections of structured Brand Kit rows, rendered to Markdown on demand and returned as {doc_type: "<key>", content: "..."}: content_pillars, icps, features (Product rows), usps and competitor_analysis (Competitor rows, with the narrative document appended under ## Analysis when one exists). They are written only through buildBrandKit’s row sections. A 404 on one of these means the kit has no rows for it — complete the brand foundation rather than retrying the read or writing a context document in its place.

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