Trax Platform APIv1

Trax Platform API

The Trax Platform API gives websites and apps live access to an organization's Trax Online Registration data. With it, families can:

The API serves these callers:

Base URL and versions

Every endpoint starts with a version: /v1/…. A version only ever gains fields and endpoints; anything that would break a caller ships as a new version.

Portals: client token and org token

Each organization's registration portal is addressed by two tokens, the same ones in today's portal URLs (https://…/{clientToken}/{orgToken}/):

Token Identifies Example
clientToken The Trax client (its database) riverbend
orgToken The organization's portal north

Portal endpoints live under /v1/portals/{clientToken}/{orgToken}/. An unknown, mistyped or mismatched pair returns 404 with the code portal-not-found. Duda sites store both tokens in their Content Library (see the Duda guide).

Quick start

  1. Read the portal's configuration (name, branding, feature switches):

Portal configuration

GET https://api.nfocus.solutions/v1/portals/riverbend/north/config → 200 OK, JSON

curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/config'
JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/config');
const data = await response.json();
C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/config");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();
  1. Search its activities:

Activities for an 8-year-old on Saturdays

GET https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12 → 200 OK, JSON

curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12'
JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12');
const data = await response.json();
C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/activities?age=8&days=Sat&pageSize=12");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();
  1. Open one activity, then its fee installments:

One activity

GET https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3 → 200 OK, JSON

curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3'
JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3');
const data = await response.json();
C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/activities/3");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();

Fee installments

GET https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees → 200 OK, JSON

curl
curl -s 'https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees'
JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees');
const data = await response.json();
C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/portals/riverbend/north/activities/2/fees");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();

Conventions

Where to go next