Skip to main content
POST
/
api
/
v2
/
memories
/
semantic
/
feature
Add Feature
curl --request POST \
  --url http://localhost:8080/api/v2/memories/semantic/feature \
  --header 'Content-Type: application/json' \
  --data '
{
  "set_id": "<string>",
  "category_name": "<string>",
  "tag": "<string>",
  "feature": "<string>",
  "value": "<string>",
  "org_id": "universal",
  "project_id": "universal",
  "feature_metadata": {},
  "citations": [
    "<string>"
  ]
}
'
{
  "feature_id": "<string>"
}

Body

application/json

Specification model for adding a semantic feature.

set_id
string
required

Identifier of the semantic set to add the feature to.

category_name
string
required

Category name to attach the feature to.

tag
string
required

Tag name to associate with the feature.

feature
string
required

Feature name/key.

value
string
required

Feature value.

org_id
string
default:universal
The unique identifier of the organization.

- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, colon, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.

This value determines the namespace the project belongs to.
Examples:

"MemVerge"

"AI_Labs"

project_id
string
default:universal
The identifier of the project.

- Must be unique within the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, colon, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.

This ID is used in API paths and resource locations.
Examples:

"memmachine"

"research123"

"qa_pipeline"

feature_metadata
Feature Metadata · object

Optional metadata to store alongside the feature.

citations
string[] | null

Optional episode IDs supporting this feature.

Response

Successful Response

Response model for adding a semantic feature.

feature_id
string
required

Unique identifier for the semantic feature.