GET /api/mcp/thresholds
GET /api/mcp/thresholdsAuthorization: Bearer <api-key>Returns threshold history ordered by effective_from descending (most recent first). See Thresholds for full documentation.
Query parameters
Section titled “Query parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
metric | string | No | ftp or lthr |
from | string | No | Start date YYYY-MM-DD |
to | string | No | End date YYYY-MM-DD |
Response
Section titled “Response”HTTP 200
[ { "id": "uuid", "metric": "ftp", "value": 265, "effective_from": "2025-01-15", "source": "auto", "notes": null, "created_at": "2025-01-15T10:30:00Z" }, { "id": "uuid", "metric": "ftp", "value": 258, "effective_from": "2024-09-01", "source": "manual", "notes": "Post-summer ramp test", "created_at": "2024-09-01T09:00:00Z" }]Example
Section titled “Example”# All FTP historycurl "https://mydatafor.life/api/mcp/thresholds?metric=ftp" \ -H "Authorization: Bearer $FITREPO_API_KEY"
# All thresholds, all timecurl "https://mydatafor.life/api/mcp/thresholds" \ -H "Authorization: Bearer $FITREPO_API_KEY"