admin

Recover Context

Recover a deleted context from surviving Qdrant data.

Issue #86: Admin endpoint to reconstruct context and memory records from Qdrant point payloads when a context has been accidentally deleted.

#1798: deleting a context now removes its points, and the orphan sweep removes points left by earlier deletions, so this finds nothing for a context deleted on v0.88.0 or later. Its soft-deleted rows stay in Postgres until the tombstone purge; POST /contexts/{context_id}/restore (#1804) brings it back from them.

Default is dry_run=True — shows what would be recovered without making changes.

post/api/v1/admin/contexts/recover

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/admin/contexts/recover
  • Auth: none declared

Request body

context_idstring required
workspace_idstring nullable
context_namestring nullable
dry_runboolean

Response

Successful Response

context_idstring required
workspace_idstring required
qdrant_points_foundinteger required
memories_recoveredinteger required
memories_already_existedinteger required
context_record_createdboolean required
search_config_restoredboolean required
dry_runboolean required
errorsstring[] required

Changes

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