contexts

Create Context

Create a new context.

Issue #115 Phase B: Contexts are created under user's current workspace.

Args: request: Context creation request

Returns: Created context data

Raises: 400: If context name is invalid or already exists 400: If user has no workspace

post/api/v1/contexts

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/contexts
  • Auth: none declared

Headers

authorizationstring nullable

Request body

namestring required

Context name (lowercase alphanumeric, hyphen, underscore)

display_namestring nullable

Human-readable display name (optional, defaults to name)

descriptionstring nullable

Optional context description

summarystring nullable

LLM-oriented context summary

usage_guidestring nullable

LLM-oriented memory usage guidelines

embedding_modelstring nullable

Embedding model for this context. Default: global EMBEDDING_MODEL setting. Immutable after creation.

is_privateboolean

Privacy: TRUE=private (creator only), FALSE=shared (workspace members)

Response

Successful Response

idunknown required
nameunknown required
display_nameunknown
descriptionunknown
summaryunknown
usage_guideunknown
is_defaultunknown required
is_privateunknown
is_publicunknown
resource_idunknown
writes_pausedunknown
is_lockedunknown
sleep_modeunknown
created_byunknown
created_by_nameunknown
created_atunknown required
updated_atunknown
use_rerankunknown
reranker_providerunknown
embedding_modelunknown
embedding_dimensionsunknown
member_countunknown
memory_countunknown
last_activity_atunknown

Changes

No recorded changes to this operation across all 1 revision of this API.