# agent402.tools Memory Audit Log

> agent402.tools Memory Audit Log is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Retrieves a tamper-evident, hash-chained append-only audit log of all changes to a memory namespace, with optional filtering by owner address and entry count.

## Facts

- Endpoint: GET https://agent402.tools/api/memory/log
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-memory-audit-log-3658ab73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nzeJSgGnigLiJ2_r614xM

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 agent402-tools-memory-audit-log-3658ab73
```

Example prompt: Pull the last 200 entries from the tamper-evident memory audit log for namespace 0x1a2b3c4d5e6f7890abcdef1234567890abcdef12 so I can verify what changes were made and that the history hasn't been forged.

## When to prefer this

Use this endpoint when an AI agent needs verifiable, unforgeable provenance of all changes to a memory namespace — especially when a third party must trust that the history has not been tampered with. Prefer this over generic logging solutions when cryptographic hash-chaining and server attestation are required, or when auditing agent behavior for compliance or dispute resolution.

## Known failure modes

- Missing or invalid 0x owner address returns an authorization error — the namespace requires a valid grant
- Limit parameter outside 1–1000 range may return a validation error or be clamped to defaults
- An ungranted namespace returns an access-denied or empty response
- Network or payment failure (x402 protocol) results in no data returned
- If the namespace has no history, an empty log array is returned

## How this service works

Tamper-evident history of every change to a namespace - an append-only, hash-chained audit log the server attests to (provenance an agent can't forge for itself). ?owner=0x… reads a granted namespace.

## Output

Returns an ordered list of up to 1000 audit log entries representing every change ever made to the namespace, each cryptographically linked to the previous via a hash chain. The server attests to the log, making it unforgeable by the agent itself. Each entry records the change, its timestamp, and the hash linking it to prior entries.

## 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",
     "properties": {
      "limit": {
       "type": "string",
       "description": "Max entries (1-1000, default 100)"
      },
      "owner": {
       "type": "string",
       "description": "Optional 0x namespace (requires a grant)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ns",
      "entries"
     ],
     "properties": {
      "ns": {
       "type": "string"
      },
      "entries": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "key": {
          "type": "string"
         },
         "seq": {
          "type": "integer"
         },
         "hash": {
          "type": "string"
         },
         "action": {
          "type": "string"
         },
         "prevHash": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ns": "0x…",
  "entries": [
   {
    "key": "task-42",
    "seq": 1,
    "hash": "…",
    "action": "put",
    "prevHash": ""
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-memory-audit-log-3658ab73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
