Skip to content

Launch overrides

The brand’s look and content (theme, light/dark, banners, home, pages, texts, languages, catalog curation) and its display currency policy, as configured in the back office, can also be passed for one player session, at launch. Without overrides nothing changes. What overrides cannot change is listed in Not an override.

Precedence: launch override › the brand’s published back-office configuration › platform default. An override replaces only what it names: the rest of the brand’s configuration stays.

An aggregator can set the brand’s published theme from its backend with the theme API, so an anonymous visitor, who has no session and therefore no override, also sees it. Publish the base look there and use overrides.theme only for what changes per session. The JSON Schema of overrides.theme is themeOverride in GET /aggregator/themes/schema.

Channel What it may set How
Your server (signed launch) Everything below overrides in POST /api/v1/integration/sessions. Validated by the API, kept on the session server side, delivered to the iframe by the single-use launch token. The player cannot see or change it.
Your page Presentation only: theme, colorScheme and the visual content sections overrides mount option, setOverrides() on the SDK instance, or the set_overrides command, from your verified page origin only.

Your page’s values go on top of the launch’s: a page theme is a patch over the launch’s theme (which is a patch over the brand’s), page translations merge key by key over the launch’s texts, and any other content section or colorScheme from the page replaces the launch’s. When a new launch arrives (set_launch_token), your page’s values are re-applied over it (and dropped if they no longer validate, e.g. a colour clash with the new theme). Catalog curation, languages and the display policy only ever come from the launch.

{
"theme": { "tokens": { "color-accent": "#c8401f" }, "chrome": { "footer": "compact" } },
"colorScheme": "dark",
"content": {
"home": [{ "type": "live", "enabled": true }, { "type": "highlights", "enabled": true }],
"translations": { "pt-BR": { "home.liveNow": "Ao vivo agora" } },
"catalog": { "hiddenSports": ["esports"], "pinnedSports": ["football"] }
},
"display": { "source": "table", "currencies": ["BRL", "EUR"], "rates": { "BRL": 5.42, "EUR": 0.92 } }
}
Key Rules
theme A patch over the brand’s published theme, with the fields below. Tokens and component properties merge key by key; other fields replace. The Theme Studio’s validators on the merged theme: known tokens and safe values, text contrast, the trade-dress guard (no deep green with bright yellow), component limits. logoUrl and faviconUrl must be files of the brand’s media library (/api/v1/assets/{tenant}/…).
colorScheme light or dark: opens in that side of the theme’s light/dark pair. The player’s own toggle still works.
content Brand content sections, see below. A section replaces the brand’s; translations merge key by key. The back office’s content validators (link targets, banner slots and dates, page limits, home blocks). Images must be banners or images of the brand’s media library.
display The display currency policy for this session: currencies offered, source (operator or table) and, with a table, rates (units of each code per 1 unit of the brand’s default currency). Replaces the brand’s. Server only. At most 12 registry codes, no duplicates; a table needs a rate for each offered currency other than the brand’s default, from 1e-9 to 1e9 with at most 12 significant digits, as in the back office. A displayCurrency sent in the same request is checked against this policy.
Field Values
name Text.
tokens The design tokens (color-accent, radius, font-family…), merged over the brand’s. Sizes stay within the token bounds, text colours keep their contrast.
logoUrl, faviconUrl Files of the brand’s media library (/api/v1/assets/{tenant}/…).
density compact or comfortable.
layout three-column or two-column.
experience The layout family: classic, cards, panels, dense or rail.
scheme The light/dark pair: base (light or dark, the side tokens describe), alt (colour tokens of the other side; missing ones are tokens’), default (base, alt or system, the device’s preference) and toggle (true: players may switch).
chrome header (brand or surface), headerPosition (sticky or static), mainNav (show or hide), footer (full or compact). The first value is the default.
components Per component, in px unless named: button (radius 0–24, weight 500/600/700/800, case none/uppercase), odds (radius 0–16, height 28–56, weight 600/700/800), card (radius 0–24, shadow none/line/soft/strong), chip (radius 0–20), header (height 44–80), logo (height 20–48).
Section Channel
banners, highlights, coupons, couponOrder, sportsOrder, home, pages, supportChat, discovery Server or page
translations Server or page. Texts about money, the account, responsible gambling and errors are protected and refused.
catalog Server only. Fields: hiddenSports, pinnedSports, hiddenCompetitions, pinnedCompetitions, featuredCompetitions, hiddenMarkets (market types such as 1x2, btts, ou), marketOrder (market types inside an event, first on top) and marketGroupOrder (the event page’s tabs). A session may hide more sports, competitions and markets than the brand and change pinned/featured lists and ordering; what the brand or platform hides stays hidden (the hidden lists are merged). Bet placement enforces it: a bet on a sport, competition or market the session hides is refused (not_found, as for what the brand hides). The session’s listings, counts, search and live odds leave it out too, and the ordering, pins and featured lists apply.
languages Server only.

