---
title: "prepare failover"
method: POST
path: "/platform/deployments/{id}/prepare-failover"
tags: ["Platform"]
---

# prepare failover

`POST /platform/deployments/{id}/prepare-failover`

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/platform/deployments/{id}/prepare-failover`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Create a 15-minute review for a planned failover. Deploy scope. Does not stop apps or switch traffic. Inspect source, target, hostname, countries, backup age and interruption risk before asking the user to confirm. Backup age is not a promise of zero loss. Hosted MCP requires an account credential without resource confinement. Available only when the failover_enabled feature gate is enabled. Resources must belong to the authenticated account; confined credentials are rejected. A disabled gate returns 404. Review validity, same-account pairing and current state are checked again by the server. Compatibility alias of /platform/deployments/custom/{id}/prepare-failover.

## Path parameters

- `id` string, required

## Request body

- FailoverPrepareFailoverInput

## Response `201`

Pair or review prepared; no automatic traffic switch.

- FailoverReviewResponse
  - `success` true, required
  - `data` FailoverReview, required
    - `cutover_id` string, required
    - `review_digest` string, required
    - `status` string, required
    - `expires_at` string, date-time, required
    - `summary` object, required
    - `receipt` object, nullable, required
  - `meta` Meta, required
    - `request_id` string
    - `timestamp` string, date-time

## Other responses

- `400`: Malformed arguments, missing explicit confirmation, or invalid digest
- `401`: Authentication required
- `403`: Insufficient scope, account ownership, or unsupported credential confinement
- `404`: Gate disabled or resource not found on this account
- `409`: State, replay, concurrency, or review conflict
- `422`: Unsupported deployment or unmet workflow prerequisite
- `503`: Failover service unavailable

---

[API](https://skmtc.dev/imprezahost/apis/impreza-host-public-api.md) · [All operations](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/revisions/db86511f604f?raw)
