Restore a vault's agent memory

Restore a vault's agent memory

Restores entries from a backup document produced by GET /agent/memory/backup. The SDK's memory.restore.

POST/api/agent/memory/restore
Body
vault_idstringrequired
backupobjectrequired

entriesobject[]required

idstringrequired
vault_idstringrequired
keystringrequired
typeenumrequired

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

contentstringrequired
importancenumberrequireddefault: 3
metadataobject
created_atstringrequired
updated_atstringrequired
exported_atstringrequired
vault_idstringrequired

Request

curl
curl -X POST https://trickest.io/api/agent/memory/restore \
  -H "Authorization: Token $TRICKEST_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Responses

200Restored
successboolean
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.