Learning and memory endpoints use the /api/learning prefix, not /api/v1.
Authentication uses the standard flexible auth path: API key, JWT bearer token, or dashboard session. Results are scoped to the authenticated user’s organization.
Learning APIs may return customer conversation content, stable caller hashes, memories, prompts, and trace details. Treat these responses as sensitive operational data.
Memories
List Memories
Returns memory objects:
Get, Create, Update, Delete
Create/update request fields include fact, memory_type, memory_scope, subject_type, subject_id, confidence, and optional provenance/edit metadata. Updating fact causes the backend to clear the old embedding so it can be regenerated.
Search Memories
Memory Edges
Returns graph relationships for a memory.
Prompt Lifecycle
Prompt endpoints are scoped to an assistant:
Create request:
Canary update request:
Eval Datasets and Cases
Add case request:
Run Evals
Runs an evaluation against a dataset/prompt configuration.
Stats and Graph
Assistant stats include memory counts, prompt versions, active/canary versions, eval datasets, and last eval pass rate.
DSPy Optimization
Starts DSPy prompt optimization for an assistant.
If dspy-ai is not installed in the backend environment, the endpoint returns 503 Service Unavailable.
Call Traces
List responses return shortened caller hashes. The detail endpoint can include full trace data, full caller_hash, turns, tool calls, and conversation content.
Related