Skip to content

region_mismatch (409)

← Error reference

region_mismatch

HTTP status: 409

Retryable: No — retrying without changes will fail the same way.

The key was issued in a different region than the endpoint.

When it fires

Each region (`us`, `eu`) operates an independent cell; data does not cross regions. The key prefix encodes its region and the worker rejects requests whose region does not match.

How to handle it

Use `https://api.us.autohost.app` with `ah_sk_us_*` keys and `https://api.eu.autohost.app` with `ah_sk_eu_*` keys. The official SDK does this automatically.

Example response

{
  "error": {
    "type": "https://docs-dev.autohost-dev.uk/api/errors/region_mismatch",
    "code": "region_mismatch",
    "message": "Key issued in region \"eu\" but endpoint serves region \"us\"",
    "request_id": "req_01HEXAMPLE0000000000000000",
    "doc_url": "https://docs-dev.autohost-dev.uk/api/errors/region_mismatch"
  }
}