{"uid":"cap_H12Rt2FhbYaLibMk_WXxi","slug":"vaaya-mem0-add-memory-d9ad57cf","name":"Vaaya mem0 Add Memory","description":"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.","url":"https://vaaya.ai/api/run/mem0/add","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ntEO0vHvri3fNLi7aAF_9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores new memory entries for a specific user in the mem0 persistent memory system via Vaaya's agent infrastructure","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Persisting user preferences across sessions","prompt":"Store in memory for user 'user_42' that the assistant told them we prefer dark mode and weekly digest emails — infer what's worth remembering from the exchange."},{"title":"Recording CRM contact enrichment facts","prompt":"Add a memory for user 'contact_839' with the message: the assistant noted this lead works at a Series B startup in fintech and prefers async communication. Save it so future agents remember this."},{"title":"Logging onboarding conversation history","prompt":"Persist the following onboarding exchange to memory for user 'onboard_user_77': the assistant asked about their team size and the user said they have 12 people across two time zones."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:11.842Z","isFirstParty":false}