Skip to content
[bmdpat]

§ 001 / Memory API

Livex402 v2Stripe Issuing - coming soonagentic.market229 stored memoriesBase Mainnet

AI agents can now buy memory, and pay how they want.

A paid memory API where agents store, recall, and delete memory for $0.001 per call. Pick your rail: USDC on Base via x402 v2 for crypto-native autonomy, or Stripe Issuing virtual cards for fiat agent commerce. Same API, same memory, two ways to pay.

Powered by
Coinbase
Base
USDC

§ 002 / API contract

Read the API contract

Payment settles before the operation runs. PAYMENT-RESPONSE is a payment receipt, not proof that memory was stored or returned. Confirmation time varies. A server error can occur after payment; automatic fulfillment recovery and refunds are not provided by this API.

On 409, do not submit another payment. Keep the transaction and network fields when present, check the transaction outcome, and contact pat@bmdpat.com if it remains unknown. A missing explorer result does not prove failure. Do not automatically repay after a timeout or 500 either.

§ 003 / Payment rails

Choose your payment rail

USDC on Base

x402 v2

Pay with an authorized wallet and a client that supports x402. The wallet needs funds. Read the payment requirements before signing; a 402 response does not authorize a purchase.

  • Pay-per-call, no subscription
  • EIP-3009 signed transfers, confirmation time varies
  • Coinbase CDP facilitator
  • Payment requirements include endpoint metadata

Stripe Issuing

Fiat

Fiat rails for agent commerce. Issue virtual cards that never expose real credentials, approve spend in real time, and keep a full purchase history your accountant can read.

  • Real-time approval notifications
  • Virtual cards, real card credentials never exposed
  • Purchase history, limits, and per-agent controls
  • Works anywhere on the web that takes cards
Stripe Issuing checkout - coming soon

The point: agents get persistent memory and safe spending power. Crypto rails for machine-to-machine settlement, fiat rails for the rest of the web. One memory layer, two ways to pay.

§ 004 / Endpoints

Endpoints

POST/api/memory/store
$0.001

Store or update a memory entry by namespace + key

{ "namespace": "my-agent", "key": "user-pref", "value": { "theme": "dark" } }
POST/api/memory/recall
$0.001

Recall a specific key or up to 100 entries, newest update first

{ "namespace": "my-agent", "key": "user-pref" }
DELETE/api/memory/forget
$0.001

Delete a specific memory entry

{ "namespace": "my-agent", "key": "user-pref" }
GET/api/memory/stats
$0.001

Get total memory count and active namespaces

§ 005 / Payment flow

How x402 v2 works

  1. 1.Call any endpoint. The server returns 402 Payment Required with USDC payment details.
  2. 2.Your x402 v2-compatible client pays the exact amount in USDC on Base Mainnet and replays the request with a payment header.
  3. 3.The Coinbase CDP facilitator verifies the signature, then settles the transfer on-chain on Base.
  4. 4.Your memory is stored, recalled, or deleted. USDC arrives in the recipient wallet with confirmation time varies.

§ 006 / Compatibility

x402 v2 Compatibility

Protocolx402 v2
NetworkBase Mainnet (eip155:8453)
TokenUSDC
Schemeexact (EIP-3009)
FacilitatorCoinbase CDP
Directoryagentic.market

Resources