Chat with your Garmin Connect data using AI. Ask about your runs, rides, swims, training load, VO2 Max, heart rate zones, and performance trends. Powered by Transition, which syncs with Garmin Connect to give AI agents access to your training data.
export TRANSITION_API_KEY="tr_live_xxxxxxxxxxxxxxxxxxxxx"
Generate a random structured workout — no account needed.
curl "https://api.transition.fun/api/v1/wod?sport=run&duration=45"
Parameters:
sport — run, bike, swim, or strength (default: run)duration — minutes, 10-300 (default: 45)Base URL: https://api.transition.fun
Auth: Pass X-API-Key header on every request.
Ask questions about your Garmin data. The AI coach has full context on your activities, training load, and performance.
curl -X POST -H "X-API-Key: $TRANSITION_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "How has my running volume changed this month compared to last?"}' \
"https://api.transition.fun/api/v1/coach/chat"
Example questions:
Retrieve scheduled workouts for a date range.
curl -H "X-API-Key: $TRANSITION_API_KEY" \
"https://api.transition.fun/api/v1/workouts?start=2026-02-09&end=2026-02-15"
Parameters:
start — Start date (YYYY-MM-DD, required)end — End date (YYYY-MM-DD, required)start and end is 90 days.Get CTL (fitness), ATL (fatigue), and TSB (form) calculated from your Garmin activities.
curl -H "X-API-Key: $TRANSITION_API_KEY" \
"https://api.transition.fun/api/v1/performance/pmc"
Get FTP, threshold paces, heart rate zones, and other metrics derived from your Garmin data.
curl -H "X-API-Key: $TRANSITION_API_KEY" \
"https://api.transition.fun/api/v1/performance/stats"
curl -H "X-API-Key: $TRANSITION_API_KEY" \
"https://api.transition.fun/api/v1/profile"
curl -H "X-API-Key: $TRANSITION_API_KEY" \
"https://api.transition.fun/api/v1/coach/history"
Send a scheduled workout directly to your Garmin device.
curl -X POST -H "X-API-Key: $TRANSITION_API_KEY" \
"https://api.transition.fun/api/v1/workouts/123/push-garmin"
| Tier | Read Endpoints | AI Endpoints |
|---|---|---|
| ------ | --------------- | ------------- |
| Free | 100/day | 3/day |
| Paid | 10,000/day | 100/day |
GET /api/v1/performance/pmc and look at TSB. If TSB is below -20, the athlete is fatigued.共 1 个版本