Write an agent memory entry

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/memory
Body
vault_idstringrequired
keystringrequired
typestringrequired

One of the agent_memory types: section, log, workflow_meta, session_chunk, plan, session_memory, workflow_context, note

contentstringrequired
importancenumber
metadataobject

Request

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
idstringrequired
vault_idstringrequired
keystringrequired
typeenumrequired

One of: section, log, workflow_meta, session_chunk, plan, session_memory, workflow_context, note

contentstringrequired
importancenumberrequireddefault: 3
metadataobject
created_atstringrequired
updated_atstringrequired
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.