---
title: "declare external failover country"
method: POST
path: "/platform/agents/{id}/failover-jurisdiction"
tags: ["Platform"]
---

# declare external failover country

`POST /platform/agents/{id}/failover-jurisdiction`

## Request

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

Record your declared country for an online external agent before pairing. Country declared by you, not verified by Impreza. A changed agent IP requires a new declaration. Deploy scope. 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.

## Path parameters

- `id` string, required

## Request body

- FailoverDeclareExternalFailoverJurisdictionInput
  - `country_code` string, required

## Response `200`

Saved failover state

- FailoverJurisdictionResponse
  - `success` true, required
  - `data` FailoverJurisdiction, required
    - `agent_id` string, required
    - `country_code` string, required
    - `country_basis` 'declared', required
    - `country_notice` string, 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)
