Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Idempotency-Key
string
required

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.

Required string length: 1 - 200
Example:

"booking-create-20260714-001"

Path Parameters

clientId
string
required

Client in the company bound to the Public API token.

Pattern: ^[a-fA-F0-9]{24}$

Body

application/json
tab
enum<string>
default:feed

Which tab to compute. Defaults to feed.

Available options:
feed,
statistics
clientId
string

Required when the caller is a coach; inferred from token when the caller is a client.

Example:

"67f1234567890abcdef1234"

page
integer

Feed pagination (ignored for statistics).

Required range: x >= 1
Example:

1

limit
integer

Feed pagination (ignored for statistics).

Required range: 1 <= x <= 100
Example:

10

statsRange
enum<string>
default:last7days

Range for the CHART only — the stat cards are always all-time and ignore this. last7days/last1month bucket daily; last6months buckets monthly. activity uses the last 7 days and returns chart points only for dates with completed training.

Available options:
last7days,
last1month,
last6months,
activity
muscleBalanceRange
enum<string>
default:last30days

Range for the muscle balance radar + breakdown.

Available options:
last7days,
last30days,
last90days,
allTime

Response

History page data for the requested tab.

data
object
required

The shape depends on tab. tab: "feed" returns plans + pagination. tab: "statistics" returns cards, chart, muscleActivation, muscleBalance, muscleBreakdown, recentPRs, topExercises, and selectedRanges.

meta
object
required