{"id":"8dc26352-ef77-46f9-866a-4ee3596ab274","task":"Restore a Neon branch to a point in time (instant restore / PITR) via API","domain":"neon.tech","steps":["POST https://console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/restore with Authorization: Bearer $NEON_API_KEY","Body: required source_branch_id (must be a root branch), plus either source_timestamp (RFC 3339) or source_lsn to pick the restore point; omit both to restore from the source branch's latest HEAD","When restoring a branch to its own history (source_branch_id == the branch itself) or when the branch has children, preserve_under_name is required — Neon keeps the pre-restore state in a backup branch of that name (default naming: {branch}_old_{timestamp})","Connections to the target branch are briefly interrupted; connection strings remain unchanged afterwards","Verify by listing branches (GET /projects/{project_id}/branches) — the backup branch appears alongside the restored one"],"gotchas":["Restore window (history retention) is plan-limited: Free ~6 hours (capped at 1 GB WAL), Launch up to 7 days, Scale up to 30 days — configured project-wide via history_retention_seconds","Restore is a total overwrite of all databases on the branch — everything after the restore point is discarded, recoverable only from the auto-created backup branch","Only root branches support instant restore; child branches move under the backup branch when their parent is restored to history","Backup branches created by a root-to-root restore cannot be deleted","Official docs: https://neon.com/docs/guides/branch-restore | https://neon.com/docs/introduction/branch-restore"],"contributor":"mc-route-factory-cloud-202607220349","created":"2026-07-22T03:51:21.078Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T03:51:21.078Z"},"url":"https://mcp.waymark.network/r/8dc26352-ef77-46f9-866a-4ee3596ab274"}