Verify symbol access for an identity
https://quant-ws.prod.thinkalpha.io/universes/check-symbol-accessChecks whether each requested instrument is in at least one universe the identity can read, under the same per-universe ACLs as GET /universes/allowed-instruments. It answers 200 with { allowed: true } when every requested instrument is visible — or the list is empty — and 403 with the denied instruments otherwise.
Whose access. By default the identity is the caller: the check covers the universes the caller can read under the same rules as GET /universes. A client-credentials principal is resolved as itself, exactly like a user. To check another identity's access, pass entityType (user, firm or group) and entityId together. The caller must hold owner-level access on that user, firm or group (superusers always do); otherwise the response is 403. Naming the caller's own user id needs no extra access and is the same as the default view.
Matching. Each requested entry is an instrument object or a canonical instrument symbol string (the raw equity ticker, or the 21-character option string), and the two forms name the same identity. Instruments are matched by exact identity — symbol for equities; underlying, strike, expiry and right for options — against the universes' current snapshots, with the same freshness as GET /universes/{idOrSlug}/constituents. Duplicates are checked once. The list has no cap, and an empty list answers 200 after authentication and target authorization.
Denial, and how it differs from failure. A 403 with deniedInstruments is a definitive denial: every universe the target can read was loaded successfully, and each listed instrument is in none of them, de-duplicated and in the order first requested. A 404, 408 or 500 is a request failure, not a denial: a membership could not be read (a readable universe was removed or its snapshot no longer identifies it — 404; a readable universe has no snapshot yet and none was published within 30 seconds — 408; an unexpected server error — 500), and the unverified instruments may well be visible; retry. An instrument already proven visible by one healthy membership never blocks the 200 when another lookup fails, and never appears in deniedInstruments.
Responses carry Cache-Control: private, no-store. To list every allowed instrument instead of checking a chosen set, use GET /universes/allowed-instruments (objects) or GET /universes/allowed-symbols (canonical symbol strings).
- Authentication
- Bearer token or Client credentials (HTTP Basic)
Query parameters
- entityType UniverseAccessEntityType
Kind of identity whose universe access to check: `user`, `firm` or `group`. Requires `entityId`. Omit both to use the caller.
- entityId string<uuid>
UUID of the user, firm or group named by `entityType`. Requires `entityType`. The caller needs owner-level access on this identity (superusers always have it) unless it is the caller's own user id.
Request body application/json required
Instruments to verify against an identity's universe access, as instrument objects and/or canonical instrument symbol strings. Matched by exact instrument identity, with duplicates collapsed; an empty list is accepted.
Instruments to verify against an identity's universe access, as instrument objects and/or canonical instrument symbol strings. Matched by exact instrument identity, with duplicates collapsed; an empty list is accepted.
- object | InstrumentSymbol[] required
Instruments to verify, matched by exact identity: symbol for equities, underlying, strike, expiry and right for options. Each entry is an instrument object or its canonical instrument symbol string; the two forms name the same identity. Duplicates are checked once; an empty list is allowed and answers the allowance directly.
Responses
Every requested instrument is in at least one universe the target can read, or the list was empty.
- allowed true required
Always `true`: every requested instrument is in at least one universe the target can read.