API referenceInstance API
GUIDE & REFERENCE

Vault

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

This reference covers 7 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/vaultMemory vault store
POST/v1/memory/vault/getVault get
POST/v1/memory/vault/deleteVault delete
POST/v1/memory/vault/searchVault search
GET/v1/memory/vault/statsVault stats
POST/v1/memory/vault/updateVault update
POST/v1/memory/vault/access-logVault access log

POST /v1/memory/vault

Memory vault store

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

JsonVaultStoreRequest

FieldRust typeRequired on inputNotes
keyStringYes
data_b64StringYes
sensitivityStringYes
struct VaultStoreRequest {
    key: String,
    data_b64: String,
    sensitivity: 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!({"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:7575. Registration: akasha-daemon/src/main.rs:4660.

POST /v1/memory/vault/get

Vault 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

JsonVaultGetReq

FieldRust typeRequired on inputNotes
idStringYes
struct VaultGetReq {
    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!({"entry": entry.map(|e| format!("{e:?}"))}),

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

POST /v1/memory/vault/delete

Vault 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

JsonVaultDeleteReq

FieldRust typeRequired on inputNotes
idStringYes
struct VaultDeleteReq {
    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:3807. Registration: akasha-daemon/src/main.rs:4662.

POST /v1/memory/vault/search

Vault 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

JsonVaultSearchReq

FieldRust typeRequired on inputNotes
patternStringYes
struct VaultSearchReq {
    pattern: 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!({"entries": list.len()})

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

GET /v1/memory/vault/stats

Vault stats

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

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(stats).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:7644. Registration: akasha-daemon/src/main.rs:4664.

POST /v1/memory/vault/update

Vault 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

JsonVaultUpdateReq

FieldRust typeRequired on inputNotes
entryVaultEntryYes
struct VaultUpdateReq {
    entry: VaultEntry,
}

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

POST /v1/memory/vault/access-log

Vault access log

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

Implementation limit: Placeholder implementation: returns an empty JSON array; backend data retrieval is not implemented here.

JsonVaultAccessLogReq

FieldRust typeRequired on inputNotes
entry_idOption<String>No; optional or defaulted
struct VaultAccessLogReq {
    #[allow(dead_code)]
    entry_id: Option<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!([])

Errors and validation

Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:10526. Registration: akasha-daemon/src/main.rs:4701.

On this page