v1
latestOpenAPI 3.1.02026-07-26142186376.1 KBLearnings
Create Learning
Create a new learning record. For the identity-keyed learning types (user_profile, user_memory, session_context, entity_memory) the record id is derived deterministically from the identity fields so it reconciles with what the agent reads/writes — provide those fields (else 422), and if a record already exists the request is rejected with 409 (use PATCH to update it). Other types get a generated id. For a scoped (non-admin) caller, the body's user_id must be omitted/null or match the caller (mismatch → 403); admins and unscoped callers may set any user_id.
post/learnings
Query parameters
db_idstring nullable
Database ID to use
Database ID to use
tablestring nullable
The database table to use (requires db_id)
The database table to use (requires db_id)
Request body
Response
Successful Response