Skip to main content
Context sources connect your Genies to external data — via a REST API, an MCP server, or a static text document. When a source is attached to a Genie, its capabilities are discovered automatically and made available during conversations. Supported source_type values: api, mcp, text_document. Workspace members share access to their owner’s context sources.

Actions

get

Returns a single context source by ID. Parameters Response

list

Returns all context sources for the authenticated user, optionally filtered to sources attached to a specific Genie. Parameters Response

create

Creates a new context source and immediately fetches its capabilities from the remote endpoint. For mcp sources, credential_value is required for capability discovery. The credential is stored encrypted automatically.
string
required
Display name for the context source.
string
required
Source type: "api", "mcp", or "text_document". Also accepted as source_type.
object
required
Source-specific configuration (endpoint URL, headers, etc.).
string
API key or bearer token — stored encrypted in the credential vault. Required for mcp sources.
Response

attach

Attaches an existing context source to a Genie. Parameters Response

upsert

Creates or updates a context source and attaches it to a Genie in a single operation. Capabilities are fetched at write time. Parameters Response

update

Updates mutable fields on a context source. Currently supports toggling is_active. Parameters Response

delete

Detaches a context source from a Genie (removes the agent_context_source association). The source itself is not deleted. Parameters Response

delete-source

Permanently deletes a context source and its associated credential from the vault. Irreversible. Parameters Response

refresh-capabilities

Re-fetches and updates the capability list for the context source attached to a Genie. Useful after the remote API changes. Parameters Response

Error codes