Integration Guide - New partners - October 2026
Integration guide · New partners
October 2026

Integration Guide - New partners - October 2026

BetGlider lets your players bet on a horse race in the run-up to the off and while it is being run. It sits inside your site or app as a true mobile-first solution, and it brings the racing with it: race cards, live prices and official results.

Summary

The short version

Two-Up builds the connection to your existing API. There is no BetGlider-specific API for you to build, as long as yours offers the capabilities in section 4. The one thing your platform sends to BetGlider is each bet once it is settled.

OPERATORBETGLIDERYour site or appYour platform APItoken · profile · limitsbets · settlementBetGlider widgetBetGlider APIon the widget hostRacing feedsraces · pricesresultsone-timelaunch linkiframe or WebViewREST +WebSocketserver callssettled bets
Figure 1 — The widget never calls your platform. Calls between us are made server to server: the BetGlider API calls yours, shown highlighted, and yours sends BetGlider each settled bet. Two-Up runs a separate BetGlider stack for each operator.
Section 01

What we'd like from you

Ticks are saved in this browser only.

Section 02

Which races show BetGlider

BetGlider is available on the races its racing feed covers in-running. BetGlider's trading team can suspend or hide any race, racecourse or meeting.

Your site needs to know which races to show BetGlider on, and which id to put in the launch link. We agree one of two approaches during setup:

Both need set-up work on Two-Up's side, which is part of building your connection.

Section 03

Launching and showing BetGlider

OPERATORBETGLIDERYour siteYour platformBetGlider widgetBetGlider APIplayer opens a racelaunch link + one-time tokenloads the link in an iframeGET …?ott=redeem the one-time tokenplayer session tokenget the player profileid · stake factor · can-betrace card · limits · cookielive prices, then bets
Figure 2 — Launching BetGlider. Highlighted steps are the calls BetGlider's servers make to your platform.

When a player opens BetGlider on a race, your backend issues a one-time token for that player, and your site builds the launch link:

https://<betglider-host>/<launch path>/<race id>?ott=<one-time token>[&hideArrow=true][&hideLogo=true]

The exact path is confirmed during setup; the link keeps this shape.

PartMeaning
<race id>The race to open, as agreed in section 2
ottThe one-time token. BetGlider redeems it once, as soon as it loads.
hideArrow=trueOptional. Hides BetGlider's back arrow, for when you show your own close button.
hideLogo=trueOptional. Hides the logo in BetGlider's header.

On the web

<iframe
  src="LAUNCH_LINK"
  title="BetGlider"
  width="393"
  height="745"
  allow="autoplay; fullscreen; picture-in-picture"
  style="border: 0"
></iframe>

Cookies. BetGlider keeps the player's session in a cookie on its own address. Inside your page, that counts as a third-party cookie. Most browsers accept it, because it is partitioned to your site. Some refuse it, iOS WebViews among them, and betting then fails.

We'd suggest testing the whole flow in every browser you support, with third-party cookies blocked. If one of them refuses the cookie, we're happy to talk about serving BetGlider from a subdomain of your own domain.

Messages to your page. BetGlider posts these messages to window.parent, as { source: 'betglider-widget', type }:

typeWhenWhat your page does
BACK_ARROW_CLICKEDThe player taps the back arrowClose BetGlider, or go back
TERMS_OVERLAY_OPENThe Key Terms open, in the first-run tour or from SettingsMake the frame about 660 px tall if it is shorter
TERMS_OVERLAY_CLOSEThe Key Terms closeReturn the frame to its normal size

The messages carry no player data. It helps to check event.origin before acting on one:

const BETGLIDER_ORIGIN = 'https://<betglider-host>';

window.addEventListener('message', (event) => {
  if (event.origin !== BETGLIDER_ORIGIN) return;
  const msg = event.data;
  if (!msg || msg.source !== 'betglider-widget') return;

  switch (msg.type) {
    case 'BACK_ARROW_CLICKED':
      closeBetGlider();
      break;
    case 'TERMS_OVERLAY_OPEN':
      expandBetGliderFrame();
      break;
    case 'TERMS_OVERLAY_CLOSE':
      restoreBetGliderFrame();
      break;
  }
});

