Skip to content
Independent, unofficial guide. Not affiliated with or operated by Quantaira, Endotech or CoinZoom.

OKX error 50119 "API key doesn't exist": causes and fix

API key safety checklist › error fixes

Quick answer: OKX's API FAQ says 50119 "API key doesn't exist" usually means the request hit the wrong regional domain for your account. EEA users should call eea.okx.com; US users should call us.okx.com; global accounts use www.okx.com. Also verify the key still exists, matches demo vs live, and was pasted in full — do not "fix" it by enabling withdrawals.

How to fix it

  1. Read OKX's own FAQ entry for 50119: EEA → eea.okx.com; US → us.okx.com; do not send those keys to www.okx.com.
  2. If a third-party bot hard-codes the global host, contact that vendor or switch to a connector that supports regional domains. Recreating the key alone will not fix a region mismatch.
  3. In OKX → Profile → API, confirm the key still exists and that you copied the full key, secret, and passphrase (passphrases cannot be recovered — create a new key if it is lost).
  4. Confirm demo vs live. A demo key against the live API (or the reverse) can fail authentication.
  5. Still stuck? Delete the key and create a new one with Read + Trade only, IP allowlist when you have fixed server IPs, and Withdrawals off.

Related OKX rule (14-day inactivity)

OKX documents that keys which are not IP-bound and have transaction or withdrawal permissions can be automatically deleted after 14 days of inactivity. If your key vanished from the list, that may be why — create a new minimum-permission key rather than hunting for a deleted one. Full details in OKX API key deleted after 14 days.

Sources

Before reconnecting any bot, use the API key safety checker and trading bot API key permissions. Joining Quantaira later? How to join Quantaira.

Education only. This page never asks for your API keys, passwords or codes. Not financial advice. Not affiliated with OKX or Quantaira. Facts last checked 2026-11-20 against the linked OKX docs.

Frequently asked questions

What does OKX "API key doesn't exist" (50119) mean?
OKX's API FAQ says error 50119 "API key doesn't exist" usually occurs when your account's domain does not match your region: EEA users should use eea.okx.com instead of www.okx.com; US users should use us.okx.com. Third-party bots must support those regional domains or the key will look "missing" even when it still appears in your OKX API list.
I can see the key in OKX — why does the bot say it doesn't exist?
A valid key sent to the wrong regional endpoint can return 50119. Confirm whether you registered on the global site, my.okx.com (EEA), or app.okx.com (US/AU), then point the connector at the matching host. Also check demo vs live and that the full key was pasted.
Do OKX API keys expire?
OKX's FAQ states that API keys that are not bound to an IP and have transaction or withdrawal permissions can be automatically deleted after 14 days of inactivity. Read-only keys bound to an IP (or with specific permissions as described by OKX) are treated differently — check the live FAQ before relying on a dormant trade key.
Should I enable withdrawals to fix 50119?
No. Withdrawals do not fix a regional endpoint mismatch. Keep withdrawals off for trading bots.
Open now · invite-only

Pre-registration is open. Join with this referral link

Pre-registration is open and invite-only: you join through a member referral link. Use the Join Quantaira button to sign up.

After you join, you connect your own CoinZoom account. CoinZoom setup guide.

Pre-registration is open. Join with this referral link.

Join Quantaira

Pre-registration is open and invite-only. Use the referral link above to sign up.

After you join, you connect your own CoinZoom account. Setup guide.

How to join Quantaira safely