Skip to content
intelliHoops
Public API · v1

Developer API

A simple, read-only REST API that lets your own website display your organization's live schedule, scores, standings and practice schedules. Authenticate with one key, get clean JSON back. No player data is ever exposed.

Getting started

  1. Open Settings → Public API in the intelliHoops admin app (organization admins only).
  2. Turn on Enable public API.
  3. Click Generate key and copy it — it's shown only once.
  4. Send that key in the X-API-Key header on every request.
Open settings →

Authentication

Every request must include your API key in the X-API-Keyheader. Keys are scoped to a single organization, so a key can only ever read its own org's data.

Base URL:

https://api.intellihoops.com/api/public/v1

Example request:

curl -H "X-API-Key: ih_live_your_key_here" \
  https://api.intellihoops.com/api/public/v1/schedule?seasonId=SEASON_ID

Responses & conventions

  • • Successful responses wrap the payload in a { "data": … } envelope.
  • • Every endpoint is GET and read-only, except the two newsletter doors, which only ever add a subscriber and answer the same for any address.
  • • The API is versioned under /v1. Breaking changes ship as a new version.
  • • CORS is open, so you can call it directly from your website's JavaScript or from your backend.
  • • Requests are rate limited per key; keep a light polling interval (e.g. every 30–60s).

Example response body:

{
  "data": [
    {
      "id": "…",
      "status": "completed",
      "scheduledAt": "2026-04-12T17:00:00.000Z",
      "homeTeamName": "Thunder U12",
      "awayTeamName": "Wolves U12",
      "homeScore": 48,
      "awayScore": 41,
      "venueName": "Community Center"
    }
  ]
}

Endpoints

GET/org

Your organization's public profile (name, slug, logo, colors, website).

GET/programs

Your programs (id, name, type, gender, level), each with offerings: what it is offering the public right now. registration and tryouts each carry a status (open, upcoming, closed or none), the public form’s url, and its opensOn / closesOn days in your organization’s time zone; ageRange is the grade span of the program’s divisions (null when none states one); label is the one-line state your site can print as it is. A program with nothing open is still listed, labeled, so a contact form can offer it.

{
  "data": [
    {
      "id": "…",
      "name": "Youth Club Teams",
      "type": "club",
      "gender": "coed",
      "level": [],
      "offerings": {
        "registration": { "status": "closed" },
        "tryouts": {
          "status": "open",
          "url": "https://app.intellihoops.com/tryout/invitational-tryouts-2026-2027",
          "closesOn": "2026-11-15"
        },
        "ageRange": { "minGrade": 2, "maxGrade": 8 },
        "label": "Tryouts open — closes Nov 15"
      }
    }
  ]
}
GET/seasons

Seasons with dates and active/archived status.

GET/divisions

Divisions with age/grade eligibility.

  • seasonId — Optional. Limit to one season.
GET/teams

Teams (name, logo, division, gender). No rosters or member data.

  • seasonId — Optional. Teams in this season.
  • divisionId — Optional. Teams in this division.
GET/venues

Venues (name, city, state). No street addresses.

GET/schedule

Games & results with team, venue, and division names resolved, plus links to the game video and the scanned box score when your organization has filed them. Tournament games also carry clubSide, which says whether your team was home or away.

  • seasonId — Optional. Filter by season.
  • divisionId — Optional. Filter by division.
  • teamId — Optional. Games for one team (home or away).
  • from — Optional. YYYY-MM-DD lower bound (UTC).
  • to — Optional. YYYY-MM-DD upper bound (UTC).
  • limit — Optional. 1–500, default 100.
GET/games/:gameId

A single game / scoreboard.

GET/standings

Regular-season standings, in ranked order: rank, games played, wins, losses, ties, points for/against, differential. Playoff and championship games are not counted.

  • divisionId — Required. The division to rank.
GET/practice-schedules

Each team’s recurring weekly practice slots (weekday, start and end as wall-clock times in your org’s timeZone from /org, venue, court, practice type). Blocks that have already ended are left out unless you ask.

  • seasonId — Optional. Schedules in this season.
  • teamId — Optional. One team’s schedules.
  • includeEnded — Optional. `true` to include blocks whose end date has passed.
