Skip to main content
POST
Create Learning

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

db_id
string | null

Database ID to use

table
string | null

The database table to use (requires db_id)

Body

application/json

Request body for creating a learning record.

learning_type
string
required

Type of learning (e.g. 'user_profile', 'entity_memory')

content
Content · object
required

The learning content payload

namespace
string | null

Namespace for scoping ('user', 'global', or custom)

user_id
string | null

Associated user ID. When the request is authenticated, must match the JWT subject or be omitted/null (which creates a global / non-user-scoped record).

agent_id
string | null

Associated agent ID

team_id
string | null

Associated team ID

session_id
string | null

Associated session ID

entity_id
string | null

Associated entity ID

entity_type
string | null

Entity type

metadata
Metadata · object | null

Optional metadata

Response

Successful Response

A single learning record as returned by the API.

learning_id
string
required

Unique identifier for the learning record

learning_type
string
required

Type of learning (e.g. 'user_profile', 'entity_memory')

namespace
string | null

Namespace for scoping ('user', 'global', or custom)

user_id
string | null

Associated user ID

agent_id
string | null

Associated agent ID

team_id
string | null

Associated team ID

session_id
string | null

Associated session ID

entity_id
string | null

Associated entity ID (for entity-specific learnings)

entity_type
string | null

Entity type (e.g. 'person', 'company')

content
Content · object | null

The learning content payload

metadata
Metadata · object | null

Optional metadata

created_at
integer | null

Creation timestamp (Unix epoch seconds)

updated_at
integer | null

Last update timestamp (Unix epoch seconds)