Submit a toolSubmit

OpenAI returned 403 Country, region, or territory not supported. Fix location before you retry

HTTP 403 means the IP is outside OpenAI’s supported countries. Move to a supported region or clear a stale travel session; don’t treat it like a 401 key error. Short answer: 5 steps. 1) Confirm it is 403 unsupported region, not 401; 2) Check the official supported-countries list from the machine that calls the API; 3) If you just traveled, clear cached session state after you return; 4) Rule out org IP allowlisting when the message is IP not authorized; 5) Do not retry-loop a geo 403.

Last updated: · This page is the decision checklist; the tools list for “Fix an OpenAI API 403 unsupported country” is a separate URL.

The problem: HTTP 403 means the IP is outside OpenAI’s supported countries. Move to a supported region or clear a stale travel session; don’t treat it like a 401 key error.

How do I fix the location before retrying when OpenAI returns 403 unsupported country?

  1. Confirm it is 403 unsupported region, not 401

    OpenAI’s error table lists HTTP 403 with “Country, region, or territory not supported” when the API request comes from an unsupported location. That is different from 401 incorrect API key / invalid authentication and from 401 IP not authorized (your org’s IP allowlist). Error codes: https://developers.openai.com/api/docs/guides/error-codes

  2. Check the official supported-countries list from the machine that calls the API

    Compare the egress IP’s country/territory to OpenAI’s supported list. Accessing or offering the API from outside that list can block or suspend the account. List: https://developers.openai.com/api/docs/supported-countries

  3. If you just traveled, clear cached session state after you return

    OpenAI’s help article covers accounts created in a supported region that fail after travel, including false unsupported-country errors after you are home again: clear browser cache/cookies, try another browser or an incognito window, then contact Support if it persists. Help: https://help.openai.com/en/articles/9131992-chatgpt-and-api-services-in-unsupported-countries-and-territories

  4. Rule out org IP allowlisting when the message is IP not authorized

    If the status is 401 with “IP not authorized,” the project or organization IP allowlist rejected the client IP—send from an allowed address or update the allowlist. That is not fixed by changing countries. Allowlist settings: https://platform.openai.com/settings/organization/security/ip-allowlist

  5. Do not retry-loop a geo 403

    Backoff will not unlock an unsupported territory. Run the client from a supported country/territory (or a deployment region that is supported), keep keys out of browsers you used abroad if cookies are sticky, and only regenerate keys after you confirm the failure is still auth rather than location.

Which tools are best to fix an OpenAI API 403 unsupported country?

OpenAI error codes

Official 403 unsupported-country row vs 401 auth and IP allowlist errors.

Supported countries and territories

The list OpenAI uses to decide whether API access from a location is allowed.

Unsupported countries help

Travel cases and clearing cache after returning to a supported region.

Organization IP allowlist

Where to fix 401 IP not authorized when the failure is allowlisting, not geography.

All tools for “Fix an OpenAI API 403 unsupported country” →

Related fixes

See also AI tools launched today on the daily board.