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.
How do I fix the location before retrying when OpenAI returns 403 unsupported country?
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
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
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
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
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.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Fix an OpenAI API 403 unsupported country” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.