Operator that wish to make use of front-end integration such as Rich Inbox, On Site Messaging, Push notifications, Pending Bonuses, Pending Deposit Bonuses must provide an authentication endpoint that FT CRM can use to validate that the User fetching data from this service is real.

  • FT CRM will determine that the user as 'logged in' when the sid is defined
  • FT CRM will attempt to validate this sid by contacting the FAST TRACK API
  • FAST TRACK API will forward this request to the provided operator authentication endpoint
  • If the sid validates, the operator endpoint will return http response code 200 and a user_id
  • FAST TRACK API will return success or failed response to FT CRM.

Staging and Production

Please ensure that you provide FAST TRACK Integration team with endpoint URL for both staging and production environment.

Endpoints Needed From Operator

POST /authenticate


The authentication end point (here referred as auth endpoint) should accept json, return json, have the method POST and take a post request body.

The sid will be sent as a post header in the following format:

  sid: 'xxx-xxx-xxx-xxx'

Initiate FT CRM JavaScript Lib using sid

This sid is the same as you set as var sid = 'xx-xx-xx-xx'; when setting up the integration script.

The auth endpoint will verify that it is a valid sid. If the sid is valid, the auth endpoint should return http 200 response together with json data looking like this:

  user_id: 123

If the authentication token is unavailable FT CRM will not be able to establish connection.

Setup script

Insert the following code snippet before the end of </body> replace {brand} with supplied brand name from your Fasttrack contact.

  var sid = 'xx-xx-xx-xx';

  //Global Variable
  window.fasttrackbrand = '{brand}';

  //Script Setup
  var fastTrackCrmScript = document.createElement('script');
  fastTrackCrmScript.async = true;
  fastTrackCrmScript.onload = function () {
    new window.FastTrackLoader();
  fastTrackCrmScript.src = "";

The sid variable should contain an authtoken or similiar. Most likley you already have that variable.

Logging out

If you want to log the user out from the integration script. You can call this function: