API referenceInstance API
GUIDE & REFERENCE

Episodic Memory

Every registered episodic memory instance operation, with source-derived inputs, outputs, access policy, and errors.

This reference covers 5 HTTP operations registered by the Akasha daemon. Call these paths on your instance base URL. See authentication, errors, and coverage before integrating.

MethodPathOperation
POST/v1/memory/episodicMemory episodic insert
GET/v1/memory/episodic/:idMemory episodic get
PUT/v1/memory/episodic/:idMemory episodic update
DELETE/v1/memory/episodic/:idMemory episodic delete
POST/v1/memory/episodic/searchEpisodic search

POST /v1/memory/episodic

Memory episodic insert

AvailabilitySource contract
Registrationconfig.enable_memory
Runtime servicememory
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonEpisodicInsertRequest

FieldRust typeRequired on inputNotes
eventEpisodicEventYes
struct EpisodicInsertRequest {
    event: EpisodicEvent,
}

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!({"id": id})

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:7465. Registration: akasha-daemon/src/main.rs:4635.

GET /v1/memory/episodic/:id

Memory episodic get

AvailabilitySource contract
Registrationconfig.enable_memory
Runtime servicememory
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

PathString

{
  "type": "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!({"item": item})

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:7479. Registration: akasha-daemon/src/main.rs:4636.

PUT /v1/memory/episodic/:id

Memory episodic update

AvailabilitySource contract
Registrationconfig.enable_memory
Runtime servicememory
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

PathString

{
  "type": "string"
}

JsonEpisodicUpdateRequest

FieldRust typeRequired on inputNotes
eventEpisodicEventYes
struct EpisodicUpdateRequest {
    event: EpisodicEvent,
}

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:7499. Registration: akasha-daemon/src/main.rs:4636.

DELETE /v1/memory/episodic/:id

Memory episodic delete

AvailabilitySource contract
Registrationconfig.enable_memory
Runtime servicememory
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

PathString

{
  "type": "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:7514. Registration: akasha-daemon/src/main.rs:4636.

POST /v1/memory/episodic/search

Episodic search

AvailabilitySource contract
Registrationconfig.enable_memory
Runtime servicememory
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonEpisodicSearchReq

FieldRust typeRequired on inputNotes
textOption<String>No; optional or defaulted
queryOption<String>No; optional or defaulted
limitOption<usize>No; optional or defaulted
struct EpisodicSearchReq {
    text: Option<String>,
    query: Option<String>,
    limit: Option<usize>,
}

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(rows).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:8635. Registration: akasha-daemon/src/main.rs:4698.

On this page