In a native app

We'd suggest opening the launch link directly in a WebView, full screen or as a sheet, rather than inside one of your web pages. BetGlider then runs as the page itself, which stops the WebView from blocking its session cookie.

Not available yet
  • BetGlider does not hand off to your deposit page. A player who runs out of funds deposits outside BetGlider.
  • It does not show the player's balance.
  • It does not listen for messages from your page, and sends no login, balance or resize messages.
Section 04

What your API can offer

Two-Up's servers call your API, except for capability 5, where your platform calls BetGlider's. Each capability below lists the data BetGlider needs. Your formats can stay as they are: the connection we build translates them.

#CapabilityNeed
1Swap the one-time token for a player sessionRequired
2Describe the playerRequired
3Share a market's limitsRecommended
4Accept or refuse a betRequired
5Send settled bets to BetGliderRequired, unless BetGlider results the races
6Look up a bet by BetGlider's bet idRecommended
7Race video, silks, race catalogue, cancelling a betOptional

1. Swap the one-time token for a player session

One-time tokens should be single use and last about a minute. Session tokens should last at least an hour.

2. Describe the player

FieldNeedWhat BetGlider does with it
Player idRequiredBecomes the player's id in BetGlider. A stable whole number.
EmailRequiredShown to BetGlider's trading team
Stake factorRecommendedSets the player's BetGlider limits (section 6). Without it, 0.75 is used.
Allowed to betRecommendedShown to the trading team. Your platform stays responsible for refusing bets from a player who may not bet.
Balance, currencyRecommendedShown to the trading team
Session time, play break, reality checkRecommendedStored. BetGlider does not act on them yet.

3. Share a market's limits

BetGlider checks each bet against these before sending it. It counts in what the player already has on that runner, and tells the player which limit the bet would break.

4. Accept or refuse a bet

This is the main call. Its fields are listed in section 5.

5. Send settled bets to BetGlider

When your engine settles a bet, your platform sends it to BetGlider's API, and BetGlider shows it in the player's My Bets. The fields are in section 5. Two-Up gives you the address and credentials for each environment.

BetGlider confirms each settled bet it receives. If it does not, send the bet again: sending the same settled bet twice is safe.

If you would rather not send settled bets, BetGlider can result the races instead. See section 5.

6. Look up a bet by BetGlider's bet id

The lookup returns the bet's status: accepted, refused, settled or void. Both sides can then confirm a bet whose answer went missing, without anyone checking by hand.

7. Optional extras

General requirements

Section 05

How bets reach your platform and come back settled

BETGLIDEROPERATORPlayer (widget)BetGlider APIYour platformplace betBetGlider's checkslimits for the marketmax stake · max winplace bet (BetGlider bet id)accepted, or a reasonreceipt, or the reasonthe race is runresults · settles · payssettled betsettled bet in My Bets
Figure 3 — One bet from placement to My Bets. Highlighted steps are the calls BetGlider makes to your platform. After the race, your platform settles the bet and sends it to BetGlider.

A bet from start to finish

  1. The player picks a horse and a stake.
  2. BetGlider checks that:
    • the player has accepted the Key Terms
    • the race is still open
    • the price has not moved since the player saw it
    • the bet is within the player's limits
  3. BetGlider asks your API for the market's limits, then asks it to accept the bet.
  4. Your platform accepts the bet, or refuses it with a reason.
  5. The player sees a receipt, or a plain message explaining the refusal.
  6. The race is run.
  7. Your platform results the race, settles the bet with its own engine, and pays the player.
  8. Your platform sends the settled bet to BetGlider.
  9. BetGlider shows the bet as settled in the player's My Bets.

Prices move fast in-running. If the price changes by more than a small margin (0.05 in decimal odds) before the bet is placed, BetGlider shows the new price instead of placing the bet.

How BetGlider's pieces map to yours

In BetGliderOn your platform
RaceEvent
Win market (who finishes first)Market
Runner (a horse)Selection
PlayerThe same player account, with the same id
BetA single win bet at a fixed price, with BetGlider's bet id as its reference
Settled betWon, lost or void, with the amount returned

The bet your platform receives

