# Vaaya Mem0 Memory Search

> Vaaya Mem0 Memory Search is a paid API for AI agents from vaaya.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Searches a user's stored memory in Mem0 to retrieve semantically relevant memories by query

## Facts

- Endpoint: POST https://vaaya.ai/api/run/mem0/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vaaya-mem0-memory-search-b7fbbbd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U07W0ncKDed9hwYJmgMun

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 vaaya-mem0-memory-search-b7fbbbd2 -d '<json body>'
```

Example prompt: Search my mem0 memory for user 'user_abc123' and find the top 5 memories related to 'product pricing preferences'.

## When to prefer this

Use this endpoint when your agent needs to recall past context, preferences, or facts stored in Mem0 for a specific user before generating a response or taking action. Prefer this over generic search APIs when you are working within the Mem0 memory ecosystem and need semantic similarity-based retrieval tied to a user identity.

## Known failure modes

- Missing required 'query' field returns a validation error
- Missing required 'user_id' returns a validation error
- No matching memories returns an empty result set
- Invalid or non-existent user_id may return empty results without error
- top_k value of 0 or negative rejected due to exclusiveMinimum constraint
- Network or upstream Mem0 service failure returns a 5xx error

## How this service works

Give an AI agent a credit account. Set a limit and a spending policy, and the agent makes approved, metered purchases from providers that accept Vaaya.

## Output

Returns a ranked list of memory records matching the query for the specified user, ordered by semantic relevance. Each record typically includes the memory content and associated metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "http://json-schema.org/draft-07/schema#",
     "required": [
      "query",
      "user_id"
     ],
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1
      },
      "top_k": {
       "type": "integer",
       "exclusiveMinimum": 0
      },
      "user_id": {
       "type": "string",
       "minLength": 1
      }
     },
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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