GET/practices

Individual practice sessions and posted training sessions, each with its kind ("practice" or "training") and status, so a cancellation, a moved time or an added session reaches your site the moment the office records it. A canceled row stays in the feed with status "canceled". A training row carries teamIds (it may span several teams, or none) and null for the practice-only fields.

  • seasonId — Optional. Filter by season (a training session through its teams’ season).
  • teamId — Optional. One team’s practices and training sessions.
  • kind — Optional. `practice` or `training`; both when omitted.
  • from — Optional. YYYY-MM-DD lower bound (UTC). Defaults to today.
  • to — Optional. YYYY-MM-DD upper bound (UTC), inclusive.
  • limit — Optional. 1–500, default 100.
GET/events

Tournaments, shootouts and showcases your teams are entered in: name, kind, dates, organizer, website, and each team with its standing (confirmed, pending or canceled). An event that is already under way is included, so you can show what is happening right now.

  • seasonId — Optional. Filter by season.
  • teamId — Optional. Events one team is entered in.
  • from — Optional. YYYY-MM-DD; events still running on or after this day. Defaults to today.
  • to — Optional. YYYY-MM-DD; events starting on or before this day.
  • includeTentative — Optional. `true` to include penciled-in events.
  • limit — Optional. 1–200, default 50.
GET/coaches

Your coaching staff, for your website’s coaches page: name, title, the coach’s own bio, profile photo, hire date, and the head or assistant role on each team of a current season. The hire date comes with hireDateSource: "set" when your office recorded it, "joined" when it is the day the coach joined your account, standing in. Every active coach is listed except one whose date of birth on file shows they are under 18, so record a teen coach’s date of birth to keep them off your site; contact details are never included.

POST/newsletter/subscribers

Add an address to your organization’s newsletter from your own server (JSON body: email, and optionally firstName, lastName, tags). The person gets a confirmation email before anything else is sent. Always answers 202 { accepted: true }, whether the address was new, already on the list or unsubscribed, so the API never reveals who subscribes. Needs the newsletter switched on in Settings.

POST/inquiries

File a message from your website’s “Contact us” form as an inquiry in your organization’s Inquiries inbox, from your own server (a JSON body; name or firstName, email and message are required). Your admins are alerted at once and the sender gets a receipt that names the topic — never their message. Always answers 202 { accepted: true, responseTargetHours, acknowledged, newsletterConfirmationRequired } so the API never reveals what your filter made of a message: acknowledged says whether your organization sends receipts, decided before the message is read and never a fact about the address, so a receipt may still be withheld by the daily caps (one per address per day) even when it is true — word your thank-you “you should get a confirmation”, and give a fallback contact. Needs the public API on, a key generated with “Can file website inquiries” ticked (a scope is chosen when a key is made, so an older key cannot be upgraded), and Inquiries switched on. When your organization turns AI assist on (off by default), the message is read by the model provider to sort it, and a reply your staff ask the AI to draft or polish goes there too; a human sends every reply.

  • name — Required unless you send firstName. The sender’s full name, up to 100 characters; split into first and last for you.
  • firstName, lastName — Optional. Separate name fields, up to 100 characters each. Send these or name; they win when both are sent.
  • email — Required. Where the receipt and your reply go, up to 254 characters.
  • message — Required. What they wrote, up to 5,000 characters. Cap your textarea at the same number.
  • phone — Optional. Up to 25 characters.
  • topic — Optional. One of: program_question, registration_help, tryouts, camps, training, schedule, billing, hiring, financial_aid, vendor, general. Anything else is filed as general, so the receipt cannot name the subject or link your aid and careers pages.
  • onBehalf — Optional. Who is writing. One of: parent, player, coach, vendor, other. Anything else is stored as not asked.
  • childGrade — Optional. The player’s grade (“7”, “7th”), up to 40 characters.
  • interests — Optional. Up to 10 labels your form offered (“Camps”), each up to 80 characters.
  • programIds — Optional. Up to 10 program ids from GET /programs. An id that is not yours is ignored.
  • newsletter — Optional. { optIn, consentText } — send optIn true only when the box was ticked, with the sentence shown beside it (up to 500 characters).
  • source — Optional. { formId (60), pageUrl (500), ip (64), userAgent (300) } — where the message came from. Forward the visitor’s address as ip, never your server’s own: the per-visitor limit and the spam filter read it.
  • website — Optional. The honeypot: a hidden field a person never fills. Forward whatever it holds (up to 200 characters); a filled one is answered 202 and discarded.

