Skip to content

Scopes and audiences

Four checks run, in order, on every request made with a key:

  1. Audience. Each endpoint belongs to one or more audiences: public (the Public API), firm (the Console API) and app (IDEALX’s own apps). A personal key reaches only public endpoints, a firm key only firm endpoints.
  2. Scope. The key must have the scope the request needs.
  3. Firm. A firm key works only for its own firm: a different firmId in the path answers 403. A personal key cannot call firm endpoints at all.
  4. Authority. The request is then authorised like the same person in the app: their roles on the account, the account’s approval policy and, for a firm, the client’s mandate on each portfolio.
Scope Allows Keys
read Every GET in the key’s reference Personal and firm
trade Place, cancel and approve orders; put cash into yield Personal and firm
move Transfers between portfolios of one account, currency conversions, opening, renaming and closing portfolios Personal and firm
advise Check, write, change, submit and withdraw proposals; start conversations and reply to clients Firm only

The scope is decided by the method and the path. Any GET needs read; each write needs the scope in the table, as the reference shows for each operation.

Request Personal key Firm key
An endpoint in the Public API reference Allowed (within scopes) 403, details.audience: "public": use a personal key
An endpoint in the Console API reference 403, details.audience: "firm": use a firm key Allowed (within scopes)
Anything else (app-only, staff, internal) 403, details.audience: "app" 403, details.audience: "app"

Many account endpoints (/v1/accounts/{id}/…) are in both references: a person reads their own account, a firm reads its client’s account under mandate, with the same request and response.

By design, these need a person in the app with their one-time code, and are in neither reference:

  • money leaving an account: bank withdrawals and digital asset sends;
  • adding or changing recipients (payees and saved addresses);
  • identity, profile and tax details;
  • opening accounts and applications;
  • team and firm settings, invitations decisions, strategies and Library changes;
  • managing API keys and webhook endpoints, signing in, step-up codes.

Make one key per integration with only the scopes it needs. A reporting job needs read; a rebalancing tool read and advise (or trade under a discretionary mandate); a treasury sweep between your own portfolios read and move.