# Vaaya mem0 Add Memory

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

Stores new memory entries for a specific user in the mem0 persistent memory system via Vaaya's agent infrastructure

## Facts

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

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-add-memory-d9ad57cf -d '<json body>'
```

Example prompt: Save this to memory for user 'user_abc123': the assistant said 'Your next meeting is at 3pm on Friday' and the user replied 'Got it, thanks' — infer memory from the conversation.

## When to prefer this

Use this endpoint when your AI agent needs to persist memory entries for individual users in a mem0-compatible store without managing your own API keys or mem0 account — ideal for multi-session agents that need to remember user context, preferences, or conversation history across interactions, especially within the Vaaya agent infrastructure.

## Known failure modes

- Missing required 'user_id' or 'messages' fields returns a validation error
- Empty messages array (minItems:1 violated) causes request rejection
- Invalid role or missing content in a message object triggers a schema error
- Network or upstream mem0 service failure returns a 5xx error
- Insufficient payment (x402) causes the request to be rejected before processing

## 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 confirmation object indicating the memory entry was successfully stored in mem0 for the given user, potentially including a memory ID or structured acknowledgment of what was persisted.

## 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": [
      "messages",
      "user_id"
     ],
     "properties": {
      "infer": {
       "type": "boolean"
      },
      "user_id": {
       "type": "string",
       "minLength": 1
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "role",
         "content"
        ],
        "properties": {
         "role": {
          "type": "string",
          "minLength": 1
         },
         "content": {
          "type": "string"
         }
        },
        "additionalProperties": false
       },
       "minItems": 1
      },
      "metadata": {
       "type": "object",
       "additionalProperties": {}
      }
     },
     "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-add-memory-d9ad57cf/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)
