Write an agent memory entry
Creates or replaces the memory entry identified by `vault_id` + `type` + `key`. The SDK's `memory.create`. Rate-limited per user.
POST
/api/agent/memoryBody
vault_idstringrequiredkeystringrequiredtypestringrequiredOne of the agent_memory types: section, log, workflow_meta, session_chunk, plan, session_memory, workflow_context, note
contentstringrequiredimportancenumbermetadataobjectRequest
curl
curl -X POST https://trickest.io/api/agent/memory \
-H "Authorization: Bearer $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
200The stored entry
idstringrequiredvault_idstringrequiredkeystringrequiredtypeenumrequiredOne of: section, log, workflow_meta, session_chunk, plan, session_memory, workflow_context, note
contentstringrequiredimportancenumberrequireddefault: 3metadataobjectcreated_atstringrequiredupdated_atstringrequired400Bad Request – validation error or malformed input
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
401Unauthorized – missing or expired token
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
403Forbidden – insufficient permissions
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
429Too Many Requests – rate limited
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
500Internal Server Error
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.