Try it from a terminal

curl -X POST https://api.intellihoops.com/api/public/v1/inquiries \
  -H "X-API-Key: ih_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Jordan Reyes",
    "email": "jordan@example.com",
    "message": "When does summer camp open?",
    "topic": "camps",
    "onBehalf": "parent",
    "source": { "formId": "contact", "pageUrl": "https://your-site.com/contact", "ip": "203.0.113.5" }
  }'

From your website’s server function

// A server function on your website (never in the browser: the key is a secret).
export async function POST(request) {
  const form = await request.json();
  const res = await fetch('https://api.intellihoops.com/api/public/v1/inquiries', {
    method: 'POST',
    headers: { 'X-API-Key': process.env.INTELLIHOOPS_API_KEY, 'Content-Type': 'application/json' },
    body: JSON.stringify({
      name: form.name,
      email: form.email,
      message: form.message,
      topic: form.topic, // optional
      website: form.website, // your hidden honeypot field, forwarded as it is
      source: {
        formId: 'contact',
        pageUrl: request.headers.get('referer') ?? undefined,
        ip: request.headers.get('x-forwarded-for')?.split(',')[0]?.trim(), // the visitor's, not yours
      },
    }),
  });
  if (res.status === 202) return Response.json({ ok: true });
  const { error } = await res.json();
  // 400: error.issues is [{ field, message }] — show each beside its field.
  return Response.json({ ok: false, code: error.code, issues: error.issues ?? [] }, { status: res.status });
}

A refused body names every field

{
  "error": {
    "code": "invalid_parameter",
    "message": "Enter a valid email address",
    "field": "email",
    "issues": [
      { "field": "email", "message": "Enter a valid email address" },
      { "field": "topic", "message": "Topic must be 40 characters or fewer." }
    ]
  }
}

Errors

  • 400 invalid_parameter — A field is missing, malformed or too long. field is the first problem; issues lists every one as { field, message }.
  • 403 insufficient_scope — The key cannot file inquiries. Generate a new key with “Can file website inquiries” ticked.
  • 403 inquiries_disabled — Inquiries are switched off for the organization. The message is refused and not saved.
  • 429 rate_limited — Too many messages: 5 per visitor (source.ip) and 30 per key in 10 minutes. A request refused for a mistake in a field does not count toward either.
GET/newsletter/subscribers/count

How many addresses stand subscribed to your newsletter.

POST/newsletter/signup

The browser form for your website: post email (and optionally first name) with your PUBLISHABLE form key from Settings → Newsletter → Sign-up — never the secret key — as form fields or JSON. Pass redirect to send the visitor back to a page on an origin you listed; otherwise they land on the hosted “check your inbox” page. The snippet on the Sign-up tab is ready to paste.

  • key — Your publishable form key (ih_nlf_…).
  • email — The visitor’s address.
  • redirect — Optional. A URL on one of your listed website origins.

Errors

Errors use standard HTTP status codes and a consistent body:

{
  "error": {
    "code": "api_disabled",
    "message": "The public API is disabled for this organization."
  }
}
  • 400 — Bad request — a parameter was malformed (e.g. an invalid id).
  • 401 — Missing or invalid API key.
  • 403 — The public API is turned off for this organization (api_disabled), the key lacks the permission the endpoint needs (insufficient_scope), or the feature is switched off (inquiries_disabled).
  • 404 — The requested record was not found in your organization.
  • 429 — Rate limited — slow down and retry shortly.

Privacy first

The public API deliberately exposes only public league facts — teams, schedules, scores, standings and practice times — and your coaches as you introduce them to families. It never returns player names, dates of birth, contact information, health notes, financial data, or street addresses. Youth privacy is non-negotiable, so player-level data is simply not part of this API, and a coach whose date of birth on file shows they are under 18 is never listed.