Download OpenAPI specification:Download
HTTP API for Atulya
Returns API version information and enabled feature flags. Use this to check which capabilities are available in this deployment.
| api_version required | string (Api Version) API version string |
required | object (FeaturesInfo) Enabled feature flags |
{- "api_version": "0.4.0",
- "features": {
- "bank_config_api": false,
- "brain_import_export": false,
- "brain_runtime": true,
- "file_upload_api": true,
- "mcp": true,
- "observations": false,
- "sub_routine": true,
- "timeline_v2": false,
- "worker": true
}
}Retrieve graph data for visualization, optionally filtered by type (world/experience/opinion).
| bank_id required | string (Bank Id) |
Type (string) or Type (null) (Type) | |
| limit | integer (Limit) Default: 1000 |
Q (string) or Q (null) (Q) | |
Array of Tags (strings) or Tags (null) (Tags) | |
| tags_match | string (Tags Match) Default: "all_strict" |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Nodes) |
required | Array of objects (Edges) |
required | Array of objects (Table Rows) |
| total_units required | integer (Total Units) |
| limit required | integer (Limit) |
{- "edges": [
- {
- "from": "1",
- "to": "2",
- "type": "semantic",
- "weight": 0.8
}
], - "limit": 1000,
- "nodes": [
- {
- "id": "1",
- "label": "Alice works at Google",
- "type": "world"
}, - {
- "id": "2",
- "label": "Bob went hiking",
- "type": "world"
}
], - "table_rows": [
- {
- "context": "Work info",
- "date": "2024-01-15 10:30",
- "entities": "Alice (PERSON), Google (ORGANIZATION)",
- "id": "abc12345...",
- "text": "Alice works at Google"
}
], - "total_units": 2
}Retrieve git-style timeline items and edges for facts, observations, and mental models.
| bank_id required | string (Bank Id) |
Type (string) or Type (null) (Type) | |
| limit | integer (Limit) Default: 500 |
Q (string) or Q (null) (Q) | |
Array of Tags (strings) or Tags (null) (Tags) | |
| tags_match | string (Tags Match) Default: "all_strict" Enum: "any" "all" "any_strict" "all_strict" |
Authorization (string) or Authorization (null) (Authorization) |
Array of objects (Items) | |
Array of objects (Edges) | |
| total_items required | integer (Total Items) |
| limit required | integer (Limit) |
{- "items": [
- {
- "id": "string",
- "kind": "fact",
- "fact_type": "string",
- "text": "string",
- "context": "string",
- "title": "string",
- "anchor_at": "string",
- "anchor_kind": "string",
- "recorded_at": "string",
- "occurred_start": "string",
- "occurred_end": "string",
- "temporal_direction": "string",
- "temporal_confidence": 0,
- "temporal_reference_text": "string",
- "temporal": {
- "anchor_at": "string",
- "anchor_kind": "string",
- "recorded_at": "string",
- "direction": "string",
- "confidence": 0,
- "reference_text": "string"
}, - "entities": [
- "string"
], - "tags": [
- "string"
], - "source_memory_ids": [
- "string"
], - "proof_count": 0
}
], - "edges": [
- {
- "source": "string",
- "target": "string",
- "edge_kind": "chronological",
- "weight": 1
}
], - "total_items": 0,
- "limit": 0
}Retrieve a state/topic graph with high-confidence changes, contradictions, and stale signals.
| bank_id required | string (Bank Id) |
Type (string) or Type (null) (Type) | |
| limit | integer (Limit) Default: 18 |
Q (string) or Q (null) (Q) | |
Array of Tags (strings) or Tags (null) (Tags) | |
| tags_match | string (Tags Match) Default: "all_strict" Enum: "any" "all" "any_strict" "all_strict" |
| confidence_min | number (Confidence Min) [ 0 .. 1 ] Default: 0.55 |
| node_kind | string (Node Kind) Default: "all" Enum: "all" "entity" "topic" |
Window Days (integer) or Window Days (null) (Window Days) Default: 90 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Nodes) |
required | Array of objects (Edges) |
required | Array of objects (Change Events) |
| total_nodes required | integer (Total Nodes) |
| generated_at required | string (Generated At) |
| cached | boolean (Cached) Default: false |
{- "nodes": [
- {
- "id": "string",
- "title": "string",
- "kind": "entity",
- "subtitle": "string",
- "current_state": "string",
- "status": "stable",
- "status_reason": "string",
- "confidence": 0,
- "change_score": 0,
- "last_changed_at": "string",
- "primary_timestamp": "string",
- "evidence_count": 0,
- "tags": [
- "string"
], - "evidence_ids": [
- "string"
], - "conviction": 0,
- "semantic_change_magnitude": 0
}
], - "edges": [
- {
- "id": "string",
- "source_id": "string",
- "target_id": "string",
- "relation_type": "string",
- "strength": 0,
- "evidence_count": 0
}
], - "change_events": [
- {
- "id": "string",
- "node_id": "string",
- "change_type": "change",
- "before_state": "string",
- "after_state": "string",
- "confidence": 0,
- "time_window": "string",
- "evidence_ids": [
- "string"
], - "summary": "string"
}
], - "total_nodes": 0,
- "generated_at": "string",
- "cached": false
}Ask a focused question over the state graph and return the relevant change events, evidence path, and checks.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| query required | string (Query) |
Type (string) or Type (null) (Type) | |
Array of Tags (strings) or Tags (null) (Tags) | |
| tags_match | string (Tags Match) Default: "all_strict" Enum: "any" "all" "any_strict" "all_strict" |
| confidence_min | number (Confidence Min) [ 0 .. 1 ] Default: 0.55 |
| node_kind | string (Node Kind) Default: "all" Enum: "all" "entity" "topic" |
Window Days (integer) or Window Days (null) (Window Days) Default: 90 | |
| limit | integer (Limit) [ 1 .. 100 ] Default: 18 |
| answer required | string (Answer) |
| focal_node_ids | Array of strings (Focal Node Ids) |
| focal_edge_ids | Array of strings (Focal Edge Ids) |
Array of objects (Change Events) | |
Array of objects (Evidence Path) | |
| recommended_checks | Array of strings (Recommended Checks) |
{- "query": "string",
- "type": "string",
- "tags": [
- "string"
], - "tags_match": "any",
- "confidence_min": 0.55,
- "node_kind": "all",
- "window_days": 90,
- "limit": 18
}{- "answer": "string",
- "focal_node_ids": [
- "string"
], - "focal_edge_ids": [
- "string"
], - "change_events": [
- {
- "id": "string",
- "node_id": "string",
- "change_type": "change",
- "before_state": "string",
- "after_state": "string",
- "confidence": 0,
- "time_window": "string",
- "evidence_ids": [
- "string"
], - "summary": "string"
}
], - "evidence_path": [
- {
- "kind": "node",
- "id": "string",
- "label": "string",
- "timestamp": "string"
}
], - "recommended_checks": [
- "string"
]
}| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| limit | integer (Limit) [ 1 .. 200 ] Default: 50 |
Status (string) or Status (null) (Status) | |
Array of Anomaly Types (strings) or Anomaly Types (null) (Anomaly Types) | |
| min_severity | number (Min Severity) [ 0 .. 1 ] Default: 0 |
required | object (AnomalyIntelligenceSummaryResponse) |
Array of objects (Events) | |
| total_events_in_response required | integer (Total Events In Response) |
{- "limit": 50,
- "status": "open",
- "anomaly_types": [
- "string"
], - "min_severity": 0
}{- "summary": {
- "total_events": 0,
- "open_events": 0,
- "resolved_events": 0,
- "avg_severity": 1,
- "by_type": {
- "property1": 0,
- "property2": 0
}
}, - "events": [
- {
- "id": "string",
- "bank_id": "string",
- "anomaly_type": "string",
- "severity": 0,
- "status": "open",
- "unit_ids": [
- "string"
], - "entity_ids": [
- "string"
], - "description": "string",
- "metadata": { },
- "detected_at": "string",
- "resolved_at": "string",
- "resolved_by": "string",
- "corrections": [
- {
- "id": "string",
- "bank_id": "string",
- "anomaly_id": "string",
- "correction_type": "string",
- "target_unit_id": "string",
- "before_state": { },
- "after_state": { },
- "confidence_delta": 0,
- "applied_at": "string",
- "applied_by": "string"
}
]
}
], - "total_events_in_response": 0
}Retrieve a clustered graph summary and top-use nodes for scalable graph exploration.
| bank_id required | string (Bank Id) |
| surface | string (Surface) Default: "state" Enum: "state" "evidence" |
Type (string) or Type (null) (Type) | |
Q (string) or Q (null) (Q) | |
Array of Tags (strings) or Tags (null) (Tags) | |
| tags_match | string (Tags Match) Default: "all_strict" Enum: "any" "all" "any_strict" "all_strict" |
| confidence_min | number (Confidence Min) [ 0 .. 1 ] Default: 0.55 |
| node_kind | string (Node Kind) Default: "all" Enum: "all" "entity" "topic" |
Window Days (integer) or Window Days (null) (Window Days) Default: 90 |
Authorization (string) or Authorization (null) (Authorization) |
| surface required | string (Surface) Enum: "state" "evidence" |
| mode_hint required | string (Mode Hint) Enum: "detail" "compact" "overview" |
| total_nodes required | integer (Total Nodes) |
| total_edges required | integer (Total Edges) |
Array of objects (Clusters) | |
Array of objects (Top Nodes) | |
Array of objects (Bundled Edges) | |
| initial_focus_ids | Array of strings (Initial Focus Ids) |
| generated_at required | string (Generated At) |
| cached | boolean (Cached) Default: false |
{- "surface": "state",
- "mode_hint": "detail",
- "total_nodes": 0,
- "total_edges": 0,
- "clusters": [
- {
- "id": "string",
- "kind": "cluster",
- "title": "string",
- "subtitle": "string",
- "preview_labels": [
- "string"
], - "member_count": 0,
- "status_tone": "stable",
- "display_priority": 0,
- "render_mode_hint": "detail",
- "cluster_membership": [
- "string"
], - "node_ref": "string"
}
], - "top_nodes": [
- {
- "id": "string",
- "kind": "cluster",
- "title": "string",
- "subtitle": "string",
- "preview_labels": [
- "string"
], - "member_count": 0,
- "status_tone": "stable",
- "display_priority": 0,
- "render_mode_hint": "detail",
- "cluster_membership": [
- "string"
], - "node_ref": "string"
}
], - "bundled_edges": [
- {
- "id": "string",
- "source_id": "string",
- "target_id": "string",
- "weight": 0,
- "label": "string"
}
], - "initial_focus_ids": [
- "string"
], - "generated_at": "string",
- "cached": false
}Retrieve a bounded neighborhood for focused graph exploration and detail rendering.
| bank_id required | string (Bank Id) |
| surface | string (Surface) Default: "state" Enum: "state" "evidence" |
Type (string) or Type (null) (Type) | |
Q (string) or Q (null) (Q) | |
Array of Tags (strings) or Tags (null) (Tags) | |
| tags_match | string (Tags Match) Default: "all_strict" Enum: "any" "all" "any_strict" "all_strict" |
| confidence_min | number (Confidence Min) [ 0 .. 1 ] Default: 0.55 |
| node_kind | string (Node Kind) Default: "all" Enum: "all" "entity" "topic" |
Window Days (integer) or Window Days (null) (Window Days) Default: 90 | |
Array of Focus Ids (strings) or Focus Ids (null) (Focus Ids) | |
| depth | integer (Depth) [ 1 .. 3 ] Default: 1 |
| limit_nodes | integer (Limit Nodes) [ 1 .. 120 ] Default: 60 |
| limit_edges | integer (Limit Edges) [ 1 .. 300 ] Default: 140 |
Authorization (string) or Authorization (null) (Authorization) |
| surface required | string (Surface) Enum: "state" "evidence" |
| mode_hint required | string (Mode Hint) Enum: "detail" "compact" "overview" |
| focus_ids | Array of strings (Focus Ids) |
Array of objects (Nodes) | |
Array of objects (Edges) | |
| total_nodes required | integer (Total Nodes) |
| total_edges required | integer (Total Edges) |
| has_more | boolean (Has More) Default: false |
Cursor (string) or Cursor (null) (Cursor) | |
| generated_at required | string (Generated At) |
| cached | boolean (Cached) Default: false |
{- "surface": "state",
- "mode_hint": "detail",
- "focus_ids": [
- "string"
], - "nodes": [
- {
- "id": "string",
- "node_type": "state",
- "title": "string",
- "subtitle": "string",
- "preview": "string",
- "status_label": "string",
- "status_tone": "stable",
- "confidence": 0,
- "evidence_count": 0,
- "kind_label": "string",
- "meta": "string",
- "timestamp_label": "string",
- "reason": "string",
- "accent_color": "string",
- "display_priority": 0,
- "node_density_hint": 0,
- "cluster_membership": "string",
- "render_mode_hint": "detail"
}
], - "edges": [
- {
- "id": "string",
- "source": "string",
- "target": "string",
- "kind": "relation",
- "label": "string",
- "stroke": "string",
- "dashed": false,
- "width": 1.6,
- "animated": true,
- "priority": 0
}
], - "total_nodes": 0,
- "total_edges": 0,
- "has_more": false,
- "cursor": "string",
- "generated_at": "string",
- "cached": false
}List memory units with pagination and optional full-text search. Supports filtering by type. Results are sorted by most recent first (mentioned_at DESC, then created_at DESC).
| bank_id required | string (Bank Id) |
Type (string) or Type (null) (Type) | |
Q (string) or Q (null) (Q) | |
Branch Name (string) or Branch Name (null) (Branch Name) | |
| limit | integer (Limit) Default: 100 |
| offset | integer (Offset) Default: 0 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) |
| total required | integer (Total) |
| limit required | integer (Limit) |
| offset required | integer (Offset) |
{- "items": [
- {
- "context": "Work conversation",
- "date": "2024-01-15T10:30:00Z",
- "entities": "Alice (PERSON), Google (ORGANIZATION)",
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "text": "Alice works at Google on the AI team",
- "type": "world"
}
], - "limit": 100,
- "offset": 0,
- "total": 150
}Get a single memory unit by ID with all its metadata including entities and tags. Note: the 'history' field is deprecated and always returns an empty list - use GET /memories/{memory_id}/history instead.
| bank_id required | string (Bank Id) |
| memory_id required | string (Memory Id) |
Branch Name (string) or Branch Name (null) (Branch Name) |
Authorization (string) or Authorization (null) (Authorization) |
nullGet the full history of an observation, with each change's source facts resolved to their text.
| bank_id required | string (Bank Id) |
| memory_id required | string (Memory Id) |
Authorization (string) or Authorization (null) (Authorization) |
nullRecall memory using semantic similarity and spreading activation.
The type parameter is optional and must be one of:
world: General knowledge about people, places, events, and things that happenexperience: Memories about experience, conversations, actions taken, and tasks performed| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| query required | string (Query) |
Branch Name (string) or Branch Name (null) (Branch Name) Optional memory repo branch to query without checking it out. | |
Array of Types (strings) or Types (null) (Types) List of fact types to recall: 'world', 'experience', 'observation'. Defaults to world and experience if not specified. | |
| budget | string (Budget) Default: "mid" Enum: "low" "mid" "high" Budget levels for recall/reflect operations. |
| max_tokens | integer (Max Tokens) Default: 4096 |
| trace | boolean (Trace) Default: false |
Query Timestamp (string) or Query Timestamp (null) (Query Timestamp) ISO format date string (e.g., '2023-05-30T23:40:00') | |
object (IncludeOptions) Default: {} Options for including additional data (entities are included by default) | |
Array of Tags (strings) or Tags (null) (Tags) Filter memories by tags. If not specified, all memories are returned. | |
| tags_match | string (Tags Match) Default: "any" Enum: "any" "all" "any_strict" "all_strict" How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). |
(Array of Tag Groups (TagGroupLeaf (object) or TagGroupAnd (object) or TagGroupOr (object) or TagGroupNot (object))) or Tag Groups (null) (Tag Groups) Compound boolean tag predicates. Each entry is a leaf ( |
required | Array of objects (Results) |
Trace (object) or Trace (null) (Trace) | |
Entities (object) or Entities (null) (Entities) Entity states for entities mentioned in results | |
Chunks (object) or Chunks (null) (Chunks) Chunks for facts, keyed by chunk_id | |
Source Facts (object) or Source Facts (null) (Source Facts) Source facts for observation-type results, keyed by fact ID |
{- "budget": "mid",
- "include": {
- "entities": {
- "max_tokens": 500
}
}, - "max_tokens": 4096,
- "query": "What did Alice say about machine learning?",
- "query_timestamp": "2023-05-30T23:40:00",
- "tags": [
- "user_a"
], - "tags_match": "any",
- "trace": true,
- "types": [
- "world",
- "experience"
]
}{- "chunks": {
- "456e7890-e12b-34d5-a678-901234567890": {
- "chunk_index": 0,
- "id": "456e7890-e12b-34d5-a678-901234567890",
- "text": "Alice works at Google on the AI team. She's been there for 3 years..."
}
}, - "entities": {
- "Alice": {
- "canonical_name": "Alice",
- "entity_id": "123e4567-e89b-12d3-a456-426614174001",
- "observations": [
- {
- "mentioned_at": "2024-01-15T10:30:00Z",
- "text": "Alice works at Google on the AI team"
}
]
}
}, - "results": [
- {
- "chunk_id": "456e7890-e12b-34d5-a678-901234567890",
- "context": "work info",
- "entities": [
- "Alice",
- "Google"
], - "id": "123e4567-e89b-12d3-a456-426614174000",
- "occurred_end": "2024-01-15T10:30:00Z",
- "occurred_start": "2024-01-15T10:30:00Z",
- "text": "Alice works at Google on the AI team",
- "type": "world"
}
], - "trace": {
- "num_results": 1,
- "query": "What did Alice say about machine learning?",
- "time_seconds": 0.123
}
}Reflect and formulate an answer using bank identity, world facts, and opinions.
This endpoint:
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| query required | string (Query) |
Branch Name (string) or Branch Name (null) (Branch Name) Optional memory repo branch to query without checking it out. | |
| budget | string (Budget) Default: "low" Enum: "low" "mid" "high" Budget levels for recall/reflect operations. |
Context (string) or Context (null) (Context) Deprecated DEPRECATED: Additional context is now concatenated with the query. Pass context directly in the query field instead. If provided, it will be appended to the query for backward compatibility. | |
| max_tokens | integer (Max Tokens) Default: 4096 Maximum tokens for the response |
object (ReflectIncludeOptions) Options for including additional data (disabled by default) | |
Response Schema (object) or Response Schema (null) (Response Schema) Optional JSON Schema for structured output. When provided, the response will include a 'structured_output' field with the LLM response parsed according to this schema. | |
Array of Tags (strings) or Tags (null) (Tags) Filter memories by tags during reflection. If not specified, all memories are considered. | |
| tags_match | string (Tags Match) Default: "any" Enum: "any" "all" "any_strict" "all_strict" How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). |
(Array of Tag Groups (TagGroupLeaf (object) or TagGroupAnd (object) or TagGroupOr (object) or TagGroupNot (object))) or Tag Groups (null) (Tag Groups) Compound boolean tag predicates. Each entry is a leaf ( |
| text required | string (Text) The reflect response as well-formatted markdown (headers, lists, bold/italic, code blocks, etc.) |
ReflectBasedOn (object) or null Evidence used to generate the response. Only present when include.facts is set. | |
Structured Output (object) or Structured Output (null) (Structured Output) Structured output parsed according to the request's response_schema. Only present when response_schema was provided in the request. | |
TokenUsage (object) or null Token usage metrics for LLM calls during reflection. | |
ReflectTrace (object) or null Execution trace of tool and LLM calls. Only present when include.tool_calls is set. |
{- "budget": "low",
- "include": {
- "facts": { }
}, - "max_tokens": 4096,
- "query": "What do you think about artificial intelligence?",
- "response_schema": {
- "properties": {
- "summary": {
- "type": "string"
}, - "key_points": {
- "items": {
- "type": "string"
}, - "type": "array"
}
}, - "required": [
- "summary",
- "key_points"
], - "type": "object"
}, - "tags": [
- "user_a"
], - "tags_match": "any"
}{- "based_on": {
- "memories": [
- {
- "id": "123",
- "text": "AI is used in healthcare",
- "type": "world"
}, - {
- "id": "456",
- "text": "I discussed AI applications last week",
- "type": "experience"
}
]
}, - "structured_output": {
- "key_points": [
- "Used in healthcare",
- "Discussed recently"
], - "summary": "AI is transformative"
}, - "text": "## AI Overview\n\nBased on my understanding, AI is a **transformative technology**:\n\n- Used extensively in healthcare\n- Discussed in recent conversations\n- Continues to evolve rapidly",
- "trace": {
- "llm_calls": [
- {
- "duration_ms": 1200,
- "scope": "agent_1"
}
], - "observations": [
- {
- "id": "obs-1",
- "name": "AI Technology",
- "subtype": "structural",
- "type": "concept"
}
], - "tool_calls": [
- {
- "duration_ms": 150,
- "input": {
- "query": "AI"
}, - "tool": "recall"
}
]
}, - "usage": {
- "input_tokens": 1500,
- "output_tokens": 500,
- "total_tokens": 2000
}
}Run the internet research agent: SearXNG search and optional Firecrawl extract. Uses the same LLM configuration as reflect for this bank. Does not read or write memories.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| query required | string (Query) Question to answer using the public web only |
| budget | string (Budget) Default: "mid" Enum: "low" "mid" "high" Budget levels for recall/reflect operations. |
| max_tokens | integer (Max Tokens) Default: 4096 Max completion tokens for each LLM step where supported |
object (ReflectIncludeOptions) Optional tool trace (include.facts is ignored). |
| text required | string (Text) Markdown answer synthesized from web tools |
| source_urls | Array of strings (Source Urls) URLs the model relied on |
| writes_to_bank | boolean (Writes To Bank) Default: false Always false; included so clients can assert no graph mutation occurred |
TokenUsage (object) or null LLM token usage for this run | |
ReflectTrace (object) or null Tool and LLM trace when include.tool_calls was set |
{- "budget": "mid",
- "include": {
- "tool_calls": { }
}, - "max_tokens": 4096,
- "query": "Latest stable release of Python"
}{- "text": "string",
- "source_urls": [
- "string"
], - "writes_to_bank": false,
- "usage": {
- "input_tokens": 1500,
- "output_tokens": 500,
- "total_tokens": 2000
}, - "trace": {
- "tool_calls": [ ],
- "llm_calls": [ ]
}
}Queue a reflect operation for background execution and retrieve the result via the operations API.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| query required | string (Query) |
Branch Name (string) or Branch Name (null) (Branch Name) Optional memory repo branch to query without checking it out. | |
| budget | string (Budget) Default: "low" Enum: "low" "mid" "high" Budget levels for recall/reflect operations. |
Context (string) or Context (null) (Context) Deprecated DEPRECATED: Additional context is now concatenated with the query. Pass context directly in the query field instead. If provided, it will be appended to the query for backward compatibility. | |
| max_tokens | integer (Max Tokens) Default: 4096 Maximum tokens for the response |
object (ReflectIncludeOptions) Options for including additional data (disabled by default) | |
Response Schema (object) or Response Schema (null) (Response Schema) Optional JSON Schema for structured output. When provided, the response will include a 'structured_output' field with the LLM response parsed according to this schema. | |
Array of Tags (strings) or Tags (null) (Tags) Filter memories by tags during reflection. If not specified, all memories are considered. | |
| tags_match | string (Tags Match) Default: "any" Enum: "any" "all" "any_strict" "all_strict" How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). |
(Array of Tag Groups (TagGroupLeaf (object) or TagGroupAnd (object) or TagGroupOr (object) or TagGroupNot (object))) or Tag Groups (null) (Tag Groups) Compound boolean tag predicates. Each entry is a leaf ( |
| operation_id required | string (Operation Id) |
| status required | string (Status) |
{- "budget": "low",
- "include": {
- "facts": { }
}, - "max_tokens": 4096,
- "query": "What do you think about artificial intelligence?",
- "response_schema": {
- "properties": {
- "summary": {
- "type": "string"
}, - "key_points": {
- "items": {
- "type": "string"
}, - "type": "array"
}
}, - "required": [
- "summary",
- "key_points"
], - "type": "object"
}, - "tags": [
- "user_a"
], - "tags_match": "any"
}{- "operation_id": "550e8400-e29b-41d4-a716-446655440000",
- "status": "queued"
}Delete all observations derived from a specific memory and reset it for re-consolidation. The memory itself is not deleted. A consolidation job is triggered automatically so the memory will produce fresh observations on the next consolidation run.
| bank_id required | string (Bank Id) |
| memory_id required | string (Memory Id) |
Authorization (string) or Authorization (null) (Authorization) |
| deleted_count required | integer (Deleted Count) |
{- "deleted_count": 3
}Retain memory items with automatic fact extraction.
This is the main endpoint for storing memories. It supports both synchronous and asynchronous processing via the async parameter.
Features:
The system automatically:
When async=true: Returns immediately after queuing. Use the operations endpoint to monitor progress.
When async=false (default): Waits for processing to complete.
Note: If a memory item has a document_id that already exists, the old document and its memory units will be deleted before creating new ones (upsert behavior).
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) |
| async | boolean (Async) Default: false If true, process asynchronously in background. If false, wait for completion (default: false) |
Array of Document Tags (strings) or Document Tags (null) (Document Tags) Deprecated Deprecated. Use item-level tags instead. |
| success required | boolean (Success) |
| bank_id required | string (Bank Id) |
| items_count required | integer (Items Count) |
| async required | boolean (Async) Whether the operation was processed asynchronously |
Operation Id (string) or Operation Id (null) (Operation Id) Operation ID for tracking async operations. Use GET /v1/default/banks/{bank_id}/operations to list operations. Only present when async=true. | |
TokenUsage (object) or null Token usage metrics for LLM calls during fact extraction (only present for synchronous operations) |
{- "async": false,
- "items": [
- {
- "content": "Alice works at Google",
- "context": "work",
- "document_id": "conversation_123"
}, - {
- "content": "Bob went hiking yesterday",
- "document_id": "conversation_123",
- "timestamp": "2024-01-15T10:00:00Z"
}
]
}{- "async": false,
- "bank_id": "user123",
- "items_count": 2,
- "success": true,
- "usage": {
- "input_tokens": 500,
- "output_tokens": 100,
- "total_tokens": 600
}
}Delete memory units for a memory bank. Optionally filter by type (world, experience, opinion) to delete only specific types. This is a destructive operation that cannot be undone. The bank profile (disposition and background) will be preserved.
| bank_id required | string (Bank Id) |
Type (string) or Type (null) (Type) Optional fact type filter (world, experience, opinion) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
Message (string) or Message (null) (Message) | |
Deleted Count (integer) or Deleted Count (null) (Deleted Count) |
{- "deleted_count": 10,
- "message": "Deleted successfully",
- "success": true
}Get a list of all agents with their profiles
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Banks) | ||||||||||||
Array
| |||||||||||||
{- "banks": [
- {
- "bank_id": "user123",
- "created_at": "2024-01-15T10:30:00Z",
- "disposition": {
- "empathy": 3,
- "literalism": 3,
- "skepticism": 3
}, - "mission": "I am a software engineer helping my team ship quality code",
- "name": "Alice",
- "updated_at": "2024-01-16T14:20:00Z"
}
]
}Get statistics about nodes and links for a specific agent
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
| total_nodes required | integer (Total Nodes) |
| total_links required | integer (Total Links) |
| total_documents required | integer (Total Documents) |
required | object (Nodes By Fact Type) |
required | object (Links By Link Type) |
required | object (Links By Fact Type) |
required | object (Links Breakdown) |
| pending_operations required | integer (Pending Operations) |
| failed_operations required | integer (Failed Operations) |
Last Consolidated At (string) or Last Consolidated At (null) (Last Consolidated At) When consolidation last ran (ISO format) | |
| pending_consolidation | integer (Pending Consolidation) Default: 0 Number of memories not yet processed into observations |
| total_observations | integer (Total Observations) Default: 0 Total number of observations |
{- "bank_id": "user123",
- "failed_operations": 0,
- "last_consolidated_at": "2024-01-15T10:30:00Z",
- "links_breakdown": {
- "fact": {
- "entity": 40,
- "semantic": 60,
- "temporal": 100
}
}, - "links_by_fact_type": {
- "fact": 200,
- "observation": 40,
- "preference": 60
}, - "links_by_link_type": {
- "entity": 50,
- "semantic": 100,
- "temporal": 150
}, - "nodes_by_fact_type": {
- "fact": 100,
- "observation": 20,
- "preference": 30
}, - "pending_consolidation": 0,
- "pending_operations": 2,
- "total_documents": 10,
- "total_links": 300,
- "total_nodes": 150,
- "total_observations": 45
}Get disposition traits and mission for a memory bank. Auto-creates agent with defaults if not exists.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
required | object (DispositionTraits) Disposition traits that influence how memories are formed and interpreted. |
| mission required | string (Mission) The agent's mission - who they are and what they're trying to accomplish |
Background (string) or Background (null) (Background) Deprecated: use mission instead |
{- "bank_id": "user123",
- "disposition": {
- "empathy": 3,
- "literalism": 3,
- "skepticism": 3
}, - "mission": "I am a software engineer helping my team stay organized and ship quality code",
- "name": "Alice"
}Update bank's disposition traits (skepticism, literalism, empathy)
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | object (DispositionTraits) Disposition traits that influence how memories are formed and interpreted. | ||||||
| |||||||
| bank_id required | string (Bank Id) |
| name required | string (Name) |
required | object (DispositionTraits) Disposition traits that influence how memories are formed and interpreted. |
| mission required | string (Mission) The agent's mission - who they are and what they're trying to accomplish |
Background (string) or Background (null) (Background) Deprecated: use mission instead |
{- "disposition": {
- "empathy": 3,
- "literalism": 3,
- "skepticism": 3
}
}{- "bank_id": "user123",
- "disposition": {
- "empathy": 3,
- "literalism": 3,
- "skepticism": 3
}, - "mission": "I am a software engineer helping my team stay organized and ship quality code",
- "name": "Alice"
}Deprecated: Use PUT /mission instead. This endpoint now updates the mission field.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| content required | string (Content) New background information to add or merge |
| update_disposition | boolean (Update Disposition) Default: true Deprecated - disposition is no longer auto-inferred from mission |
| mission required | string (Mission) |
Background (string) or Background (null) (Background) Deprecated: same as mission | |
DispositionTraits (object) or null |
{- "content": "I was born in Texas",
- "update_disposition": true
}{- "mission": "I was born in Texas. I am a software engineer with 10 years of experience."
}Create a new agent or update existing agent with disposition and mission. Auto-fills missing fields with defaults.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
Name (string) or Name (null) (Name) Deprecated: display label only, not advertised | |
DispositionTraits (object) or null Deprecated: use update_bank_config instead | |
Disposition Skepticism (integer) or Disposition Skepticism (null) (Disposition Skepticism) Deprecated: use update_bank_config instead | |
Disposition Literalism (integer) or Disposition Literalism (null) (Disposition Literalism) Deprecated: use update_bank_config instead | |
Disposition Empathy (integer) or Disposition Empathy (null) (Disposition Empathy) Deprecated: use update_bank_config instead | |
Mission (string) or Mission (null) (Mission) Deprecated: use update_bank_config with reflect_mission instead | |
Background (string) or Background (null) (Background) Deprecated: use update_bank_config with reflect_mission instead | |
Reflect Mission (string) or Reflect Mission (null) (Reflect Mission) Mission/context for Reflect operations. Guides how Reflect interprets and uses memories. | |
Retain Mission (string) or Retain Mission (null) (Retain Mission) Steers what gets extracted during retain(). Injected alongside built-in extraction rules. | |
Retain Extraction Mode (string) or Retain Extraction Mode (null) (Retain Extraction Mode) Fact extraction mode: 'concise' (default), 'verbose', or 'custom'. | |
Retain Custom Instructions (string) or Retain Custom Instructions (null) (Retain Custom Instructions) Custom extraction prompt. Only active when retain_extraction_mode is 'custom'. | |
Retain Chunk Size (integer) or Retain Chunk Size (null) (Retain Chunk Size) Maximum token size for each content chunk during retain. | |
Bank Preset (string) or Bank Preset (null) (Bank Preset) Optional starter kit merged before explicit fields: 'codebase' tunes retain/reflect/observations for repository and ASD chunk ingest, and idempotently seeds developer-guide mental models plus one evidence-first directive. Unknown values are ignored. | |
Enable Observations (boolean) or Enable Observations (null) (Enable Observations) Toggle automatic observation consolidation after retain(). | |
Observations Mission (string) or Observations Mission (null) (Observations Mission) Controls what gets synthesised into observations. Replaces built-in consolidation rules entirely. |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
required | object (DispositionTraits) Disposition traits that influence how memories are formed and interpreted. |
| mission required | string (Mission) The agent's mission - who they are and what they're trying to accomplish |
Background (string) or Background (null) (Background) Deprecated: use mission instead |
{- "observations_mission": "Observations are stable facts about people and projects. Always include preferences and skills.",
- "retain_mission": "Always include technical decisions and architectural trade-offs. Ignore meeting logistics."
}{- "bank_id": "user123",
- "disposition": {
- "empathy": 3,
- "literalism": 3,
- "skepticism": 3
}, - "mission": "I am a software engineer helping my team stay organized and ship quality code",
- "name": "Alice"
}Partially update an agent's profile. Only provided fields will be updated.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
Name (string) or Name (null) (Name) Deprecated: display label only, not advertised | |
DispositionTraits (object) or null Deprecated: use update_bank_config instead | |
Disposition Skepticism (integer) or Disposition Skepticism (null) (Disposition Skepticism) Deprecated: use update_bank_config instead | |
Disposition Literalism (integer) or Disposition Literalism (null) (Disposition Literalism) Deprecated: use update_bank_config instead | |
Disposition Empathy (integer) or Disposition Empathy (null) (Disposition Empathy) Deprecated: use update_bank_config instead | |
Mission (string) or Mission (null) (Mission) Deprecated: use update_bank_config with reflect_mission instead | |
Background (string) or Background (null) (Background) Deprecated: use update_bank_config with reflect_mission instead | |
Reflect Mission (string) or Reflect Mission (null) (Reflect Mission) Mission/context for Reflect operations. Guides how Reflect interprets and uses memories. | |
Retain Mission (string) or Retain Mission (null) (Retain Mission) Steers what gets extracted during retain(). Injected alongside built-in extraction rules. | |
Retain Extraction Mode (string) or Retain Extraction Mode (null) (Retain Extraction Mode) Fact extraction mode: 'concise' (default), 'verbose', or 'custom'. | |
Retain Custom Instructions (string) or Retain Custom Instructions (null) (Retain Custom Instructions) Custom extraction prompt. Only active when retain_extraction_mode is 'custom'. | |
Retain Chunk Size (integer) or Retain Chunk Size (null) (Retain Chunk Size) Maximum token size for each content chunk during retain. | |
Bank Preset (string) or Bank Preset (null) (Bank Preset) Optional starter kit merged before explicit fields: 'codebase' tunes retain/reflect/observations for repository and ASD chunk ingest, and idempotently seeds developer-guide mental models plus one evidence-first directive. Unknown values are ignored. | |
Enable Observations (boolean) or Enable Observations (null) (Enable Observations) Toggle automatic observation consolidation after retain(). | |
Observations Mission (string) or Observations Mission (null) (Observations Mission) Controls what gets synthesised into observations. Replaces built-in consolidation rules entirely. |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
required | object (DispositionTraits) Disposition traits that influence how memories are formed and interpreted. |
| mission required | string (Mission) The agent's mission - who they are and what they're trying to accomplish |
Background (string) or Background (null) (Background) Deprecated: use mission instead |
{- "observations_mission": "Observations are stable facts about people and projects. Always include preferences and skills.",
- "retain_mission": "Always include technical decisions and architectural trade-offs. Ignore meeting logistics."
}{- "bank_id": "user123",
- "disposition": {
- "empathy": 3,
- "literalism": 3,
- "skepticism": 3
}, - "mission": "I am a software engineer helping my team stay organized and ship quality code",
- "name": "Alice"
}Delete an entire memory bank including all memories, entities, documents, and the bank profile itself. This is a destructive operation that cannot be undone.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
Message (string) or Message (null) (Message) | |
Deleted Count (integer) or Deleted Count (null) (Deleted Count) |
{- "deleted_count": 10,
- "message": "Deleted successfully",
- "success": true
}Delete all observations for a memory bank. This is useful for resetting the consolidated knowledge.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
Message (string) or Message (null) (Message) | |
Deleted Count (integer) or Deleted Count (null) (Deleted Count) |
{- "deleted_count": 10,
- "message": "Deleted successfully",
- "success": true
}Get fully resolved configuration for a bank including all hierarchical overrides (global → tenant → bank). The 'config' field contains all resolved config values. The 'overrides' field shows only bank-specific overrides.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) Bank identifier |
required | object (Config) Fully resolved configuration with all hierarchical overrides applied (Python field names) |
required | object (Overrides) Bank-specific configuration overrides only (Python field names) |
{- "bank_id": "my-bank",
- "config": {
- "llm_model": "gpt-4",
- "llm_provider": "openai",
- "retain_extraction_mode": "verbose"
}, - "overrides": {
- "llm_model": "gpt-4",
- "retain_extraction_mode": "verbose"
}
}Update configuration overrides for a bank. Only hierarchical fields can be overridden (LLM settings, retention parameters, etc.). Keys can be provided in Python field format (llm_provider) or environment variable format (ATULYA_API_LLM_PROVIDER).
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | object (Updates) Configuration overrides. Keys can be in Python field format (llm_provider) or environment variable format (ATULYA_API_LLM_PROVIDER). Only hierarchical fields can be overridden per-bank. | ||
| |||
| bank_id required | string (Bank Id) Bank identifier |
required | object (Config) Fully resolved configuration with all hierarchical overrides applied (Python field names) |
required | object (Overrides) Bank-specific configuration overrides only (Python field names) |
{- "updates": {
- "llm_model": "claude-sonnet-4-5",
- "retain_custom_instructions": "Extract technical details carefully",
- "retain_extraction_mode": "verbose"
}
}{- "bank_id": "my-bank",
- "config": {
- "llm_model": "gpt-4",
- "llm_provider": "openai",
- "retain_extraction_mode": "verbose"
}, - "overrides": {
- "llm_model": "gpt-4",
- "retain_extraction_mode": "verbose"
}
}Reset bank configuration to defaults by removing all bank-specific overrides. The bank will then use global and tenant-level configuration only.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) Bank identifier |
required | object (Config) Fully resolved configuration with all hierarchical overrides applied (Python field names) |
required | object (Overrides) Bank-specific configuration overrides only (Python field names) |
{- "bank_id": "my-bank",
- "config": {
- "llm_model": "gpt-4",
- "llm_provider": "openai",
- "retain_extraction_mode": "verbose"
}, - "overrides": {
- "llm_model": "gpt-4",
- "retain_extraction_mode": "verbose"
}
}Run memory consolidation to create/update observations from recent memories.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| operation_id required | string (Operation Id) ID of the async consolidation operation |
| deduplicated | boolean (Deduplicated) Default: false True if an existing pending task was reused |
{- "operation_id": "string",
- "deduplicated": false
}Queue a sub_routine operation for atulya-brain cache refresh and activity-time learning.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| mode | string (Mode) Default: "incremental" Enum: "warmup" "incremental" "full_copy" |
| horizon_hours | integer (Horizon Hours) [ 1 .. 168 ] Default: 24 |
| force_rebuild | boolean (Force Rebuild) Default: false |
| operation_id required | string (Operation Id) ID of the async consolidation operation |
| deduplicated | boolean (Deduplicated) Default: false True if an existing pending task was reused |
{- "mode": "warmup",
- "horizon_hours": 24,
- "force_rebuild": false
}{- "operation_id": "string",
- "deduplicated": false
}| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| trigger_source | string (Trigger Source) Default: "manual" manual | event | cron |
| run_type | string (Run Type) Default: "dream" dream | trance |
| operation_id required | string (Operation Id) ID of the async consolidation operation |
| deduplicated | boolean (Deduplicated) Default: false True if an existing pending task was reused |
{- "trigger_source": "manual",
- "run_type": "dream"
}{- "operation_id": "string",
- "deduplicated": false
}| bank_id required | string (Bank Id) |
| limit | integer (Limit) [ 1 .. 100 ] Default: 20 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) | ||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||
{- "items": [
- {
- "run_id": "string",
- "bank_id": "string",
- "status": "string",
- "run_type": "string",
- "trigger_source": "string",
- "created_at": "string",
- "updated_at": "string",
- "narrative_html": "string",
- "summary": "string",
- "evidence_basis": { },
- "signals": { },
- "predictions": [
- { }
], - "growth_hypotheses": [
- { }
], - "promotion_proposals": [
- { }
], - "validation_outcomes": [
- { }
], - "confidence": { },
- "novelty_score": 0,
- "maturity_tier": "sparse",
- "failure_reason": "string",
- "quality_score": 0,
- "legacy_run": false,
- "source_artifact_id": "string"
}
]
}| bank_id required | string (Bank Id) |
| proposal_id required | string (Proposal Id) |
Authorization (string) or Authorization (null) (Authorization) |
| action required | string (Action) Enum: "approve" "reject" "request_more_evidence" |
Note (string) or Note (null) (Note) |
{- "action": "approve",
- "note": "string"
}null| bank_id required | string (Bank Id) |
| prediction_id required | string (Prediction Id) |
Authorization (string) or Authorization (null) (Authorization) |
| status required | string (Status) Enum: "confirmed" "contradicted" "request_more_evidence" |
Note (string) or Note (null) (Note) | |
| evidence_ids | Array of strings (Evidence Ids) |
{- "status": "confirmed",
- "note": "string",
- "evidence_ids": [
- "string"
]
}null| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
| total_runs required | integer (Total Runs) |
required | Last Run At (string) or Last Run At (null) (Last Run At) |
| avg_quality required | number (Avg Quality) |
| avg_tokens required | number (Avg Tokens) |
| avg_output_tokens required | number (Avg Output Tokens) |
| distillation_pass_rate required | number (Distillation Pass Rate) |
| distilled_count required | integer (Distilled Count) |
| validation_rate | number (Validation Rate) Default: 0 |
| avg_novelty | number (Avg Novelty) Default: 0 |
| failed_run_count | integer (Failed Run Count) Default: 0 |
| duplicate_suppression_count | integer (Duplicate Suppression Count) Default: 0 |
| prediction_confirmation_rate | number (Prediction Confirmation Rate) Default: 0 |
| unresolved_prediction_backlog | integer (Unresolved Prediction Backlog) Default: 0 |
{- "bank_id": "string",
- "total_runs": 0,
- "last_run_at": "string",
- "avg_quality": 0,
- "avg_tokens": 0,
- "avg_output_tokens": 0,
- "distillation_pass_rate": 0,
- "distilled_count": 0,
- "validation_rate": 0,
- "avg_novelty": 0,
- "failed_run_count": 0,
- "duplicate_suppression_count": 0,
- "prediction_confirmation_rate": 0,
- "unresolved_prediction_backlog": 0
}Return current brain cache state for the bank.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| enabled required | boolean (Enabled) |
| circuit_open required | boolean (Circuit Open) |
| failure_count required | integer (Failure Count) |
| bank_id required | string (Bank Id) |
| file_path required | string (File Path) |
| exists required | boolean (Exists) |
| size_bytes required | integer (Size Bytes) |
Last Modified At (string) or Last Modified At (null) (Last Modified At) | |
Source Snapshot Id (string) or Source Snapshot Id (null) (Source Snapshot Id) | |
Generated At (string) or Generated At (null) (Generated At) | |
| native_library_loaded required | boolean (Native Library Loaded) |
Format Version (integer) or Format Version (null) (Format Version) | |
Model Signature (string) or Model Signature (null) (Model Signature) | |
Compatibility Reason (string) or Compatibility Reason (null) (Compatibility Reason) | |
object (Metrics) |
{- "enabled": true,
- "circuit_open": true,
- "failure_count": 0,
- "bank_id": "string",
- "file_path": "string",
- "exists": true,
- "size_bytes": 0,
- "last_modified_at": "string",
- "source_snapshot_id": "string",
- "generated_at": "string",
- "native_library_loaded": true,
- "format_version": 0,
- "model_signature": "string",
- "compatibility_reason": "string",
- "metrics": {
- "property1": 0,
- "property2": 0
}
}Return model predictions for likely active hours for this bank.
| bank_id required | string (Bank Id) |
| horizon_hours | integer (Horizon Hours) [ 1 .. 168 ] Default: 24 |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
| horizon_hours required | integer (Horizon Hours) |
required | Array of objects (Predictions) |
| sample_count | integer (Sample Count) Default: 0 |
Source Snapshot Id (string) or Source Snapshot Id (null) (Source Snapshot Id) | |
Model Signature (string) or Model Signature (null) (Model Signature) |
{- "bank_id": "string",
- "horizon_hours": 0,
- "predictions": [
- {
- "hour_utc": 0,
- "score": 0
}
], - "sample_count": 0,
- "source_snapshot_id": "string",
- "model_signature": "string"
}Return all 24 hourly activity probabilities from the current sub_routine model.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
required | Array of objects (Histogram) |
| sample_count | integer (Sample Count) Default: 0 |
Source Snapshot Id (string) or Source Snapshot Id (null) (Source Snapshot Id) | |
Model Signature (string) or Model Signature (null) (Model Signature) |
{- "bank_id": "string",
- "histogram": [
- {
- "hour_utc": 0,
- "score": 0
}
], - "sample_count": 0,
- "source_snapshot_id": "string",
- "model_signature": "string"
}| bank_id required | string (Bank Id) |
| window_days | integer (Window Days) [ 1 .. 90 ] Default: 14 |
| top_k | integer (Top K) [ 5 .. 50 ] Default: 12 |
| entity_type | string (Entity Type) Default: "all" |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
| window_days required | integer (Window Days) |
| entity_type required | string (Entity Type) |
required | Array of objects (Leaderboard) |
required | Array of objects (Heatmap) |
required | Array of objects (Trend) |
required | Array of objects (Anomalies) |
required | object (Summary) |
{- "bank_id": "string",
- "window_days": 0,
- "entity_type": "string",
- "leaderboard": [
- {
- "id": "string",
- "type": "string",
- "text": "string",
- "access_count": 0,
- "influence_score": 0,
- "contribution": {
- "recency": 0,
- "freq": 0,
- "graph": 0,
- "rerank": 0,
- "dream": 0
}, - "last_accessed_at": "string"
}
], - "heatmap": [
- {
- "weekday": 0,
- "hour_utc": 0,
- "count": 0,
- "score": 0
}
], - "trend": [
- {
- "index": 0,
- "raw": 0,
- "ewma": 0,
- "lower": 0,
- "upper": 0
}
], - "anomalies": [
- { }
], - "summary": { }
}Export validated brain snapshot for this bank.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
nullValidate schema/version/checksum compatibility before importing.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| file required | string <binary> (File) Brain snapshot payload |
| valid required | boolean (Valid) |
Version (integer) or Version (null) (Version) | |
Reason (string) or Reason (null) (Reason) |
{- "valid": true,
- "version": 0,
- "reason": "string"
}Import a validated brain snapshot into this bank cache path.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| file required | string <binary> (File) Brain snapshot payload |
| bank_id required | string (Bank Id) |
| file_path required | string (File Path) |
| size_bytes required | integer (Size Bytes) |
Format Version (integer) or Format Version (null) (Format Version) |
{- "bank_id": "string",
- "file_path": "string",
- "size_bytes": 0,
- "format_version": 0
}Connect to another Atulya instance and distill its knowledge into this bank's brain.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| remote_endpoint required | string (Remote Endpoint) URL of the remote Atulya API (e.g. http://host:8888) |
| remote_bank_id required | string (Remote Bank Id) Bank ID on the remote instance to learn from |
| remote_api_key | string (Remote Api Key) Default: "" Optional API key for the remote instance |
| learning_type | string (Learning Type) Default: "auto" Enum: "auto" "distilled" "structured" "raw_mirror" |
| mode | string (Mode) Default: "incremental" Enum: "incremental" "full_copy" |
| horizon_hours | integer (Horizon Hours) [ 1 .. 168 ] Default: 24 |
| operation_id required | string (Operation Id) |
| deduplicated | boolean (Deduplicated) Default: false |
{- "remote_endpoint": "string",
- "remote_bank_id": "string",
- "remote_api_key": "",
- "learning_type": "auto",
- "mode": "incremental",
- "horizon_hours": 24
}{- "operation_id": "string",
- "deduplicated": false
}Create an opt-in git-like memory repo rooted at a bank, optionally cloning from another bank first.
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) Root bank ID that will become the repo working tree |
Repo Name (string) or Repo Name (null) (Repo Name) Optional display name for the repo | |
Source Bank Id (string) or Source Bank Id (null) (Source Bank Id) Optional source bank to clone into the root bank |
| repo_id required | string (Repo Id) |
| root_bank_id required | string (Root Bank Id) |
| name required | string (Name) |
| active_branch required | string (Active Branch) |
Head Commit Id (string) or Head Commit Id (null) (Head Commit Id) | |
Head Message (string) or Head Message (null) (Head Message) | |
Head Created At (string) or Head Created At (null) (Head Created At) | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Array of Branches (objects) or Branches (null) (Branches) |
{- "bank_id": "string",
- "repo_name": "string",
- "source_bank_id": "string"
}{- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Repos) | ||||||||||||||||||||
Array
| |||||||||||||||||||||
{- "repos": [
- {
- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}
]
}| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
MemoryRepoSummaryResponse (object) or null | |||||||||||||||||||||
Any of
| |||||||||||||||||||||
{- "repo": {
- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}
}| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
| repo_id required | string (Repo Id) |
| root_bank_id required | string (Root Bank Id) |
| name required | string (Name) |
| active_branch required | string (Active Branch) |
Head Commit Id (string) or Head Commit Id (null) (Head Commit Id) | |
Head Message (string) or Head Message (null) (Head Message) | |
Head Created At (string) or Head Created At (null) (Head Created At) | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Array of Branches (objects) or Branches (null) (Branches) |
{- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
Repo Name (string) or Repo Name (null) (Repo Name) Optional display name for the repo | |
Any of string (Repo Name) Optional display name for the repo | |
| repo_id required | string (Repo Id) |
| root_bank_id required | string (Root Bank Id) |
| name required | string (Name) |
| active_branch required | string (Active Branch) |
Head Commit Id (string) or Head Commit Id (null) (Head Commit Id) | |
Head Message (string) or Head Message (null) (Head Message) | |
Head Created At (string) or Head Created At (null) (Head Created At) | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Array of Branches (objects) or Branches (null) (Branches) |
{- "repo_name": "string"
}{- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Branches) | ||
Array
| |||
{- "branches": [
- { }
]
}| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Branches) | ||
Array
| |||
{- "branches": [
- { }
]
}| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
| branch_name required | string (Branch Name) Branch name to create |
From Commit Id (string) or From Commit Id (null) (From Commit Id) Optional commit to branch from |
| property name* additional property | any |
{- "branch_name": "string",
- "from_commit_id": "string"
}{ }| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
| branch_name required | string (Branch Name) Branch to checkout |
| repo_id required | string (Repo Id) |
| root_bank_id required | string (Root Bank Id) |
| name required | string (Name) |
| active_branch required | string (Active Branch) |
Head Commit Id (string) or Head Commit Id (null) (Head Commit Id) | |
Head Message (string) or Head Message (null) (Head Message) | |
Head Created At (string) or Head Created At (null) (Head Created At) | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Array of Branches (objects) or Branches (null) (Branches) |
{- "branch_name": "string"
}{- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
| target_bank_id required | string (Target Bank Id) Brand-new bank ID that will receive the forked snapshot |
Target Bank Name (string) or Target Bank Name (null) (Target Bank Name) Optional display name for the new bank | |
Source Branch (string) or Source Branch (null) (Source Branch) Optional source branch to fork from. Defaults to the repo's active branch. | |
Source Commit Id (string) or Source Commit Id (null) (Source Commit Id) Optional source commit to fork from. Mutually exclusive with source_branch. | |
| include_workspace | boolean (Include Workspace) Default: false When true, fork the live branch workspace instead of the branch HEAD commit. |
| enable_repo | boolean (Enable Repo) Default: false Enable repo mode on the forked bank after materializing the snapshot. |
Repo Name (string) or Repo Name (null) (Repo Name) Optional repo display name for the forked bank when enable_repo=true. |
| bank_id required | string (Bank Id) |
Bank Name (string) or Bank Name (null) (Bank Name) | |
| source_repo_id required | string (Source Repo Id) |
| source_ref required | string (Source Ref) |
Source Branch (string) or Source Branch (null) (Source Branch) | |
Source Commit Id (string) or Source Commit Id (null) (Source Commit Id) | |
| include_workspace required | boolean (Include Workspace) |
| repo_enabled required | boolean (Repo Enabled) |
MemoryRepoSummaryResponse (object) or null |
{- "target_bank_id": "string",
- "target_bank_name": "string",
- "source_branch": "string",
- "source_commit_id": "string",
- "include_workspace": false,
- "enable_repo": false,
- "repo_name": "string"
}{- "bank_id": "string",
- "bank_name": "string",
- "source_repo_id": "string",
- "source_ref": "string",
- "source_branch": "string",
- "source_commit_id": "string",
- "include_workspace": true,
- "repo_enabled": true,
- "repo": {
- "repo_id": "string",
- "root_bank_id": "string",
- "name": "string",
- "active_branch": "string",
- "head_commit_id": "string",
- "head_message": "string",
- "head_created_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "branches": [
- { }
]
}
}| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
| message required | string (Message) Commit message |
Actor (string) or Actor (null) (Actor) Optional actor label |
| property name* additional property | any |
{- "message": "string",
- "actor": "string"
}{ }| repo_id required | string (Repo Id) |
Branch Name (string) or Branch Name (null) (Branch Name) |
Authorization (string) or Authorization (null) (Authorization) |
| repo_id required | string (Repo Id) |
| branch_name required | string (Branch Name) |
| workspace_bank_id required | string (Workspace Bank Id) |
Head Commit Id (string) or Head Commit Id (null) (Head Commit Id) | |
| dirty required | boolean (Dirty) |
| changed_components required | Array of strings (Changed Components) |
required | object (Table Deltas) |
{- "repo_id": "string",
- "branch_name": "string",
- "workspace_bank_id": "string",
- "head_commit_id": "string",
- "dirty": true,
- "changed_components": [
- "string"
], - "table_deltas": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}| repo_id required | string (Repo Id) |
Branch Name (string) or Branch Name (null) (Branch Name) | |
| limit | integer (Limit) Default: 50 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Commits) | ||
Array
| |||
{- "commits": [
- { }
]
}| repo_id required | string (Repo Id) |
From Commit Id (string) or From Commit Id (null) (From Commit Id) | |
To Commit Id (string) or To Commit Id (null) (To Commit Id) | |
From Branch (string) or From Branch (null) (From Branch) | |
To Branch (string) or To Branch (null) (To Branch) | |
| include_workspace | boolean (Include Workspace) Default: false |
Authorization (string) or Authorization (null) (Authorization) |
| repo_id required | string (Repo Id) |
| from_ref required | string (From Ref) |
| to_ref required | string (To Ref) |
| dirty required | boolean (Dirty) |
| changed_components required | Array of strings (Changed Components) |
required | object (Table Deltas) |
{- "repo_id": "string",
- "from_ref": "string",
- "to_ref": "string",
- "dirty": true,
- "changed_components": [
- "string"
], - "table_deltas": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}| repo_id required | string (Repo Id) |
Authorization (string) or Authorization (null) (Authorization) |
| commit_id required | string (Commit Id) Commit to reset the active branch to |
| force | boolean (Force) Default: false Allow reset even when the workspace is dirty |
| repo_id required | string (Repo Id) |
| branch_name required | string (Branch Name) |
| workspace_bank_id required | string (Workspace Bank Id) |
Head Commit Id (string) or Head Commit Id (null) (Head Commit Id) | |
| dirty required | boolean (Dirty) |
| changed_components required | Array of strings (Changed Components) |
required | object (Table Deltas) |
{- "commit_id": "string",
- "force": false
}{- "repo_id": "string",
- "branch_name": "string",
- "workspace_bank_id": "string",
- "head_commit_id": "string",
- "dirty": true,
- "changed_components": [
- "string"
], - "table_deltas": {
- "property1": {
- "property1": 0,
- "property2": 0
}, - "property2": {
- "property1": 0,
- "property2": 0
}
}
}List all entities (people, organizations, etc.) known by the bank, ordered by mention count. Supports pagination.
| bank_id required | string (Bank Id) |
| limit | integer (Limit) Default: 100 Maximum number of entities to return |
| offset | integer (Offset) Default: 0 Offset for pagination |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) |
| total required | integer (Total) |
| limit required | integer (Limit) |
| offset required | integer (Offset) |
{- "items": [
- {
- "canonical_name": "John",
- "first_seen": "2024-01-15T10:30:00Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "last_seen": "2024-02-01T14:00:00Z",
- "mention_count": 15
}
], - "limit": 100,
- "offset": 0,
- "total": 150
}Get detailed information about an entity including observations (mental model).
| bank_id required | string (Bank Id) |
| entity_id required | string (Entity Id) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| canonical_name required | string (Canonical Name) |
| mention_count required | integer (Mention Count) |
First Seen (string) or First Seen (null) (First Seen) | |
Last Seen (string) or Last Seen (null) (Last Seen) | |
Metadata (object) or Metadata (null) (Metadata) | |
required | Array of objects (Observations) |
{- "canonical_name": "John",
- "first_seen": "2024-01-15T10:30:00Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "last_seen": "2024-02-01T14:00:00Z",
- "mention_count": 15,
- "observations": [
- {
- "mentioned_at": "2024-01-15T10:30:00Z",
- "text": "John works at Google"
}
]
}Return the latest LLM+HMM-style progression snapshot for an entity, if computed.
| bank_id required | string (Bank Id) |
| entity_id required | string (Entity Id) |
Authorization (string) or Authorization (null) (Authorization) |
| entity_id required | string (Entity Id) |
| bank_id required | string (Bank Id) |
Computed At (string) or Computed At (null) (Computed At) | |
| state_vocabulary required | Array of strings (State Vocabulary) |
| vocabulary_hash | string (Vocabulary Hash) Default: "" |
| transition_matrix required | Array of numbers (Transition Matrix) [ items ] |
| current_state required | string (Current State) |
required | Array of objects (Viterbi Path) |
| forecast_horizon required | integer (Forecast Horizon) |
required | object (Forecast Distribution) |
Forward Log Prob (number) or Forward Log Prob (null) (Forward Log Prob) | |
Anomaly Score (number) or Anomaly Score (null) (Anomaly Score) | |
| llm_model | string (Llm Model) Default: "" |
| prompt_version | string (Prompt Version) Default: "" |
{- "entity_id": "string",
- "bank_id": "string",
- "computed_at": "string",
- "state_vocabulary": [
- "string"
], - "vocabulary_hash": "",
- "transition_matrix": [
- [
- 0
]
], - "current_state": "string",
- "viterbi_path": [
- {
- "unit_id": "string",
- "state": "string",
- "occurred_sort_at": "string",
- "fact_preview": "string"
}
], - "forecast_horizon": 0,
- "forecast_distribution": {
- "property1": 0,
- "property2": 0
}, - "forward_log_prob": 0,
- "anomaly_score": 0,
- "llm_model": "",
- "prompt_version": ""
}Enqueue a background job to recompute the trajectory for this entity.
| bank_id required | string (Bank Id) |
| entity_id required | string (Entity Id) |
Authorization (string) or Authorization (null) (Authorization) |
| operation_id required | string (Operation Id) |
| status | string (Status) Default: "pending" |
{- "operation_id": "string",
- "status": "pending"
}Return the latest bank-level entity intelligence snapshot, if computed.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
Computed At (string) or Computed At (null) (Computed At) | |
| entity_count required | integer (Entity Count) |
| source_entity_count required | integer (Source Entity Count) |
| entity_snapshot_hash | string (Entity Snapshot Hash) Default: "" |
| content required | string (Content) |
object (Structured Content) Default: {} | |
object (Entity Context) Default: {} | |
object (Delta Metadata) Default: {} | |
| llm_model | string (Llm Model) Default: "" |
| prompt_version | string (Prompt Version) Default: "" |
{- "bank_id": "string",
- "computed_at": "string",
- "entity_count": 0,
- "source_entity_count": 0,
- "entity_snapshot_hash": "",
- "content": "string",
- "structured_content": { },
- "entity_context": { },
- "delta_metadata": { },
- "llm_model": "",
- "prompt_version": ""
}Enqueue a background job to recompute bank-level entity intelligence.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| operation_id required | string (Operation Id) |
| status | string (Status) Default: "pending" |
{- "operation_id": "string",
- "status": "pending"
}This endpoint is deprecated. Entity observations have been replaced by mental models.
| bank_id required | string (Bank Id) |
| entity_id required | string (Entity Id) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| canonical_name required | string (Canonical Name) |
| mention_count required | integer (Mention Count) |
First Seen (string) or First Seen (null) (First Seen) | |
Last Seen (string) or Last Seen (null) (Last Seen) | |
Metadata (object) or Metadata (null) (Metadata) | |
required | Array of objects (Observations) |
{- "canonical_name": "John",
- "first_seen": "2024-01-15T10:30:00Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "last_seen": "2024-02-01T14:00:00Z",
- "mention_count": 15,
- "observations": [
- {
- "mentioned_at": "2024-01-15T10:30:00Z",
- "text": "John works at Google"
}
]
}List user-curated living documents that stay current.
| bank_id required | string (Bank Id) |
Array of Tags (strings) or Tags (null) (Tags) Filter by tags | |
| tags_match | string (Tags Match) Default: "any" Enum: "any" "all" "exact" How to match tags |
| limit | integer (Limit) [ 1 .. 1000 ] Default: 100 |
| offset | integer (Offset) >= 0 Default: 0 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) | ||||||||||||||||||||||
Array
| |||||||||||||||||||||||
{- "items": [
- {
- "id": "string",
- "bank_id": "string",
- "name": "string",
- "source_query": "string",
- "content": "string",
- "tags": [ ],
- "max_tokens": 2048,
- "trigger": {
- "mode": "full",
- "refresh_after_consolidation": false
}, - "last_refreshed_at": "string",
- "created_at": "string",
- "reflect_response": { }
}
]
}Create a mental model by running reflect with the source query in the background. Returns an operation ID to track progress. The content is auto-generated by the reflect endpoint. Use the operations endpoint to check completion status.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
Id (string) or Id (null) (Id) Optional custom ID for the mental model (alphanumeric lowercase with hyphens) | |
| name required | string (Name) Human-readable name for the mental model |
| source_query required | string (Source Query) The query to run to generate content |
| tags | Array of strings (Tags) Default: [] Tags for scoped visibility |
| max_tokens | integer (Max Tokens) [ 256 .. 8192 ] Default: 2048 Maximum tokens for generated content |
object (MentalModelTrigger) Default: {} Trigger settings |
Mental Model Id (string) or Mental Model Id (null) (Mental Model Id) ID of the created mental model | |
| operation_id required | string (Operation Id) Operation ID to track refresh progress |
{- "id": "team-communication",
- "max_tokens": 2048,
- "name": "Team Communication Preferences",
- "source_query": "How does the team prefer to communicate?",
- "tags": [
- "team"
], - "trigger": {
- "refresh_after_consolidation": false
}
}{- "mental_model_id": "string",
- "operation_id": "string"
}Get a specific mental model by ID.
| bank_id required | string (Bank Id) |
| mental_model_id required | string (Mental Model Id) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
| source_query required | string (Source Query) |
| content required | string (Content) The mental model content as well-formatted markdown (auto-generated from reflect endpoint) |
| tags | Array of strings (Tags) Default: [] |
| max_tokens | integer (Max Tokens) Default: 2048 |
object (MentalModelTrigger) Default: {} Trigger settings for a mental model. | |
Last Refreshed At (string) or Last Refreshed At (null) (Last Refreshed At) | |
Created At (string) or Created At (null) (Created At) | |
Reflect Response (object) or Reflect Response (null) (Reflect Response) Full reflect API response payload including based_on facts and observations |
{- "id": "string",
- "bank_id": "string",
- "name": "string",
- "source_query": "string",
- "content": "string",
- "tags": [ ],
- "max_tokens": 2048,
- "trigger": {
- "mode": "full",
- "refresh_after_consolidation": false
}, - "last_refreshed_at": "string",
- "created_at": "string",
- "reflect_response": { }
}Update a mental model's name and/or source query.
| bank_id required | string (Bank Id) |
| mental_model_id required | string (Mental Model Id) |
Authorization (string) or Authorization (null) (Authorization) |
Name (string) or Name (null) (Name) New name for the mental model | |
Source Query (string) or Source Query (null) (Source Query) New source query for the mental model | |
Max Tokens (integer) or Max Tokens (null) (Max Tokens) Maximum tokens for generated content | |
Array of Tags (strings) or Tags (null) (Tags) Tags for scoped visibility | |
MentalModelTrigger (object) or null Trigger settings |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
| source_query required | string (Source Query) |
| content required | string (Content) The mental model content as well-formatted markdown (auto-generated from reflect endpoint) |
| tags | Array of strings (Tags) Default: [] |
| max_tokens | integer (Max Tokens) Default: 2048 |
object (MentalModelTrigger) Default: {} Trigger settings for a mental model. | |
Last Refreshed At (string) or Last Refreshed At (null) (Last Refreshed At) | |
Created At (string) or Created At (null) (Created At) | |
Reflect Response (object) or Reflect Response (null) (Reflect Response) Full reflect API response payload including based_on facts and observations |
{- "max_tokens": 4096,
- "name": "Updated Team Communication Preferences",
- "source_query": "How does the team prefer to communicate?",
- "tags": [
- "team",
- "communication"
], - "trigger": {
- "refresh_after_consolidation": true
}
}{- "id": "string",
- "bank_id": "string",
- "name": "string",
- "source_query": "string",
- "content": "string",
- "tags": [ ],
- "max_tokens": 2048,
- "trigger": {
- "mode": "full",
- "refresh_after_consolidation": false
}, - "last_refreshed_at": "string",
- "created_at": "string",
- "reflect_response": { }
}Delete a mental model.
| bank_id required | string (Bank Id) |
| mental_model_id required | string (Mental Model Id) |
Authorization (string) or Authorization (null) (Authorization) |
nullGet the refresh history of a mental model, showing content changes over time.
| bank_id required | string (Bank Id) |
| mental_model_id required | string (Mental Model Id) |
Authorization (string) or Authorization (null) (Authorization) |
nullSubmit an async task to re-run the source query through reflect and update the content.
| bank_id required | string (Bank Id) |
| mental_model_id required | string (Mental Model Id) |
Authorization (string) or Authorization (null) (Authorization) |
| operation_id required | string (Operation Id) |
| status required | string (Status) |
{- "operation_id": "550e8400-e29b-41d4-a716-446655440000",
- "status": "queued"
}List hard rules that are injected into prompts.
| bank_id required | string (Bank Id) |
Array of Tags (strings) or Tags (null) (Tags) Filter by tags | |
| tags_match | string (Tags Match) Default: "any" Enum: "any" "all" "exact" How to match tags |
| active_only | boolean (Active Only) Default: true Only return active directives |
| limit | integer (Limit) [ 1 .. 1000 ] Default: 100 |
| offset | integer (Offset) >= 0 Default: 0 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) | ||||||||||||||||||
Array
| |||||||||||||||||||
{- "items": [
- {
- "id": "string",
- "bank_id": "string",
- "name": "string",
- "content": "string",
- "priority": 0,
- "is_active": true,
- "tags": [ ],
- "created_at": "string",
- "updated_at": "string"
}
]
}Create a hard rule that will be injected into prompts.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| name required | string (Name) Human-readable name for the directive |
| content required | string (Content) The directive text to inject into prompts |
| priority | integer (Priority) Default: 0 Higher priority directives are injected first |
| is_active | boolean (Is Active) Default: true Whether this directive is active |
| tags | Array of strings (Tags) Default: [] Tags for filtering |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
| content required | string (Content) |
| priority | integer (Priority) Default: 0 |
| is_active | boolean (Is Active) Default: true |
| tags | Array of strings (Tags) Default: [] |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) |
{- "name": "string",
- "content": "string",
- "priority": 0,
- "is_active": true,
- "tags": [ ]
}{- "id": "string",
- "bank_id": "string",
- "name": "string",
- "content": "string",
- "priority": 0,
- "is_active": true,
- "tags": [ ],
- "created_at": "string",
- "updated_at": "string"
}Get a specific directive by ID.
| bank_id required | string (Bank Id) |
| directive_id required | string (Directive Id) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
| content required | string (Content) |
| priority | integer (Priority) Default: 0 |
| is_active | boolean (Is Active) Default: true |
| tags | Array of strings (Tags) Default: [] |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) |
{- "id": "string",
- "bank_id": "string",
- "name": "string",
- "content": "string",
- "priority": 0,
- "is_active": true,
- "tags": [ ],
- "created_at": "string",
- "updated_at": "string"
}Update a directive's properties.
| bank_id required | string (Bank Id) |
| directive_id required | string (Directive Id) |
Authorization (string) or Authorization (null) (Authorization) |
Name (string) or Name (null) (Name) New name | |
Content (string) or Content (null) (Content) New content | |
Priority (integer) or Priority (null) (Priority) New priority | |
Is Active (boolean) or Is Active (null) (Is Active) New active status | |
Array of Tags (strings) or Tags (null) (Tags) New tags |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
| content required | string (Content) |
| priority | integer (Priority) Default: 0 |
| is_active | boolean (Is Active) Default: true |
| tags | Array of strings (Tags) Default: [] |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) |
{- "name": "string",
- "content": "string",
- "priority": 0,
- "is_active": true,
- "tags": [
- "string"
]
}{- "id": "string",
- "bank_id": "string",
- "name": "string",
- "content": "string",
- "priority": 0,
- "is_active": true,
- "tags": [ ],
- "created_at": "string",
- "updated_at": "string"
}Delete a directive.
| bank_id required | string (Bank Id) |
| directive_id required | string (Directive Id) |
Authorization (string) or Authorization (null) (Authorization) |
nullList documents with pagination and optional search. Documents are the source content from which memory units are extracted.
| bank_id required | string (Bank Id) |
Q (string) or Q (null) (Q) Case-insensitive substring filter on document ID (e.g. 'report' matches 'report-2024') | |
Branch Name (string) or Branch Name (null) (Branch Name) Optional memory repo branch to inspect without checking it out. | |
Array of Tags (strings) or Tags (null) (Tags) Filter documents by tags | |
| tags_match | string (Tags Match) Default: "any_strict" How to match tags: 'any', 'all', 'any_strict', 'all_strict' |
| limit | integer (Limit) Default: 100 |
| offset | integer (Offset) Default: 0 |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) |
| total required | integer (Total) |
| limit required | integer (Limit) |
| offset required | integer (Offset) |
{- "items": [
- {
- "bank_id": "user123",
- "content_hash": "abc123",
- "created_at": "2024-01-15T10:30:00Z",
- "id": "session_1",
- "memory_unit_count": 15,
- "tags": [
- "user_a",
- "session_123"
], - "text_length": 5420,
- "updated_at": "2024-01-15T10:30:00Z"
}
], - "limit": 100,
- "offset": 0,
- "total": 50
}Get a specific document including its original text
| bank_id required | string (Bank Id) |
| document_id required | string (Document Id) |
Branch Name (string) or Branch Name (null) (Branch Name) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| original_text required | string (Original Text) |
required | Content Hash (string) or Content Hash (null) (Content Hash) |
| created_at required | string (Created At) |
| updated_at required | string (Updated At) |
| memory_unit_count required | integer (Memory Unit Count) |
| tags | Array of strings (Tags) Default: [] Tags associated with this document |
{- "bank_id": "user123",
- "content_hash": "abc123",
- "created_at": "2024-01-15T10:30:00Z",
- "id": "session_1",
- "memory_unit_count": 15,
- "original_text": "Full document text here...",
- "tags": [
- "user_a",
- "session_123"
], - "updated_at": "2024-01-15T10:30:00Z"
}Delete a document and all its associated memory units and links.
This will cascade delete:
This operation cannot be undone.
| bank_id required | string (Bank Id) |
| document_id required | string (Document Id) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
| message required | string (Message) |
| document_id required | string (Document Id) |
| memory_units_deleted required | integer (Memory Units Deleted) |
{- "document_id": "session_1",
- "memory_units_deleted": 5,
- "message": "Document 'session_1' and 5 associated memory units deleted successfully",
- "success": true
}Get a specific chunk by its ID
| chunk_id required | string (Chunk Id) |
Authorization (string) or Authorization (null) (Authorization) |
| chunk_id required | string (Chunk Id) |
| document_id required | string (Document Id) |
| bank_id required | string (Bank Id) |
| chunk_index required | integer (Chunk Index) |
| chunk_text required | string (Chunk Text) |
| created_at required | string (Created At) |
{- "bank_id": "user123",
- "chunk_id": "user123_session_1_0",
- "chunk_index": 0,
- "chunk_text": "This is the first chunk of the document...",
- "created_at": "2024-01-15T10:30:00Z",
- "document_id": "session_1"
}Get a list of async operations for a specific agent, with optional filtering by status and operation type. Results are sorted by most recent first.
| bank_id required | string (Bank Id) |
Status (string) or Status (null) (Status) Filter by status: pending, completed, or failed | |
Type (string) or Type (null) (Type) Filter by operation type: retain, reflect, consolidation, refresh_mental_model, file_convert_retain, codebase_import, codebase_refresh, codebase_approve, webhook_delivery | |
| limit | integer (Limit) [ 1 .. 100 ] Default: 20 Maximum number of operations to return |
| offset | integer (Offset) >= 0 Default: 0 Number of operations to skip |
Authorization (string) or Authorization (null) (Authorization) |
| bank_id required | string (Bank Id) |
| total required | integer (Total) |
| limit required | integer (Limit) |
| offset required | integer (Offset) |
required | Array of objects (Operations) |
{- "bank_id": "user123",
- "limit": 20,
- "offset": 0,
- "operations": [
- {
- "created_at": "2024-01-15T10:30:00Z",
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "status": "pending",
- "task_type": "retain"
}
], - "total": 150
}Get the status of a specific async operation. Returns 'pending', 'completed', or 'failed'. Completed operations are removed from storage, so 'completed' means the operation finished successfully.
| bank_id required | string (Bank Id) |
| operation_id required | string (Operation Id) |
Authorization (string) or Authorization (null) (Authorization) |
| operation_id required | string (Operation Id) |
| status required | string (Status) Enum: "pending" "completed" "failed" "not_found" |
Operation Type (string) or Operation Type (null) (Operation Type) | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Completed At (string) or Completed At (null) (Completed At) | |
Error Message (string) or Error Message (null) (Error Message) | |
Queue State (string) or Queue State (null) (Queue State) | |
Stage (string) or Stage (null) (Stage) High-level progress stage for pending async work, derived from result_metadata.operation_stage. | |
OperationProgressResponse (object) or null Typed progress counters when the operation exposes known totals. | |
Result Metadata (object) or Result Metadata (null) (Result Metadata) Internal metadata for debugging. Structure may change without notice. Not for production use. | |
Array of Child Operations (objects) or Child Operations (null) (Child Operations) Child operations for batch operations (if applicable) |
{- "completed_at": "2024-01-15T10:31:30Z",
- "created_at": "2024-01-15T10:30:00Z",
- "operation_id": "550e8400-e29b-41d4-a716-446655440000",
- "operation_type": "refresh_mental_models",
- "status": "completed",
- "updated_at": "2024-01-15T10:31:30Z"
}Cancel a pending async operation by removing it from the queue
| bank_id required | string (Bank Id) |
| operation_id required | string (Operation Id) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
| message required | string (Message) |
| operation_id required | string (Operation Id) |
{- "message": "Operation 550e8400-e29b-41d4-a716-446655440000 cancelled",
- "operation_id": "550e8400-e29b-41d4-a716-446655440000",
- "success": true
}Get the final user-facing result payload for an async operation.
| bank_id required | string (Bank Id) |
| operation_id required | string (Operation Id) |
Authorization (string) or Authorization (null) (Authorization) |
| operation_id required | string (Operation Id) |
| status required | string (Status) Enum: "pending" "completed" "failed" "not_found" |
Operation Type (string) or Operation Type (null) (Operation Type) | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Completed At (string) or Completed At (null) (Completed At) | |
Error Message (string) or Error Message (null) (Error Message) | |
Queue State (string) or Queue State (null) (Queue State) | |
Stage (string) or Stage (null) (Stage) | |
OperationProgressResponse (object) or null | |
Result Metadata (object) or Result Metadata (null) (Result Metadata) | |
ReflectResponse (object) or Result (object) or Result (null) (Result) |
{- "completed_at": "2024-01-15T10:31:30Z",
- "created_at": "2024-01-15T10:30:00Z",
- "operation_id": "550e8400-e29b-41d4-a716-446655440000",
- "operation_type": "reflect",
- "result": {
- "text": "Final answer"
}, - "stage": "persisting_result",
- "status": "completed",
- "updated_at": "2024-01-15T10:31:30Z"
}Create a new pending operation by re-queueing a failed async operation using its original task payload.
| bank_id required | string (Bank Id) |
| operation_id required | string (Operation Id) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
| message required | string (Message) |
| operation_id required | string (Operation Id) |
| retried_from_operation_id required | string (Retried From Operation Id) |
| bank_id required | string (Bank Id) |
Operation Type (string) or Operation Type (null) (Operation Type) |
{- "bank_id": "user123",
- "message": "Retried operation 550e8400-e29b-41d4-a716-446655440000 as 0196e188-6db5-7f2a-a5f8-f654d2fcb3ad",
- "operation_id": "0196e188-6db5-7f2a-a5f8-f654d2fcb3ad",
- "operation_type": "consolidation",
- "retried_from_operation_id": "550e8400-e29b-41d4-a716-446655440000",
- "success": true
}Register a webhook endpoint to receive event notifications for this bank.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| url required | string (Url) HTTP(S) endpoint URL to deliver events to |
Secret (string) or Secret (null) (Secret) HMAC-SHA256 signing secret (optional) | |
| event_types | Array of strings (Event Types) Default: ["consolidation.completed"] List of event types to deliver. Currently supported: 'consolidation.completed' |
| enabled | boolean (Enabled) Default: true Whether this webhook is active |
object (WebhookHttpConfig) HTTP delivery configuration (method, timeout, headers, params) |
| id required | string (Id) |
required | Bank Id (string) or Bank Id (null) (Bank Id) |
| url required | string (Url) |
Secret (string) or Secret (null) (Secret) Signing secret (redacted in responses) | |
| event_types required | Array of strings (Event Types) |
| enabled required | boolean (Enabled) |
object (WebhookHttpConfig) HTTP delivery configuration for a webhook. | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) |
{- "url": "string",
- "secret": "string",
- "event_types": [
- "consolidation.completed"
], - "enabled": true,
- "http_config": {
- "method": "POST",
- "timeout_seconds": 30,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}
}
}{- "id": "string",
- "bank_id": "string",
- "url": "string",
- "secret": "string",
- "event_types": [
- "string"
], - "enabled": true,
- "http_config": {
- "method": "POST",
- "timeout_seconds": 30,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}
}, - "created_at": "string",
- "updated_at": "string"
}List all webhooks registered for a bank.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) | ||||||||||||||||||
Array
| |||||||||||||||||||
{- "items": [
- {
- "id": "string",
- "bank_id": "string",
- "url": "string",
- "secret": "string",
- "event_types": [
- "string"
], - "enabled": true,
- "http_config": {
- "method": "POST",
- "timeout_seconds": 30,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}
}, - "created_at": "string",
- "updated_at": "string"
}
]
}Remove a registered webhook.
| bank_id required | string (Bank Id) |
| webhook_id required | string (Webhook Id) |
Authorization (string) or Authorization (null) (Authorization) |
| success required | boolean (Success) |
Message (string) or Message (null) (Message) | |
Deleted Count (integer) or Deleted Count (null) (Deleted Count) |
{- "deleted_count": 10,
- "message": "Deleted successfully",
- "success": true
}Update one or more fields of a registered webhook. Only provided fields are changed.
| bank_id required | string (Bank Id) |
| webhook_id required | string (Webhook Id) |
Authorization (string) or Authorization (null) (Authorization) |
Url (string) or Url (null) (Url) HTTP(S) endpoint URL | |
Secret (string) or Secret (null) (Secret) HMAC-SHA256 signing secret. Omit to keep existing; send null to clear. | |
Array of Event Types (strings) or Event Types (null) (Event Types) List of event types | |
Enabled (boolean) or Enabled (null) (Enabled) Whether this webhook is active | |
WebhookHttpConfig (object) or null HTTP delivery configuration |
| id required | string (Id) |
required | Bank Id (string) or Bank Id (null) (Bank Id) |
| url required | string (Url) |
Secret (string) or Secret (null) (Secret) Signing secret (redacted in responses) | |
| event_types required | Array of strings (Event Types) |
| enabled required | boolean (Enabled) |
object (WebhookHttpConfig) HTTP delivery configuration for a webhook. | |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) |
{- "url": "string",
- "secret": "string",
- "event_types": [
- "string"
], - "enabled": true,
- "http_config": {
- "method": "POST",
- "timeout_seconds": 30,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}
}
}{- "id": "string",
- "bank_id": "string",
- "url": "string",
- "secret": "string",
- "event_types": [
- "string"
], - "enabled": true,
- "http_config": {
- "method": "POST",
- "timeout_seconds": 30,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "params": {
- "property1": "string",
- "property2": "string"
}
}, - "created_at": "string",
- "updated_at": "string"
}Inspect delivery history for a webhook (useful for debugging).
| bank_id required | string (Bank Id) |
| webhook_id required | string (Webhook Id) |
| limit | integer (Limit) <= 200 Default: 50 Maximum number of deliveries to return |
Cursor (string) or Cursor (null) (Cursor) Pagination cursor (created_at of last item) |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) |
Next Cursor (string) or Next Cursor (null) (Next Cursor) |
{- "items": [
- {
- "id": "string",
- "webhook_id": "string",
- "url": "string",
- "event_type": "string",
- "status": "string",
- "attempts": 0,
- "next_retry_at": "string",
- "last_error": "string",
- "last_response_status": 0,
- "last_response_body": "string",
- "last_attempt_at": "string",
- "created_at": "string",
- "updated_at": "string"
}
], - "next_cursor": "string"
}Upload files (PDF, DOCX, etc.), convert them to markdown, and retain as memories.
This endpoint handles file upload, conversion, and memory creation in a single operation.
Features:
The system automatically:
Use the operations endpoint to monitor progress.
Request format: multipart/form-data with:
files: One or more files to uploadrequest: JSON string with FileRetainRequest modelParser selection:
parser in the request body to override the server default for all files.parser inside a files_metadata entry for per-file control.['iris', 'markitdown']) to define an ordered fallback chain — each parser is tried in sequence until one succeeds.ATULYA_API_FILE_PARSER) if not specified.| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| files required | Array of strings <binary> (Files) [ items <binary > ] Files to upload and convert |
| request required | string (Request) JSON string with FileRetainRequest model |
| operation_ids required | Array of strings (Operation Ids) Operation IDs for tracking file conversion operations. Use GET /v1/default/banks/{bank_id}/operations to list operations. |
{- "operation_ids": [
- "550e8400-e29b-41d4-a716-446655440000",
- "550e8400-e29b-41d4-a716-446655440001",
- "550e8400-e29b-41d4-a716-446655440002"
]
}Upload a repository ZIP archive and build a deterministic codebase snapshot without cloning or LLM indexing.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| archive required | string <binary> (Archive) Repository ZIP archive |
| request required | string (Request) JSON string with CodebaseImportZipRequest model |
| codebase_id required | string (Codebase Id) |
| snapshot_id required | string (Snapshot Id) |
| operation_id required | string (Operation Id) |
| status required | string (Status) |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "operation_id": "string",
- "status": "string"
}Upload one source file and run the full ASD parse → chunk → code-intel → review pipeline on it. Useful for self-contained scripts, single-file applications, or files too granular for a full ZIP import. virtual_path controls the logical path recorded in the snapshot (defaults to the uploaded filename).
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
| file required | string <binary> (File) Source file to import |
| request required | string (Request) JSON string with CodebaseImportFileRequest model |
| codebase_id required | string (Codebase Id) |
| snapshot_id required | string (Snapshot Id) |
| operation_id required | string (Operation Id) |
| status required | string (Status) |
| filename required | string (Filename) |
| virtual_path required | string (Virtual Path) |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "operation_id": "string",
- "status": "string",
- "filename": "string",
- "virtual_path": "string"
}Resolve a public GitHub ref, download its archive, and build a deterministic codebase snapshot.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
Owner (string) or Owner (null) (Owner) | |
Repo (string) or Repo (null) (Repo) | |
Ref (string) or Ref (null) (Ref) | |
Repo Url (string) or Repo Url (null) (Repo Url) | |
Root Path (string) or Root Path (null) (Root Path) | |
| include_globs | Array of strings (Include Globs) Default: [] |
| exclude_globs | Array of strings (Exclude Globs) Default: [] |
| refresh_existing | boolean (Refresh Existing) Default: false |
| codebase_id required | string (Codebase Id) |
| snapshot_id required | string (Snapshot Id) |
| operation_id required | string (Operation Id) |
| status required | string (Status) |
| resolved_commit_sha required | string (Resolved Commit Sha) |
{- "owner": "string",
- "repo": "string",
- "ref": "string",
- "repo_url": "string",
- "root_path": "string",
- "include_globs": [ ],
- "exclude_globs": [ ],
- "refresh_existing": false
}{- "codebase_id": "string",
- "snapshot_id": "string",
- "operation_id": "string",
- "status": "string",
- "resolved_commit_sha": "string"
}Refresh a GitHub-backed codebase by resolving the latest commit SHA and rebuilding a new reviewable ASD snapshot.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
Ref (string) or Ref (null) (Ref) | |
| full_rebuild | boolean (Full Rebuild) Default: false |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Operation Id (string) or Operation Id (null) (Operation Id) | |
| status required | string (Status) |
| changed_files | integer (Changed Files) Default: 0 |
| added_files | integer (Added Files) Default: 0 |
| deleted_files | integer (Deleted Files) Default: 0 |
| noop | boolean (Noop) Default: false |
{- "ref": "string",
- "full_rebuild": false
}{- "snapshot_id": "string",
- "operation_id": "string",
- "status": "string",
- "changed_files": 0,
- "added_files": 0,
- "deleted_files": 0,
- "noop": false
}Explicitly approve the current or selected reviewable codebase snapshot so Atulya can hydrate source-file text into memory.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
| memory_ingest_mode | string (Memory Ingest Mode) Default: "direct" Enum: "direct" "retain" |
| codebase_id required | string (Codebase Id) |
| snapshot_id required | string (Snapshot Id) |
| operation_id required | string (Operation Id) |
| status required | string (Status) |
| memory_ingest_mode | string (Memory Ingest Mode) Default: "direct" Enum: "direct" "retain" |
{- "snapshot_id": "string",
- "memory_ingest_mode": "direct"
}{- "codebase_id": "string",
- "snapshot_id": "string",
- "operation_id": "string",
- "status": "string",
- "memory_ingest_mode": "direct"
}List imported codebases for a bank.
| bank_id required | string (Bank Id) |
Authorization (string) or Authorization (null) (Authorization) |
required | Array of objects (Items) | ||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||
{- "items": [
- {
- "id": "string",
- "bank_id": "string",
- "name": "string",
- "source_type": "string",
- "source_config": {
- "owner": "string",
- "repo": "string",
- "repo_url": "string",
- "ref": "string",
- "root_path": "string",
- "include_globs": [ ],
- "exclude_globs": [ ]
}, - "current_snapshot_id": "string",
- "approved_snapshot_id": "string",
- "source_ref": "string",
- "source_commit_sha": "string",
- "snapshot_status": "string",
- "approved_source_ref": "string",
- "approved_source_commit_sha": "string",
- "approved_snapshot_status": "string",
- "approval_status": "string",
- "memory_status": "string",
- "stats": {
- "total_files": 0,
- "indexed_files": 0,
- "retained_files": 0,
- "manifest_only_files": 0,
- "excluded_files": 0,
- "symbol_count": 0,
- "edge_count": 0,
- "added_files": 0,
- "changed_files": 0,
- "unchanged_files": 0,
- "deleted_files": 0,
- "chunk_count": 0,
- "cluster_count": 0,
- "related_chunk_count": 0,
- "parse_coverage": 0,
- "review_counts": {
- "unrouted": 0,
- "memory": 0,
- "research": 0,
- "dismissed": 0
}, - "error": "string"
}, - "review_counts": {
- "unrouted": 0,
- "memory": 0,
- "research": 0,
- "dismissed": 0
}, - "cluster_count": 0,
- "related_chunk_count": 0,
- "parse_coverage": 0,
- "created_at": "string",
- "updated_at": "string",
- "snapshot_created_at": "string",
- "snapshot_updated_at": "string",
- "approved_snapshot_updated_at": "string"
}
]
}Get codebase metadata plus current snapshot summary.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| bank_id required | string (Bank Id) |
| name required | string (Name) |
| source_type required | string (Source Type) |
object (CodebaseSourceConfigResponse) Normalized source configuration for a codebase. | |
Current Snapshot Id (string) or Current Snapshot Id (null) (Current Snapshot Id) | |
Approved Snapshot Id (string) or Approved Snapshot Id (null) (Approved Snapshot Id) | |
Source Ref (string) or Source Ref (null) (Source Ref) | |
Source Commit Sha (string) or Source Commit Sha (null) (Source Commit Sha) | |
Snapshot Status (string) or Snapshot Status (null) (Snapshot Status) | |
Approved Source Ref (string) or Approved Source Ref (null) (Approved Source Ref) | |
Approved Source Commit Sha (string) or Approved Source Commit Sha (null) (Approved Source Commit Sha) | |
Approved Snapshot Status (string) or Approved Snapshot Status (null) (Approved Snapshot Status) | |
Approval Status (string) or Approval Status (null) (Approval Status) | |
Memory Status (string) or Memory Status (null) (Memory Status) | |
object (CodebaseSnapshotStatsResponse) Snapshot-level deterministic indexing stats. | |
object (CodebaseReviewCountsResponse) Counts of routed review items in the current snapshot. | |
| cluster_count | integer (Cluster Count) Default: 0 |
| related_chunk_count | integer (Related Chunk Count) Default: 0 |
| parse_coverage | number (Parse Coverage) Default: 0 |
Created At (string) or Created At (null) (Created At) | |
Updated At (string) or Updated At (null) (Updated At) | |
Snapshot Created At (string) or Snapshot Created At (null) (Snapshot Created At) | |
Snapshot Updated At (string) or Snapshot Updated At (null) (Snapshot Updated At) | |
Approved Snapshot Updated At (string) or Approved Snapshot Updated At (null) (Approved Snapshot Updated At) |
{- "id": "string",
- "bank_id": "string",
- "name": "string",
- "source_type": "string",
- "source_config": {
- "owner": "string",
- "repo": "string",
- "repo_url": "string",
- "ref": "string",
- "root_path": "string",
- "include_globs": [ ],
- "exclude_globs": [ ]
}, - "current_snapshot_id": "string",
- "approved_snapshot_id": "string",
- "source_ref": "string",
- "source_commit_sha": "string",
- "snapshot_status": "string",
- "approved_source_ref": "string",
- "approved_source_commit_sha": "string",
- "approved_snapshot_status": "string",
- "approval_status": "string",
- "memory_status": "string",
- "stats": {
- "total_files": 0,
- "indexed_files": 0,
- "retained_files": 0,
- "manifest_only_files": 0,
- "excluded_files": 0,
- "symbol_count": 0,
- "edge_count": 0,
- "added_files": 0,
- "changed_files": 0,
- "unchanged_files": 0,
- "deleted_files": 0,
- "chunk_count": 0,
- "cluster_count": 0,
- "related_chunk_count": 0,
- "parse_coverage": 0,
- "review_counts": {
- "unrouted": 0,
- "memory": 0,
- "research": 0,
- "dismissed": 0
}, - "error": "string"
}, - "review_counts": {
- "unrouted": 0,
- "memory": 0,
- "research": 0,
- "dismissed": 0
}, - "cluster_count": 0,
- "related_chunk_count": 0,
- "parse_coverage": 0,
- "created_at": "string",
- "updated_at": "string",
- "snapshot_created_at": "string",
- "snapshot_updated_at": "string",
- "approved_snapshot_updated_at": "string"
}Return review queue counts, parse coverage, related chunk counts, and deterministic diagnostics for the current snapshot.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Snapshot Status (string) or Snapshot Status (null) (Snapshot Status) | |
Approval Status (string) or Approval Status (null) (Approval Status) | |
Memory Status (string) or Memory Status (null) (Memory Status) | |
object (CodebaseReviewCountsResponse) Counts of routed review items in the current snapshot. | |
| cluster_count | integer (Cluster Count) Default: 0 |
| related_chunk_count | integer (Related Chunk Count) Default: 0 |
| parse_coverage | number (Parse Coverage) Default: 0 |
object (CodebaseReviewChangedSummaryResponse) Changed-file summary for the current review snapshot. | |
Array of objects (Diagnostics) Default: [] |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "snapshot_status": "string",
- "approval_status": "string",
- "memory_status": "string",
- "review_counts": {
- "unrouted": 0,
- "memory": 0,
- "research": 0,
- "dismissed": 0
}, - "cluster_count": 0,
- "related_chunk_count": 0,
- "parse_coverage": 0,
- "changed_summary": {
- "added_files": 0,
- "changed_files": 0,
- "deleted_files": 0
}, - "diagnostics": [ ]
}Return cursor-paginated semantic chunks for the current codebase snapshot.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Path Prefix (string) or Path Prefix (null) (Path Prefix) | |
Language (string) or Language (null) (Language) | |
Cluster Id (string) or Cluster Id (null) (Cluster Id) | |
Route Target (string) or Route Target (null) (Route Target) | |
| changed_only | boolean (Changed Only) Default: false |
Kind (string) or Kind (null) (Kind) | |
Q (string) or Q (null) (Q) | |
| limit | integer (Limit) [ 1 .. 100 ] Default: 25 |
Cursor (string) or Cursor (null) (Cursor) | |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Min Significance (number) or Min Significance (null) (Min Significance) | |
Max Significance (number) or Max Significance (null) (Max Significance) | |
File Role (string) or File Role (null) (File Role) | |
Auto Route Reason (string) or Auto Route Reason (null) (Auto Route Reason) | |
Has Safety Tag (boolean) or Has Safety Tag (null) (Has Safety Tag) | |
Route Source (string) or Route Source (null) (Route Source) | |
Order By (string) or Order By (null) (Order By) One of significance | review | path | complexity | pagerank |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
required | Array of objects (Items) |
Next Cursor (string) or Next Cursor (null) (Next Cursor) | |
| has_more | boolean (Has More) Default: false |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "items": [
- {
- "id": "string",
- "chunk_key": "string",
- "path": "string",
- "language": "string",
- "kind": "string",
- "label": "string",
- "preview_text": "string",
- "start_line": 0,
- "end_line": 0,
- "container": "string",
- "parent_symbol": "string",
- "parent_fq_name": "string",
- "parse_confidence": 0,
- "cluster_id": "string",
- "cluster_label": "string",
- "route_target": "string",
- "route_source": "string",
- "change_kind": "string",
- "related_count": 0,
- "document_id": "string",
- "significance_score": 0,
- "significance_components": { },
- "file_role": "string",
- "auto_route_reason": "string",
- "complexity_score": 0,
- "safety_tags": [ ],
- "pagerank_centrality": 0,
- "fanin_count": 0
}
], - "next_cursor": "string",
- "has_more": false
}Return detailed code preview, related chunks, symbols, and impact edges for one chunk.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
| chunk_id required | string (Chunk Id) |
Authorization (string) or Authorization (null) (Authorization) |
| id required | string (Id) |
| chunk_key required | string (Chunk Key) |
| path required | string (Path) |
Language (string) or Language (null) (Language) | |
| kind required | string (Kind) |
| label required | string (Label) |
| preview_text required | string (Preview Text) |
| start_line required | integer (Start Line) |
| end_line required | integer (End Line) |
Container (string) or Container (null) (Container) | |
Parent Symbol (string) or Parent Symbol (null) (Parent Symbol) | |
Parent Fq Name (string) or Parent Fq Name (null) (Parent Fq Name) | |
| parse_confidence | number (Parse Confidence) Default: 0 |
Cluster Id (string) or Cluster Id (null) (Cluster Id) | |
Cluster Label (string) or Cluster Label (null) (Cluster Label) | |
| route_target required | string (Route Target) |
Route Source (string) or Route Source (null) (Route Source) | |
| change_kind required | string (Change Kind) |
| related_count | integer (Related Count) Default: 0 |
Document Id (string) or Document Id (null) (Document Id) | |
| significance_score | number (Significance Score) Default: 0 |
Significance Components (object) or Significance Components (null) (Significance Components) | |
File Role (string) or File Role (null) (File Role) | |
Auto Route Reason (string) or Auto Route Reason (null) (Auto Route Reason) | |
Complexity Score (number) or Complexity Score (null) (Complexity Score) | |
| safety_tags | Array of strings (Safety Tags) Default: [] |
Pagerank Centrality (number) or Pagerank Centrality (null) (Pagerank Centrality) | |
| fanin_count | integer (Fanin Count) Default: 0 |
| snapshot_id required | string (Snapshot Id) |
| content_text required | string (Content Text) |
Array of objects (Related Chunks) Default: [] | |
Array of objects (Symbols) Default: [] | |
Array of objects (Impact Edges) Default: [] | |
Array of objects (Cluster Members) Default: [] |
{- "id": "string",
- "chunk_key": "string",
- "path": "string",
- "language": "string",
- "kind": "string",
- "label": "string",
- "preview_text": "string",
- "start_line": 0,
- "end_line": 0,
- "container": "string",
- "parent_symbol": "string",
- "parent_fq_name": "string",
- "parse_confidence": 0,
- "cluster_id": "string",
- "cluster_label": "string",
- "route_target": "string",
- "route_source": "string",
- "change_kind": "string",
- "related_count": 0,
- "document_id": "string",
- "significance_score": 0,
- "significance_components": { },
- "file_role": "string",
- "auto_route_reason": "string",
- "complexity_score": 0,
- "safety_tags": [ ],
- "pagerank_centrality": 0,
- "fanin_count": 0,
- "snapshot_id": "string",
- "content_text": "string",
- "related_chunks": [ ],
- "symbols": [ ],
- "impact_edges": [ ],
- "cluster_members": [ ]
}Bulk-route chunk review items to memory, research, dismissed, or back to unrouted.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
| item_ids required | Array of strings (Item Ids) |
| target required | string (Target) Enum: "memory" "research" "dismissed" "unrouted" |
| queue_memory_import | boolean (Queue Memory Import) Default: false |
| memory_ingest_mode | string (Memory Ingest Mode) Default: "direct" Enum: "direct" "retain" |
| codebase_id required | string (Codebase Id) |
| snapshot_id required | string (Snapshot Id) |
| updated_count required | integer (Updated Count) |
| target required | string (Target) |
Operation Id (string) or Operation Id (null) (Operation Id) | |
| queued_for_memory | boolean (Queued For Memory) Default: false |
| memory_ingest_mode | string (Memory Ingest Mode) Default: "direct" Enum: "direct" "retain" |
object (CodebaseReviewCountsResponse) Counts of routed review items in the current snapshot. |
{- "item_ids": [
- "string"
], - "target": "memory",
- "queue_memory_import": false,
- "memory_ingest_mode": "direct"
}{- "codebase_id": "string",
- "snapshot_id": "string",
- "updated_count": 0,
- "target": "string",
- "operation_id": "string",
- "queued_for_memory": false,
- "memory_ingest_mode": "direct",
- "review_counts": {
- "unrouted": 0,
- "memory": 0,
- "research": 0,
- "dismissed": 0
}
}Return chunks currently routed to the codebase research queue.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Cursor (string) or Cursor (null) (Cursor) | |
| limit | integer (Limit) [ 1 .. 100 ] Default: 25 |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
required | Array of objects (Items) |
Next Cursor (string) or Next Cursor (null) (Next Cursor) | |
| has_more | boolean (Has More) Default: false |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "items": [
- {
- "id": "string",
- "chunk_key": "string",
- "path": "string",
- "language": "string",
- "kind": "string",
- "label": "string",
- "preview_text": "string",
- "start_line": 0,
- "end_line": 0,
- "container": "string",
- "parent_symbol": "string",
- "parent_fq_name": "string",
- "parse_confidence": 0,
- "cluster_id": "string",
- "cluster_label": "string",
- "route_target": "string",
- "route_source": "string",
- "change_kind": "string",
- "related_count": 0,
- "document_id": "string",
- "significance_score": 0,
- "significance_components": { },
- "file_role": "string",
- "auto_route_reason": "string",
- "complexity_score": 0,
- "safety_tags": [ ],
- "pagerank_centrality": 0,
- "fanin_count": 0
}
], - "next_cursor": "string",
- "has_more": false
}Return the snapshot Repo Map artifact (top-K ranked tags + module dependency edges).
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Generated At (string) or Generated At (null) (Generated At) | |
Repo Map (object) or Repo Map (null) (Repo Map) |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "generated_at": "string",
- "repo_map": { }
}Return Module Brief artifacts for a snapshot.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
| limit | integer (Limit) [ 1 .. 500 ] Default: 100 |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Array of objects (Items) Default: [] |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "items": [ ]
}Return paginated Symbol Card artifacts ordered by significance.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
| limit | integer (Limit) [ 1 .. 500 ] Default: 100 |
Cursor (string) or Cursor (null) (Cursor) |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Array of objects (Items) Default: [] | |
Next Cursor (string) or Next Cursor (null) (Next Cursor) | |
| has_more | boolean (Has More) Default: false |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "items": [ ],
- "next_cursor": "string",
- "has_more": false
}Return one Symbol Card artifact by fully-qualified symbol id.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
| symbol_id required | string (Symbol Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
| snapshot_id required | string (Snapshot Id) |
required | object (Symbol Card) |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "symbol_card": { }
}Rank Symbol Cards + chunks against a free-text intent. Returns top clusters and symbol cards.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
| intent required | string (Intent) |
Scope Hint (string) or Scope Hint (null) (Scope Hint) | |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
| top_k_clusters | integer (Top K Clusters) [ 1 .. 50 ] Default: 10 |
| top_k_symbols | integer (Top K Symbols) [ 1 .. 100 ] Default: 20 |
| include_dismissed | boolean (Include Dismissed) Default: false |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
| intent required | string (Intent) |
Scope Hint (string) or Scope Hint (null) (Scope Hint) | |
Array of objects (Clusters) Default: [] | |
Array of objects (Symbol Cards) Default: [] | |
Array of objects (Unclustered) Default: [] | |
| total_candidates | integer (Total Candidates) Default: 0 |
{- "intent": "string",
- "scope_hint": "string",
- "snapshot_id": "string",
- "top_k_clusters": 10,
- "top_k_symbols": 20,
- "include_dismissed": false
}{- "codebase_id": "string",
- "snapshot_id": "string",
- "intent": "string",
- "scope_hint": "string",
- "clusters": [ ],
- "symbol_cards": [ ],
- "unclustered": [ ],
- "total_candidates": 0
}Return per-codebase auto-triage settings.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
required | object (CodebaseTriageSettings) Per-codebase triage thresholds and provider toggles. |
{- "codebase_id": "string",
- "settings": {
- "score_threshold_high": 0.62,
- "centrality_threshold": 0.35,
- "safety_threshold": 0.25,
- "embedding_provider": "jina_local",
- "enable_safety_scan": true,
- "enable_semgrep": false,
- "semgrep_rulepack": "string",
- "scip_index_path": "string"
}
}Replace per-codebase auto-triage settings.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
| score_threshold_high | number (Score Threshold High) [ 0 .. 1 ] Default: 0.62 |
| centrality_threshold | number (Centrality Threshold) [ 0 .. 1 ] Default: 0.35 |
| safety_threshold | number (Safety Threshold) [ 0 .. 1 ] Default: 0.25 |
| embedding_provider | string (Embedding Provider) Default: "jina_local" |
| enable_safety_scan | boolean (Enable Safety Scan) Default: true |
| enable_semgrep | boolean (Enable Semgrep) Default: false |
Semgrep Rulepack (string) or Semgrep Rulepack (null) (Semgrep Rulepack) | |
Scip Index Path (string) or Scip Index Path (null) (Scip Index Path) |
| codebase_id required | string (Codebase Id) |
required | object (CodebaseTriageSettings) Per-codebase triage thresholds and provider toggles. |
{- "score_threshold_high": 0.62,
- "centrality_threshold": 0.35,
- "safety_threshold": 0.25,
- "embedding_provider": "jina_local",
- "enable_safety_scan": true,
- "enable_semgrep": false,
- "semgrep_rulepack": "string",
- "scip_index_path": "string"
}{- "codebase_id": "string",
- "settings": {
- "score_threshold_high": 0.62,
- "centrality_threshold": 0.35,
- "safety_threshold": 0.25,
- "embedding_provider": "jina_local",
- "enable_safety_scan": true,
- "enable_semgrep": false,
- "semgrep_rulepack": "string",
- "scip_index_path": "string"
}
}Return the repo map and filtered file listing for a codebase snapshot.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Path Prefix (string) or Path Prefix (null) (Path Prefix) Only include files under this path prefix | |
Language (string) or Language (null) (Language) Filter by detected language | |
| changed_only | boolean (Changed Only) Default: false Only include changed or added files |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) Optional snapshot override |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
Source Ref (string) or Source Ref (null) (Source Ref) | |
Source Commit Sha (string) or Source Commit Sha (null) (Source Commit Sha) | |
Snapshot Status (string) or Snapshot Status (null) (Snapshot Status) | |
required | Array of objects (Items) |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "source_ref": "string",
- "source_commit_sha": "string",
- "snapshot_status": "string",
- "items": [
- {
- "path": "string",
- "language": "string",
- "size_bytes": 0,
- "content_hash": "string",
- "document_id": "string",
- "status": "string",
- "change_kind": "string",
- "reason": "string",
- "chunk_count": 0
}
]
}Search deterministic symbols by exact, prefix, or fuzzy match.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
| q required | string (Q) non-empty Symbol query |
Kind (string) or Kind (null) (Kind) Optional symbol kind filter | |
Path Prefix (string) or Path Prefix (null) (Path Prefix) Only search under this path prefix | |
Language (string) or Language (null) (Language) Filter by detected language | |
| limit | integer (Limit) [ 1 .. 200 ] Default: 50 Maximum number of symbol matches |
Authorization (string) or Authorization (null) (Authorization) |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
required | Array of objects (Items) |
{- "codebase_id": "string",
- "snapshot_id": "string",
- "items": [
- {
- "name": "string",
- "kind": "string",
- "fq_name": "string",
- "path": "string",
- "language": "string",
- "container": "string",
- "start_line": 0,
- "end_line": 0,
- "match_mode": "string",
- "chunk_ids": [ ]
}
]
}Run deterministic impact analysis from a path, symbol, or query over the codebase graph.
| bank_id required | string (Bank Id) |
| codebase_id required | string (Codebase Id) |
Authorization (string) or Authorization (null) (Authorization) |
Path (string) or Path (null) (Path) | |
Symbol (string) or Symbol (null) (Symbol) | |
Query (string) or Query (null) (Query) | |
| max_depth | integer (Max Depth) [ 1 .. 8 ] Default: 2 |
| limit | integer (Limit) [ 1 .. 200 ] Default: 50 |
| codebase_id required | string (Codebase Id) |
Snapshot Id (string) or Snapshot Id (null) (Snapshot Id) | |
CodebaseImpactSeedResponse (object) or null | |
required | Array of objects (Impacted Files) |
required | Array of objects (Matched Symbols) |
required | Array of objects (Edges) |
| explanation required | string (Explanation) |
{- "path": "string",
- "symbol": "string",
- "query": "string",
- "max_depth": 2,
- "limit": 50
}{- "codebase_id": "string",
- "snapshot_id": "string",
- "seed": {
- "type": "string",
- "value": "string"
}, - "impacted_files": [
- {
- "path": "string",
- "language": "string",
- "size_bytes": 0,
- "content_hash": "string",
- "document_id": "string",
- "status": "string",
- "change_kind": "string",
- "chunk_count": 0,
- "depth": 0
}
], - "matched_symbols": [
- {
- "name": "string",
- "kind": "string",
- "fq_name": "string",
- "path": "string",
- "language": "string",
- "container": "string",
- "start_line": 0,
- "end_line": 0,
- "match_mode": "string",
- "chunk_ids": [ ]
}
], - "edges": [
- {
- "edge_type": "string",
- "from_path": "string",
- "from_symbol": "string",
- "to_path": "string",
- "to_symbol": "string",
- "target_ref": "string",
- "label": "string"
}
], - "explanation": "string"
}Returns DB pool stats, migration version, and active worker count.
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| status required | string (Status) |
| api_version required | string (Api Version) |
| db_pool_min required | integer (Db Pool Min) |
| db_pool_max required | integer (Db Pool Max) |
| db_pool_size required | integer (Db Pool Size) |
| db_pool_free required | integer (Db Pool Free) |
required | Migration Version (string) or Migration Version (null) (Migration Version) |
| worker_count required | integer (Worker Count) |
| admin_schema required | string (Admin Schema) |
{- "status": "string",
- "api_version": "string",
- "db_pool_min": 0,
- "db_pool_max": 0,
- "db_pool_size": 0,
- "db_pool_free": 0,
- "migration_version": "string",
- "worker_count": 0,
- "admin_schema": "string"
}Returns DB pool stats, migration version, and active worker count.
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| status required | string (Status) |
| api_version required | string (Api Version) |
| db_pool_min required | integer (Db Pool Min) |
| db_pool_max required | integer (Db Pool Max) |
| db_pool_size required | integer (Db Pool Size) |
| db_pool_free required | integer (Db Pool Free) |
required | Migration Version (string) or Migration Version (null) (Migration Version) |
| worker_count required | integer (Worker Count) |
| admin_schema required | string (Admin Schema) |
{- "status": "string",
- "api_version": "string",
- "db_pool_min": 0,
- "db_pool_max": 0,
- "db_pool_size": 0,
- "db_pool_free": 0,
- "migration_version": "string",
- "worker_count": 0,
- "admin_schema": "string"
}Returns all tenants known to the tenant extension with bank counts.
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| schema_name required | string (Schema Name) |
| bank_count required | integer (Bank Count) |
[- {
- "schema_name": "string",
- "bank_count": 0
}
]Returns all tenants known to the tenant extension with bank counts.
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| schema_name required | string (Schema Name) |
| bank_count required | integer (Bank Count) |
[- {
- "schema_name": "string",
- "bank_count": 0
}
]Returns all bank IDs and names within the specified tenant schema.
| schema required | string (Schema) |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| property name* additional property | any |
[- { }
]Returns all bank IDs and names within the specified tenant schema.
| schema required | string (Schema) |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| property name* additional property | any |
[- { }
]Lists workers with pending/stuck operation counts from async_operations.
| schema | string (Schema) Default: "public" Schema to inspect |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| worker_id required | string (Worker Id) |
| schema_name required | string (Schema Name) |
| pending_count required | integer (Pending Count) |
| stuck_count required | integer (Stuck Count) |
required | Last Seen At (string) or Last Seen At (null) (Last Seen At) |
[- {
- "worker_id": "string",
- "schema_name": "string",
- "pending_count": 0,
- "stuck_count": 0,
- "last_seen_at": "string"
}
]Lists workers with pending/stuck operation counts from async_operations.
| schema | string (Schema) Default: "public" Schema to inspect |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| worker_id required | string (Worker Id) |
| schema_name required | string (Schema Name) |
| pending_count required | integer (Pending Count) |
| stuck_count required | integer (Stuck Count) |
required | Last Seen At (string) or Last Seen At (null) (Last Seen At) |
[- {
- "worker_id": "string",
- "schema_name": "string",
- "pending_count": 0,
- "stuck_count": 0,
- "last_seen_at": "string"
}
]Release all tasks claimed by the specified worker so another worker can pick them up. Use worker_id='all_stuck' to release all tasks with no active worker.
| worker_id required | string (Worker Id) |
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| release_stuck | boolean (Release Stuck) Default: true Re-queue stuck tasks so another worker can pick them up (default: true). |
| worker_id required | string (Worker Id) |
| released_count required | integer (Released Count) |
{- "release_stuck": true
}{- "worker_id": "string",
- "released_count": 0
}Release all tasks claimed by the specified worker so another worker can pick them up. Use worker_id='all_stuck' to release all tasks with no active worker.
| worker_id required | string (Worker Id) |
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| release_stuck | boolean (Release Stuck) Default: true Re-queue stuck tasks so another worker can pick them up (default: true). |
| worker_id required | string (Worker Id) |
| released_count required | integer (Released Count) |
{- "release_stuck": true
}{- "worker_id": "string",
- "released_count": 0
}Returns recent async operations across all tenant schemas visible to the superuser.
| schema | string (Schema) Default: "public" |
Status (string) or Status (null) (Status) | |
| limit | integer (Limit) [ 1 .. 200 ] Default: 50 |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| operation_id required | string (Operation Id) |
| bank_id required | string (Bank Id) |
| schema_name required | string (Schema Name) |
| operation_type required | string (Operation Type) |
| status required | string (Status) |
required | Worker Id (string) or Worker Id (null) (Worker Id) |
| created_at required | string (Created At) |
required | Updated At (string) or Updated At (null) (Updated At) |
required | Error Message (string) or Error Message (null) (Error Message) |
[- {
- "operation_id": "string",
- "bank_id": "string",
- "schema_name": "string",
- "operation_type": "string",
- "status": "string",
- "worker_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "error_message": "string"
}
]Returns recent async operations across all tenant schemas visible to the superuser.
| schema | string (Schema) Default: "public" |
Status (string) or Status (null) (Status) | |
| limit | integer (Limit) [ 1 .. 200 ] Default: 50 |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| operation_id required | string (Operation Id) |
| bank_id required | string (Bank Id) |
| schema_name required | string (Schema Name) |
| operation_type required | string (Operation Type) |
| status required | string (Status) |
required | Worker Id (string) or Worker Id (null) (Worker Id) |
| created_at required | string (Created At) |
required | Updated At (string) or Updated At (null) (Updated At) |
required | Error Message (string) or Error Message (null) (Error Message) |
[- {
- "operation_id": "string",
- "bank_id": "string",
- "schema_name": "string",
- "operation_type": "string",
- "status": "string",
- "worker_id": "string",
- "created_at": "string",
- "updated_at": "string",
- "error_message": "string"
}
]Enqueues a consolidation task for every bank in the given schema.
| schema required | string (Schema) |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| property name* additional property | any |
{ }Enqueues a consolidation task for every bank in the given schema.
| schema required | string (Schema) |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| property name* additional property | any |
{ }Returns all API keys (redacted — raw key is never returned after creation).
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| id required | string (Id) |
| name required | string (Name) |
| role required | string (Role) |
| schema_name required | string (Schema Name) |
required | Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| created_at required | string (Created At) |
required | Expires At (string) or Expires At (null) (Expires At) |
required | Revoked At (string) or Revoked At (null) (Revoked At) |
Raw Key (string) or Raw Key (null) (Raw Key) |
[- {
- "id": "string",
- "name": "string",
- "role": "string",
- "schema_name": "string",
- "allowed_bank_ids": [
- "string"
], - "created_at": "string",
- "expires_at": "string",
- "revoked_at": "string",
- "raw_key": "string"
}
]Returns all API keys (redacted — raw key is never returned after creation).
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| id required | string (Id) |
| name required | string (Name) |
| role required | string (Role) |
| schema_name required | string (Schema Name) |
required | Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| created_at required | string (Created At) |
required | Expires At (string) or Expires At (null) (Expires At) |
required | Revoked At (string) or Revoked At (null) (Revoked At) |
Raw Key (string) or Raw Key (null) (Raw Key) |
[- {
- "id": "string",
- "name": "string",
- "role": "string",
- "schema_name": "string",
- "allowed_bank_ids": [
- "string"
], - "created_at": "string",
- "expires_at": "string",
- "revoked_at": "string",
- "raw_key": "string"
}
]Creates a new API key and returns the raw key once. Store it securely — it cannot be retrieved again.
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| name required | string (Name) Human-readable label for this key |
| role | string (Role) Default: "user" Role: superuser | admin | user |
| schema_name | string (Schema Name) Default: "public" PostgreSQL schema this key operates in |
Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) Restrict access to specific banks. None = unrestricted. | |
Expires Days (integer) or Expires Days (null) (Expires Days) Days until key expires. None = never expires. |
| id required | string (Id) |
| name required | string (Name) |
| role required | string (Role) |
| schema_name required | string (Schema Name) |
required | Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| created_at required | string (Created At) |
required | Expires At (string) or Expires At (null) (Expires At) |
required | Revoked At (string) or Revoked At (null) (Revoked At) |
Raw Key (string) or Raw Key (null) (Raw Key) |
{- "name": "string",
- "role": "user",
- "schema_name": "public",
- "allowed_bank_ids": [
- "string"
], - "expires_days": 0
}{- "id": "string",
- "name": "string",
- "role": "string",
- "schema_name": "string",
- "allowed_bank_ids": [
- "string"
], - "created_at": "string",
- "expires_at": "string",
- "revoked_at": "string",
- "raw_key": "string"
}Creates a new API key and returns the raw key once. Store it securely — it cannot be retrieved again.
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| name required | string (Name) Human-readable label for this key |
| role | string (Role) Default: "user" Role: superuser | admin | user |
| schema_name | string (Schema Name) Default: "public" PostgreSQL schema this key operates in |
Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) Restrict access to specific banks. None = unrestricted. | |
Expires Days (integer) or Expires Days (null) (Expires Days) Days until key expires. None = never expires. |
| id required | string (Id) |
| name required | string (Name) |
| role required | string (Role) |
| schema_name required | string (Schema Name) |
required | Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| created_at required | string (Created At) |
required | Expires At (string) or Expires At (null) (Expires At) |
required | Revoked At (string) or Revoked At (null) (Revoked At) |
Raw Key (string) or Raw Key (null) (Raw Key) |
{- "name": "string",
- "role": "user",
- "schema_name": "public",
- "allowed_bank_ids": [
- "string"
], - "expires_days": 0
}{- "id": "string",
- "name": "string",
- "role": "string",
- "schema_name": "string",
- "allowed_bank_ids": [
- "string"
], - "created_at": "string",
- "expires_at": "string",
- "revoked_at": "string",
- "raw_key": "string"
}Update name, role, or allowed_bank_ids for an existing key.
| key_id required | string (Key Id) |
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
Name (string) or Name (null) (Name) | |
Role (string) or Role (null) (Role) | |
Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| id required | string (Id) |
| name required | string (Name) |
| role required | string (Role) |
| schema_name required | string (Schema Name) |
required | Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| created_at required | string (Created At) |
required | Expires At (string) or Expires At (null) (Expires At) |
required | Revoked At (string) or Revoked At (null) (Revoked At) |
Raw Key (string) or Raw Key (null) (Raw Key) |
{- "name": "string",
- "role": "string",
- "allowed_bank_ids": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "role": "string",
- "schema_name": "string",
- "allowed_bank_ids": [
- "string"
], - "created_at": "string",
- "expires_at": "string",
- "revoked_at": "string",
- "raw_key": "string"
}Update name, role, or allowed_bank_ids for an existing key.
| key_id required | string (Key Id) |
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
Name (string) or Name (null) (Name) | |
Role (string) or Role (null) (Role) | |
Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| id required | string (Id) |
| name required | string (Name) |
| role required | string (Role) |
| schema_name required | string (Schema Name) |
required | Array of Allowed Bank Ids (strings) or Allowed Bank Ids (null) (Allowed Bank Ids) |
| created_at required | string (Created At) |
required | Expires At (string) or Expires At (null) (Expires At) |
required | Revoked At (string) or Revoked At (null) (Revoked At) |
Raw Key (string) or Raw Key (null) (Raw Key) |
{- "name": "string",
- "role": "string",
- "allowed_bank_ids": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "role": "string",
- "schema_name": "string",
- "allowed_bank_ids": [
- "string"
], - "created_at": "string",
- "expires_at": "string",
- "revoked_at": "string",
- "raw_key": "string"
}Soft-deletes an API key by setting revoked_at. The key is immediately inactive.
| key_id required | string (Key Id) |
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| property name* additional property | string |
{- "property1": "string",
- "property2": "string"
}Soft-deletes an API key by setting revoked_at. The key is immediately inactive.
| key_id required | string (Key Id) |
| schema | string (Schema) Default: "public" |
Authorization (string) or Authorization (null) (Authorization) | |
X-Api-Key (string) or X-Api-Key (null) (X-Api-Key) |
| property name* additional property | string |
{- "property1": "string",
- "property2": "string"
}