Spa Tracker
Spa Tracker
v0.1.0

Settings

Manage spa configurations and API keys

PLC Configuration

  1. Configure your PLC to send data to the API endpoints below
  2. Copy the API key for each spa into your PLC configuration

Base URL: https://fuvixxtguqqlvsmxnxpd.supabase.co

API Endpoints

POST /functions/v1/sessions

Record a spa session. Called after each use.

{
  "spa_code": "SPA-001",
  "horse_name": "Thunder",
  "owner_name": "Smith Ranch",
  "hour": 14, "minute": 30,
  "day": 15, "month": 6, "year": 2026,
  "duration_min": 12,
  "notes": ""
}

POST /functions/v1/alerts

Report an error or warning from the spa.

{
  "spa_code": "SPA-001",
  "alert_type": "high_pressure",
  "message": "Pressure exceeded 45 PSI",
  "severity": "error"
}

POST /functions/v1/heartbeat

Health check ping. Should be called every 15 minutes.

{
  "spa_code": "SPA-001"
}

Authentication Header

All requests must include: Authorization: Bearer <api_key>

Spa API Keys

Main Barn Spa

Active

SPA-001

sk_spa001_228e3f4136ad4cafd246b02ebf6b4fc39f77f10b66de5ef1

North Paddock Spa

Active

SPA-005

sk_spa005_70c51131153fa17a891b733318ea1c998aebd7003573cec7

Recovery Center Spa

Active

SPA-003

sk_spa003_c01d3595e8205dfd20f10ecdd6fb9c7997c559c87bfc2233

Training Facility Spa

Active

SPA-002

sk_spa002_47ad7c9735aa62354893f9a735b128fc988831ebefe5f147

West Wing Spa

Active

SPA-004

sk_spa004_8a8cb2089b7f29087ad752bf446d218fdc46e2d9057b5584