Skip to content

Create an API key

An API key is a bearer token. It starts with idx_test_ in the sandbox and idx_live_ in production, followed by 40 random letters and digits. IDEALX stores only a SHA-256 hash of it: the full key is shown once, when you make it.

  1. Sign in to the IDEALX app (app.staging.idealx.com for the sandbox).
  2. Open Profile → Developer and choose API keys.
  3. Name the key after the integration that will use it (2 to 60 characters, for example Budget sync).
  4. Choose its scopes: read to read, trade to place, cancel and approve orders, move to move money and positions between your own portfolios and convert currencies.
  5. Optionally set an expiry in days. Make the key and copy it.

The key acts as you: it sees the accounts you have a role on and can do only what you could do in the app, within its scopes.

Send the key in the Authorization header of every request:

GET /v1/accounts HTTP/1.1
Host: api.staging.idealx.com
Authorization: Bearer idx_test_4fQm…

A missing, revoked, expired or other-environment key answers 401 unauthenticated.

  • Keep keys on your server, in a secrets manager or environment variable. Never ship one in a browser or mobile app, never commit one to a repository.
  • Give each integration its own key with the fewest scopes it needs, so you can revoke one without stopping the others.
  • Set an expiry for keys used by short projects or contractors.
  • Each person can hold up to 20 active keys. Revoke one before making more.

Keys cannot manage keys or webhooks, sign in, or complete a step-up code. Money leaving an account (bank withdrawals and digital asset sends), adding recipients, identity and profile changes, opening accounts, and team or firm settings always need a person in the app. Those endpoints are not in the API references, and a key calling them gets 403 forbidden with details.audience: "app".