List Namespaces
curl --request GET \
--url https://api.memoclaw.com/v1/namespacesimport requests
url = "https://api.memoclaw.com/v1/namespaces"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.memoclaw.com/v1/namespaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memoclaw.com/v1/namespaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memoclaw.com/v1/namespaces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memoclaw.com/v1/namespaces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memoclaw.com/v1/namespaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"namespaces": [
{
"name": "<string>",
"count": 123,
"last_memory_at": "<string>"
}
],
"total": 123
}API Reference
List Namespaces
GET /v1/namespaces — List all namespaces with memory counts.
GET
/
v1
/
namespaces
List Namespaces
curl --request GET \
--url https://api.memoclaw.com/v1/namespacesimport requests
url = "https://api.memoclaw.com/v1/namespaces"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.memoclaw.com/v1/namespaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memoclaw.com/v1/namespaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memoclaw.com/v1/namespaces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memoclaw.com/v1/namespaces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memoclaw.com/v1/namespaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"namespaces": [
{
"name": "<string>",
"count": 123,
"last_memory_at": "<string>"
}
],
"total": 123
}This endpoint requires wallet authentication for identity. It is free — no payment required.
Query Parameters
No query parameters required.
Response (200 OK)
Total number of namespaces.
Example
curl https://api.memoclaw.com/v1/namespaces \
-H "x-wallet-auth: 0xYourWallet:1699900000:0xSignature..."
const response = await fetch("https://api.memoclaw.com/v1/namespaces", {
headers: { "x-wallet-auth": await getAuthHeader() },
});
const data = await response.json();
from memoclaw import MemoClaw
client = MemoClaw()
result = client.list_namespaces()
for ns in result.namespaces:
print(f"{ns.name}: {ns.count} memories")
import { MemoClawClient } from "memoclaw";
const client = new MemoClawClient();
const result = await client.listNamespaces();
result.namespaces.forEach(ns => {
console.log(`${ns.name}: ${ns.count} memories`);
});
Response
{
"namespaces": [
{
"name": "default",
"count": 42,
"last_memory_at": "2026-02-13T10:30:00Z"
},
{
"name": "acme-project",
"count": 15,
"last_memory_at": "2026-02-12T16:45:00Z"
}
],
"total": 2
}
⌘I