The section formats are the ones the back office publishes (GET /api/v1/brand-content).

  • Server. An invalid overrides refuses the whole request with 400 validation before any player or session is created; message says what is wrong. The validated, canonical value is echoed in the response (overrides) and audited. details.field:

    details.field When
    overridesPolicy Not strict or best_effort.
    overrides Not an object, an unknown or mistyped key at the top level, in theme or in display, or over 256 KB.
    overrides.colorScheme Not light or dark.
    overrides.display The display policy is invalid.
    overrides.content.<section> An unknown section.
    overrides.content A section does not have the brand content format.
    overrides.content.translations Texts are not {locale: {key: text}}.
    overrides.content.banners An image is not a banner or image of the brand’s media library.
    The Theme Studio’s field (theme.tokens, theme.chrome.footer…) A theme rule; details.override is theme and details.reason is invalid_enum, invalid_value, invalid_color, unknown_token, unknown_component, unknown_property, font_not_allowed, out_of_bounds or trade_dress.
    The back office’s content field (catalog, home, translations), or none A content rule (editorial limits, links, banner slots and dates, pages, home blocks, curation limits, protected texts): the same error as publishing that content in the back office.
  • Page. An invalid value changes nothing and the iframe sends an error event: invalid_override (with the reason in message) or override_requires_launch_token. The previous overrides stay.

Limits: 256 KB for the launch’s object, and the back office’s own limits for each section (for example 24 banners, 20 pages, 6000 texts per language).

When an override is invalid: overridesPolicy

Section titled “When an override is invalid: overridesPolicy”

By default ("overridesPolicy": "strict") one invalid part refuses the whole session. A server that sends a theme it cannot fully control (for example one saved by an end user) can ask for "best_effort" in POST /integration/sessions:

{ "externalPlayerId": "p-1", "overridesPolicy": "best_effort",
"overrides": { "theme": { "tokens": { "color-accent": "red;}" } }, "colorScheme": "dark" } }

The theme above is invalid, so it is left out; the session opens with the brand’s theme and the dark scheme, and the response says what was dropped:

{ "overridesPolicy": "best_effort",
"overrides": { "colorScheme": "dark" },
"overridesRejected": [ { "section": "theme", "field": "theme.tokens.color-accent", "reason": "invalid_value", "message": "token \"color-accent\" contains a forbidden sequence \";\"" } ],
"themeRef": "…", "themeOverridden": false }
What Under best_effort
theme An invalid theme is left out as a whole (section: "theme")
content.<section> Each invalid content section is left out on its own (section: "content.banners"); the valid ones stay. If the valid ones do not pass together, none is applied (section: "content")
display Never best effort. An invalid display currency policy refuses the session, with no player and no session created, exactly as in strict
colorScheme Strict: not light or dark refuses the session
The shape of the object Strict: a non-object, an unknown key or an unknown content section refuses the session
The player’s own displayCurrency and the wallet currency Not overrides: checked as always

best_effort only decides what happens to a presentation override that is invalid. It never makes the session open with a currency, limit or rule the request did not ask for. What was left out is also kept in the session’s audit entry.

These stay in the back office and apply to every session of the brand:

  • prices and rules: margins, stake and payout limits (also per sport, competition and league tier), features (cash-out, system bets, live betting, Bet Builder, bonuses), live features (match tracker, stats, alerts);
  • money: the enabled wallet currencies (a session picks one with currency);
  • promotions, segments and combos;
  • where the sportsbook runs: embedOrigins and custom domains;
  • the media library itself (overrides can only point at its files).

The session request also carries locale and path (sessions); they are launch parameters, not overrides.

Overrides belong to the session. A reload of the iframe keeps them (in its sessionStorage, re-validated); a new session (set_launch_token) brings its own, or none. setOverrides(null) / set_overrides { overrides: null } clears your page’s values and leaves the launch’s.

// your server
const s = await fetch(`${API}/api/v1/integration/sessions`, {
method: 'POST',
headers: { 'X-API-Key': KEY, 'X-Tenant-ID': TENANT, 'Content-Type': 'application/json' },
body: JSON.stringify({
externalPlayerId: 'player-42',
overrides: { content: { catalog: { hiddenSports: ['esports'] } }, colorScheme: 'dark' },
}),
}).then((r) => r.json());
// your page
const sb = OrbiSportbook.mount('#sportsbook', {
url: SPORTSBOOK_URL, tenant: TENANT, launchToken: s.launchToken,
overrides: { theme: { tokens: { 'color-accent': '#c8401f' } } },
onError: (e) => console.warn(e.code, e.message),
});
sb.setOverrides({ content: { sportsOrder: ['football', 'basketball'] } });