curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/cardio/niggle" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{}'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/cardio/niggle', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/cardio/niggle"
payload = { "note": "<string>" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"companyId": "66f7b8b1e13c8d25f4d3d90a",
"clientId": "66f7b8b1e13c8d25f4d3d90a",
"baseline": {
"source": "logged_activities",
"startDate": "2026-07-14",
"endDate": "2026-07-14",
"timeZone": "Europe/Amsterdam",
"calculatedAt": "2026-07-14T10:00:00.000Z",
"complete": true,
"baselineWeeklyKm": 1,
"weeklyTotals": [
{
"weekStart": "2026-07-14",
"distanceKm": 1,
"runCount": 1,
"missingDistanceCount": 1
}
],
"reasonCodes": [
"RUNNING_BASELINE_ACTIVITY_TYPE_MISSING"
]
},
"running": {
"thresholdSource": {
"kind": "max_effort",
"distanceM": 1,
"timeSec": 1,
"date": "2026-07-14"
},
"baselineWeeklyKm": 1,
"baselineSource": "coach",
"hrBands": {
"easy": {
"low": 1,
"high": 1
},
"threshold": {
"low": 1,
"high": 1
}
},
"runDaysPerWeek": 1,
"availableWeekdays": [
1
],
"fixedWeekdays": [
1
],
"baselineWindow": {
"source": "logged_activities",
"startDate": "2026-07-14",
"endDate": "2026-07-14",
"timeZone": "Europe/Amsterdam",
"calculatedAt": "2026-07-14T10:00:00.000Z",
"complete": true,
"baselineWeeklyKm": 1,
"weeklyTotals": [
{
"weekStart": "2026-07-14",
"distanceKm": 1,
"runCount": 1,
"missingDistanceCount": 1
}
],
"reasonCodes": [
"RUNNING_BASELINE_ACTIVITY_TYPE_MISSING"
]
},
"thresholdSecPerKm": 1,
"thresholdRangeSecPerKm": {
"low": 1,
"high": 1
}
},
"niggle": {
"active": true,
"note": "string",
"reportedAt": "2026-07-14T10:00:00.000Z",
"clearedAt": "2026-07-14T10:00:00.000Z"
},
"paces": {
"thresholdSecPerKm": 1,
"thresholdRangeSecPerKm": {
"low": 1,
"high": 1
},
"anchors": {
"E": {
"low": 1,
"high": 1
},
"T": {
"low": 1,
"high": 1
},
"I": {
"low": 1,
"high": 1
},
"R": {
"low": 1,
"high": 1
}
},
"reasonCodes": [
"THRESHOLD_MEASUREMENT_REQUIRED"
]
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Athlete reports an active niggle
Client-only. The flag remains active until the athlete explicitly clears it. This phase records the flag; weekly intensity removal is implemented by the later adaptation phase.
Requires the workout_client_plans:write scope. This operation maps to /app/v1/workout/cardio/me/niggle and retains its Workout V2 permission, feature-flag, and resource-scope checks.
The clientId path parameter identifies the client represented by the request context.
curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/cardio/niggle" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{}'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/cardio/niggle', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/cardio/niggle"
payload = { "note": "<string>" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"companyId": "66f7b8b1e13c8d25f4d3d90a",
"clientId": "66f7b8b1e13c8d25f4d3d90a",
"baseline": {
"source": "logged_activities",
"startDate": "2026-07-14",
"endDate": "2026-07-14",
"timeZone": "Europe/Amsterdam",
"calculatedAt": "2026-07-14T10:00:00.000Z",
"complete": true,
"baselineWeeklyKm": 1,
"weeklyTotals": [
{
"weekStart": "2026-07-14",
"distanceKm": 1,
"runCount": 1,
"missingDistanceCount": 1
}
],
"reasonCodes": [
"RUNNING_BASELINE_ACTIVITY_TYPE_MISSING"
]
},
"running": {
"thresholdSource": {
"kind": "max_effort",
"distanceM": 1,
"timeSec": 1,
"date": "2026-07-14"
},
"baselineWeeklyKm": 1,
"baselineSource": "coach",
"hrBands": {
"easy": {
"low": 1,
"high": 1
},
"threshold": {
"low": 1,
"high": 1
}
},
"runDaysPerWeek": 1,
"availableWeekdays": [
1
],
"fixedWeekdays": [
1
],
"baselineWindow": {
"source": "logged_activities",
"startDate": "2026-07-14",
"endDate": "2026-07-14",
"timeZone": "Europe/Amsterdam",
"calculatedAt": "2026-07-14T10:00:00.000Z",
"complete": true,
"baselineWeeklyKm": 1,
"weeklyTotals": [
{
"weekStart": "2026-07-14",
"distanceKm": 1,
"runCount": 1,
"missingDistanceCount": 1
}
],
"reasonCodes": [
"RUNNING_BASELINE_ACTIVITY_TYPE_MISSING"
]
},
"thresholdSecPerKm": 1,
"thresholdRangeSecPerKm": {
"low": 1,
"high": 1
}
},
"niggle": {
"active": true,
"note": "string",
"reportedAt": "2026-07-14T10:00:00.000Z",
"clearedAt": "2026-07-14T10:00:00.000Z"
},
"paces": {
"thresholdSecPerKm": 1,
"thresholdRangeSecPerKm": {
"low": 1,
"high": 1
},
"anchors": {
"E": {
"low": 1,
"high": 1
},
"T": {
"low": 1,
"high": 1
},
"I": {
"low": 1,
"high": 1
},
"R": {
"low": 1,
"high": 1
}
},
"reasonCodes": [
"THRESHOLD_MEASUREMENT_REQUIRED"
]
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Authorizations
Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_.... Each resource request rechecks the token company's current provider access. Disabling access blocks existing tokens with 403 auth.provider_unavailable.
Headers
Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.
1 - 200"booking-create-20260714-001"
Path Parameters
Client in the company bound to the Public API token.
^[a-fA-F0-9]{24}$Body
2000