Memories
Memories operations in the Hlix API.
See the OpenAPI document for schemas and operation IDs.
Prerequisites
Section titled “Prerequisites”- Protected operations require an API key in
x-api-keyor a browser session cookie; some actions require a verified user session - Tenant-scoped operations use
X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace - The base URL for your deployment,
https://server.hlix.aiby default
Operations
Section titled “Operations”| Method | Path | Operation |
|---|---|---|
GET |
/v1/api/memories |
List the workspace’s memories |
POST |
/v1/api/memories |
Write a memory |
DELETE |
/v1/api/memories/{id} |
Delete a memory |
GET |
/v1/api/memories/{id} |
Get one memory |
PATCH |
/v1/api/memories/{id} |
Update a memory |
POST |
/v1/api/memories/extract/{cycleId} |
Extract memories from a finished cycle |
GET |
/v1/api/memories/project/{projectId} |
Read learned knowledge and recording availability for one project |
GET |
/v1/api/memories/search/{scope}/{scopeId} |
Search one scope by meaning |
List the workspace’s memories
Section titled “List the workspace’s memories”GET /v1/api/memories · operation ID listMemories
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
scope |
query | no | string | org | project | cycle | task | agent. |
scopeId |
query | no | string | The scoped entity’s id. |
status |
query | no | string | tentative | approved | archived. |
q |
query | no | string | Filter memory text by substring. For semantic search with similarity scores, use /memories/search/{scope}/{scopeId}. |
limit |
query | no | string | Page size, clamped to 1–500; 100 when omitted or not an integer. |
offset |
query | no | string | Rows to skip. Ask for the next page with offset + limit until a page comes back shorter than limit. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
Memory[] | The matching memories. No score — nothing was ranked. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Write a memory
Section titled “Write a memory”POST /v1/api/memories · operation ID createMemory
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, CreateMemory (required)
| Property | Type | Required | Notes |
|---|---|---|---|
category |
convention | decision | lesson | preference | failure | heuristic |
yes | |
confidence |
number | no | min 0, max 1 |
key |
string | yes | min length 1, max length 200 |
scope |
org | project | cycle | task | agent |
yes | |
scopeId |
string | yes | min length 1 |
source |
auto | user | interview | review |
no | |
status |
tentative | approved | archived |
no | |
supersededReason |
string | no | max length 2000 |
supersedesId |
string | no | |
value |
string | yes | min length 1, max length 10000 |
Responses
| Status | Body | Description |
|---|---|---|
201 |
Memory | The stored memory, read back from the store. |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
409 |
ApiError | The supersession target is not a current memory in the same scope. |
Delete a memory
Section titled “Delete a memory”DELETE /v1/api/memories/{id} · operation ID deleteMemory
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
scope |
query | no | string | org | project | cycle | task | agent. |
scopeId |
query | no | string | The scoped entity’s id. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MessageAck | The memory is gone. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No memory with that id in this workspace — under the named scope, or under any of them when none was named. |
Get one memory
Section titled “Get one memory”GET /v1/api/memories/{id} · operation ID getMemory
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
scope |
query | no | string | org | project | cycle | task | agent. |
scopeId |
query | no | string | The scoped entity’s id. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
Memory | The memory. Supplying scope and scopeId narrows the lookup; otherwise all namespaces are searched. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No memory with that id in this workspace — under the named scope, or under any of them when none was named. |
Update a memory
Section titled “Update a memory”PATCH /v1/api/memories/{id} · operation ID updateMemory
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
scope |
query | no | string | org | project | cycle | task | agent. |
scopeId |
query | no | string | The scoped entity’s id. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, UpdateMemory (required)
| Property | Type | Required | Notes |
|---|---|---|---|
confidence |
number | no | min 0, max 1 |
status |
tentative | approved | archived |
no | |
supersededById |
string | null | no | |
supersededReason |
string | null | no | |
value |
string | no | min length 1, max length 10000 |
Responses
| Status | Body | Description |
|---|---|---|
200 |
Memory | The updated memory. category, key and source are immutable — they are carried over from the stored row. |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No memory with that id in this workspace — under the named scope, or under any of them when none was named. |
409 |
ApiError | The supersession target is not a current memory in the same scope. |
Extract memories from a finished cycle
Section titled “Extract memories from a finished cycle”POST /v1/api/memories/extract/{cycleId} · operation ID extractCycleMemories
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
cycleId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MessageAck | Extraction finished. Read the project knowledge disposition to distinguish saved, skipped and rejected scope results. Failed classifier, embedding or storage writes return an error. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Read learned knowledge and recording availability for one project
Section titled “Read learned knowledge and recording availability for one project”GET /v1/api/memories/project/{projectId} · operation ID getProjectKnowledge
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ProjectKnowledge | Only this project’s actual project, cycle and task scopes. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No memory with that id in this workspace — under the named scope, or under any of them when none was named. |
Search one scope by meaning
Section titled “Search one scope by meaning”GET /v1/api/memories/search/{scope}/{scopeId} · operation ID searchMemories
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
scope |
path | yes | string | |
scopeId |
path | yes | string | |
q |
query | no | string | The text to rank against. Omitted, the scope’s memories come back unranked. |
status |
query | no | string | tentative | approved | archived. |
limit |
query | no | string | Page size, clamped to 1–500. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
Memory[] | Memories ranked by similarity, each carrying score (cosine similarity, 1 − distance). |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is a client collaborator; memory is restricted to the agency. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
If a request fails
Section titled “If a request fails”The response table for each operation lists its documented errors. Common status codes include:
400— the body failed schema validation, or the request named no active organization. AValidationErrorbody carries the failing fields; anApiErrorbody carries onlyerror.401— no valid session or API key.403— authenticated, but not a member of the named organization, or a client collaborator without the required access.404— check the resource ID and your access to the selected Workspace.409— the expected revision or state is stale, or another operation currently owns the transition.500— the operation failed server-side. Retry only where an idempotency key makes that safe.