# AGISHub Memory Search

> AGISHub Memory Search is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Semantically searches a named memory namespace and returns the top-K most relevant stored entries using vector similarity — the retrieval half of a RAG pipeline.

## Facts

- Endpoint: POST https://api.agishub.com/paid/memory-search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-memory-search-bc2e0c67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wm1_ZXUj27XG28zhe2Pmx

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 agishub-memory-search-bc2e0c67 -d '<json body>'
```

Example prompt: Search my 'customer-support' memory namespace for the top 5 entries most relevant to 'refund policy for digital products' and return what you find.

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve contextually relevant stored knowledge from a named namespace before generating a response (classic RAG retrieval). Prefer it over keyword-based search when semantic similarity matters more than exact term matching, and when the data was previously upserted into this same provider's memory system.

## Known failure modes

- Namespace does not exist — returns empty results or an error
- Query string is empty — rejected due to minLength:1 constraint
- top_k out of range (below 1 or above 20) — validation error
- No semantically similar entries found — returns empty result set
- Payment failure — x402 payment required, call rejected if payment not provided

## How this service works

Semantically search a memory collection (namespace) and return the most relevant stored entries. The retrieval half of RAG.

## Output

Returns a ranked list of up to top_k stored memory entries from the specified namespace that are most semantically similar to the query, ordered by relevance. Each entry reflects what was previously upserted into that namespace.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "namespace",
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "description": "Natural-language query; returns the most semantically similar stored entries."
      },
      "top_k": {
       "type": "integer",
       "maximum": 20,
       "minimum": 1,
       "description": "How many results to return (default 5)."
      },
      "namespace": {
       "type": "string",
       "minLength": 1,
       "description": "The namespace to search within (the same key used on upsert)."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-memory-search-bc2e0c67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
