c690ac22ae04
Create a capsule
Request body
Package this capsule as a Claude Code agent. Omit to inherit the Type's packaging default; set explicitly to override. Encrypted capsules can't be agents.
Category slugs from the curated taxonomy (max 10). Unknown slugs are rejected with a 400 naming the offending value. Fetch valid slugs from GET /api/preview/categories.
Opaque CEK metadata produced by the client crypto layer
Markdown body. Empty string for no content. Maximum length is configured per-Type via content_md_max (default 20000, ceiling 90000).
Draft attachment ids to associate on create.
Draft attachment session id; required when draftAttachmentIds is present.
Structured field values keyed by field name. Validated against the Type's field_schema at write time; undeclared keys are rejected.
Expose this capsule on the MCP prompts surface. Omit to inherit the Type's default; set explicitly to override. Toggling it does not move the capsule or change its @type/ref.
UUID v4 string
Optional human-readable alias (@type/alias). Lowercase slug, max 60 chars, not purely numeric. Resolves to the same capsule as its numeric ref.
Optional short summary (LLM-generated or hand-written).
Free-form tags (max 20). Each is normalized to a slug and deduped server-side (e.g. Foo Bar and foo-bar collapse to one). Purely numeric or empty-after-normalization values are dropped.
Human-readable capsule title
Target Type. Omit to fall back to the user's default Type for the workspace.
Workspace context. Accepts: "personal" for your personal workspace, an organization workspace name (full or partial — e.g. "Verdant Studio" or "Verdant"), or a workspace UUID. The MCP server resolves names against the user's accessible workspaces; ambiguous or unknown names return an error listing available workspaces — call list_workspaces in that case. Omit to use the default: personal for personal API keys, the bound organization for organization API keys.
Wrapped per-capsule content-encryption key (E2EE)
Response
Successful response
UUID v4 string
UUID v4 string