1gateway.dev/v1/agent/memory/search
Use when an agent must recall what it saved before without knowing the exact key. Pay from the same wallet (USDC on any EVM network in the 402 quote). Input: q (any language), k 1-20, optional tag. Output: the closest memories with id, similarity score, text, tags and expiry. An empty memory returns an empty list. Example: ?q=what leverage does the user accept&k=3
GET
https://1gateway.dev/v1/agent/memory/searchUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/agent/memory/search?k=3&q=what+leverage+does+the+user+accept&tag=prefs");
console.log(await res.json());Example input
{
"k": "3",
"q": "what leverage does the user accept",
"tag": "prefs"
}More from Agent MemoryProvider status
- 1gateway.dev/v1/agent/memory/deleteUse when an agent must forget a saved memory before its expiry. Pay from the same wallet (USDC on any EVM network in the 402 quote). Input: id from memory put or search. Output: status deleted. A missing or expired id returns 404 and is not charged. Example: ?id=m_0123456789abcdef01230.002
- 1gateway.dev/v1/agent/memory/putUse when an agent must remember notes across runs and recall them by meaning, not by key. The paying wallet (USDC on any EVM network in the 402 quote) is the namespace. Input: text (max 4,000 chars), optional tags, ttl_days 1-90. Output: memory id, expiry, usage. 1,000 memories per wallet. Llama Guard checks the text; unsafe = not stored but charged. Unencrypted: no secrets. Example: POST {"text":0.005