FieldExampleWhat it is for
BetGlider bet id48213Unique for every bet. Use it to recognise a bet you have already received.
Playerfrom the session tokenThe account the stake comes from
Stake5.00In GBP
Price3.0 decimal, and 2/1The odds the bet is struck at
In-runningtrueWhether the race had started
Race, market, runneryour ids or BetGlider'sWhat the bet is on
Placed at29 Sep 2026, 14:05:12 UTCWhen the player placed it

The settled bet BetGlider receives

FieldExampleWhat it is for
BetGlider bet id48213Which bet it is
OutcomewonWon, lost or void
Returned15.00What your platform paid the player, stake included: nothing for a lost bet, the stake for a void one
Settled at29 Sep 2026, 14:12:40 UTCWhen your platform settled it

Results and settlement

By default, your platform results and settles every bet itself, as it would any single win bet: from your own results, with your own rules for non-runners, dead heats and abandoned races. It then sends BetGlider each settled bet, and BetGlider shows it in the player's My Bets exactly as you settled it. BetGlider never moves money and sends you no results.

BetGlider's racing feed still drives what the player sees of the race: prices, the race's progress and the official result.

Option: BetGlider results the races. If you prefer, BetGlider can result the races itself. After the weigh-in, it sends your platform one result per race, with each runner that has bets marked won, lost or void, and your engine settles the bets from it.

This option suits a platform whose engine cannot result BetGlider's races itself, for example when bets carry BetGlider's ids.

A worked example

A player bets £5 on horse 4 at 2/1 while the race is running. Your platform takes the £5 and records bet 48213. Horse 4 wins. Your platform settles the bet, pays the player £15, and sends BetGlider the settled bet. The player's My Bets shows bet 48213 won, returning £15.

What players see when a bet is refused

Your reason codes are matched to these messages when we build your connection:

ReasonThe player sees
Key Terms not accepted (BetGlider's own check)Please accept the Key Terms to place bets
Insufficient fundsInsufficient balance. Top up to place this bet.
Stake above the maximum or below the minimumStake above the maximum for this bet / Stake below the minimum for this bet
Market, daily or payout limitBet exceeds the limit for this market / Bet exceeds your daily limit / Bet exceeds the maximum payout
Price changed or missingThe price has changed, please try again / Price unavailable
Suspended, started or resultedBetting suspended / This race has already started / This race is already resulted
Selection no longer availableThis selection is no longer available
Session expired or invalidYour session has expired, please log in again
Player may not bet (legal restriction)Betting is not available for your account
Any other reasonYour own message, kept to one line, or "Bet could not be placed, please try again"
Section 06

Limits, responsible gambling and terms

Stake limits

The stake factor in the player's profile sets their BetGlider limits. Both are rounded to the penny:

Stake factorMax betMax race spend
0.25£16.67£50.00
0.75 (used when none is given)£50.00£150.00
1.00£66.67£200.00
2.00£133.33£400.00

BetGlider's trading team can adjust these globally, or for a racecourse, meeting, race or runner. It can also suspend or hide any of them.

Players can set their own maximum spend per race (default £50) and minimum price (default 1/2). Your own limits still apply on top, through capabilities 3 and 4.

Responsible gambling

Your platform stays in charge of:

When a player may not bet, please refuse the bet with a legal-restriction reason, and BetGlider shows "Betting is not available for your account". You can refuse at any point: when swapping the token, when sharing limits, or when the bet arrives.

BetGlider does not show reality checks, session timers or play-break prompts.

Key Terms

On first use, a short guided tour shows BetGlider's Key Terms and asks the player to accept them. Until a player has accepted the current version, BetGlider refuses their bets itself, before anything reaches your platform. The wording is written for Great Britain.

Section 07

Good to know

Section 08

Testing and going live

  1. Kick-off. We agree the approach to race ids, and you share the items in section 1.
  2. We build your connection and your BetGlider. You get a themed version on your test environment to review.
  3. You add the entry point, and the frame or WebView.
  4. We test together on your test environment:
  5. Go live. You can start with a handful of races, because Two-Up can limit which races are offered.

What we test together

Ticks are saved in this browser only.

If this guide leaves a question open, your Two-Up contact is happy to help.