POST

Retrieve stored entries by exact key or by semantic similarity (top-k). Backed by SQLite with all-MiniLM-L6-v2 embeddings

/v1/memory/query

Powered by SQLite

Request → Response

Examples from schemas.json.

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

{
  "key": "example",
  "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 stored entries by exact key or by semantic similarity (top-k). Backed by SQLite with all-MiniLM-L6-v2 embeddings.

Self-contained, serverless, embedded SQL database engine.

Request schema

Body: JSON · application/json

FieldTypeDescription
keystringoptional
querystringoptional
top_kintegerrequiredmin: 1
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/memory/query \
  -H "Content-Type: application/json" \
  -d '{
  "key": "example",
  "query": "latest AI agent payments",
  "top_k": 5
}'

402 payment flow omitted — see Integrations for settlement.