Procedural Memory
Every registered procedural memory instance operation, with source-derived inputs, outputs, access policy, and errors.
This reference covers 6 HTTP operations registered by the Akasha daemon. Call these paths on your instance base URL. See authentication, errors, and coverage before integrating.
| Method | Path | Operation |
|---|---|---|
POST | /v1/memory/procedures | Memory procedure store |
GET | /v1/memory/procedures/list | Procedure list |
POST | /v1/memory/procedures/get | Procedure get |
POST | /v1/memory/procedures/delete | Procedure delete |
POST | /v1/memory/procedures/update | Procedure update |
POST | /v1/memory/procedures/search | Procedure search |
POST /v1/memory/procedures
Memory procedure store
| Availability | Source contract |
|---|---|
| Registration | config.enable_memory |
| Runtime service | memory |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ProceduralStoreRequest
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
procedure | Procedure | Yes |
struct ProceduralStoreRequest {
procedure: Procedure,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:7533. Registration: akasha-daemon/src/main.rs:4642.
GET /v1/memory/procedures/list
Procedure list
| Availability | Source contract |
|---|---|
| Registration | config.enable_memory |
| Runtime service | memory |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::to_value(list).unwrap_or(serde_json::json!([])),Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9822. Registration: akasha-daemon/src/main.rs:4643.
POST /v1/memory/procedures/get
Procedure get
| Availability | Source contract |
|---|---|
| Registration | config.enable_memory |
| Runtime service | memory |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ProcedureIdReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
id | String | Yes |
struct ProcedureIdReq {
id: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"procedure": p.map(|v| format!("{v:?}"))}),Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9836. Registration: akasha-daemon/src/main.rs:4644.
POST /v1/memory/procedures/delete
Procedure delete
| Availability | Source contract |
|---|---|
| Registration | config.enable_memory |
| Runtime service | memory |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ProcedureIdReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
id | String | Yes |
struct ProcedureIdReq {
id: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9853. Registration: akasha-daemon/src/main.rs:4645.
POST /v1/memory/procedures/update
Procedure update
| Availability | Source contract |
|---|---|
| Registration | config.enable_memory |
| Runtime service | memory |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ProcedureUpdateReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
id | String | Yes | |
procedure | Procedure | Yes |
struct ProcedureUpdateReq {
id: String,
procedure: Procedure,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9873. Registration: akasha-daemon/src/main.rs:4646.
POST /v1/memory/procedures/search
Procedure search
| Availability | Source contract |
|---|---|
| Registration | config.enable_memory |
| Runtime service | memory |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — ProcedureSearchReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
query | String | Yes |
struct ProcedureSearchReq {
query: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::to_value(list).unwrap_or(serde_json::json!([])),Errors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9887. Registration: akasha-daemon/src/main.rs:4647.