POST

Retrieve the top-k most similar items from agent memory for a query, with optional namespace and metadata filter. Backed by Pinecone serverless

/v1/agent/memory/query

Powered by Pinecone

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/agent/memory/query
Content-Type: application/json

{
  "query": "latest AI agent payments",
  "top_k": 5
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Retrieve the top-k most similar items from agent memory for a query, with optional namespace and metadata filter. Backed by Pinecone serverless.

Managed vector database for similarity search and AI memory.

Request schema

Body: JSON · application/json

FieldTypeDescription
querystringrequired
namespacestringoptionalpattern: ^[\w:.-]+$
top_kintegerrequiredmin: 1
filterobjectoptional
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/agent/memory/query \
  -H "Content-Type: application/json" \
  -d '{
  "query": "latest AI agent payments",
  "top_k": 5
}'

402 payment flow omitted — see Integrations for settlement.