Agents

Write or update an agent memory

Write or update an agent memory. Use paths like "meta/campaigns/roas-pattern" to organize knowledge hierarchically.

post/api/v1/write_agent_memory

Request

  • Base URL: https://api.pymaia.com
  • URL: https://api.pymaia.com/api/v1/write_agent_memory
  • Auth: HTTP bearer

Request body

agent_slugstring required

Agent slug that owns this memory

pathstring required

Hierarchical path (e.g. "google/keywords/brand-terms")

contentstring required

The memory content - insights, patterns, observations

memory_type'insight' | 'fact' | 'preference' | 'pattern' | 'warning' | 'living_doc'
importancenumber

Importance level 1-10

ttl_daysnumber

Days until this memory expires (null = permanent)

Response

Tool executed successfully

okboolean
resultunknown
duration_msnumber

Changes

No recorded changes to this operation across all 1 revision of this API.