# Agent Memory: List Namespace Keys

> Agent Memory: List Namespace Keys is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-26).

Lists up to 100 keys stored in an agent's memory namespace, with size, save time, and expiry metadata, supporting cursor-based pagination and prefix filtering.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/memory/list?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-agent-memory-list-keys-9b6a1af6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GiVhNmoefj-i_icWg57oZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-agent-memory-list-keys-9b6a1af6
```

Example prompt: Show me all the keys my agent has saved in namespace 'my-agent-session-xyz123abc456def7', and filter to only ones starting with 'task-'.

## When to prefer this

Use this endpoint when an agent needs to discover or audit what it has previously stored in a namespace, navigate large sets of saved data via pagination, or filter stored keys by a known prefix before fetching specific values. Prefer this over /memory/get when you don't yet know which exact keys exist or want a summary view (sizes, expiry) without loading values. It is the right starting point for any inspection or cleanup workflow over agent-persisted state.

## Known failure modes

- Missing or invalid namespace returns an error (namespace must be 16–128 alphanumeric/-/_ characters)
- Namespace not found or empty returns keys: [] with count: 0
- Invalid cursor string causes pagination to fail or restart from the beginning
- Prefix filter with no matches returns empty keys array
- Eventual consistency lag: a key written recently elsewhere may not appear for up to 60 seconds
- Rate limiting or payment failure returns 402 if credits are exhausted

## How this service works

Agent memory, list keys. List up to 100 keys saved in your namespace, optionally only those starting with a prefix, with their size, save time and expiry; pass the returned cursor for the next page. Values are not included (read them with /memory/get). Values are kept until they expire (at most 30 days) or are deleted; reads anywhere may lag a write made elsewhere by up to a minute. Use to see what an agent has saved.

## Output

Returns a JSON object containing an array of key entries (each with key name, size in bytes, updatedAt timestamp, and expiresAt timestamp), the total count of matched keys, and a cursor string for fetching the next page. Values themselves are not included — use /memory/get to retrieve them.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "namespace"
     ],
     "properties": {
      "cursor": {
       "type": "string",
       "examples": [
        "cursor-from-previous-page"
       ],
       "description": "The cursor from the previous page of this list"
      },
      "prefix": {
       "type": "string",
       "examples": [
        "user-"
       ],
       "description": "Only keys that start with this text"
      },
      "namespace": {
       "type": "string",
       "examples": [
        "demo-agent-memory-7f3c9a21"
       ],
       "description": "Your namespace: a secret of 16 to 128 letters, digits, - or _ that you choose and reuse. Anyone who knows it can read and write it, so treat it like a password; send it in a POST body to keep it out of URLs."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "keys": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "key": {
          "type": "string"
         },
         "size": {
          "type": "number"
         },
         "expiresAt": {
          "type": "string"
         },
         "updatedAt": {
          "type": "string"
         }
        }
       }
      },
      "count": {
       "type": "number"
      },
      "cursor": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "keys": [
   {
    "key": "user-preferences",
    "size": 34,
    "expiresAt": "2026-11-24T15:00:00.000Z",
    "updatedAt": "2026-10-25T15:00:00.000Z"
   }
  ],
  "count": 1,
  "cursor": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-agent-memory-list-keys-9b6a1af6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
