Download OpenAPI specification:
Register as a new API consumer using a name that uniquely and unambiguously identifies you or your organization
Created API Consumer object
| consumerName required | string [ 2 .. 100 ] characters |
{- "id": "0df33d4b-f526-4040-ad6e-447589f810f5",
- "consumerName": "Firstbeat Technologies",
- "sharedSecret": "5e03d766-4d55-4c88-a011-f0785bccb671"
}Retrieve a new shared secret that must be confirmed using /account/new-secret/confirm endpoint before it can be used for other purposes
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "sharedSecret": "4c70e131-8c81-49eb-a14f-c682c310767b"
}Confirm your possession of a new shared secret and invalidate the previous shared secret
| Authorization required | string Use the new shared secret to generate the token. Format: Bearer NEW_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
Get Firstbeat Sports accounts linked to your API consumer
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "accounts": [
- {
- "accountId": "1-1",
- "name": "Some account",
- "authorizedBy": {
- "coachId": 362791
}
}
]
}Get possible values for field sportsType in measurements and sessions
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
[- "football",
- "americanFootball",
- "rugbySevens",
- "rugbyUnion",
- "rugbyLeague",
- "fieldHockey",
- "iceHockey",
- "ringette",
- "baseball",
- "basketball",
- "futsal",
- "volleyball",
- "beachVolleyball",
- "floorball",
- "handball",
- "lacrosse",
- "softball",
- "gaelicFootball",
- "australianFootball",
- "cricket",
- "tennis",
- "badminton",
- "squash",
- "ultimate",
- "trailRunning",
- "running",
- "treadmillRunning",
- "orienteering",
- "strength",
- "cardio",
- "xcSkiing",
- "biathlon",
- "roadCycling",
- "indoorCycling",
- "mountainBiking",
- "bmx",
- "alpineSkiing",
- "swimming",
- "walking",
- "nordicWalking",
- "snowboarding",
- "rowing",
- "mountaineering",
- "hiking",
- "multisport",
- "triathlon",
- "golf",
- "inlineSkating",
- "climbing",
- "iceSkating",
- "taekwondo"
]Get possible values for field eventType in measurements and sessions
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
[- "race",
- "game",
- "rehab",
- "recovery",
- "training"
]Get athletes that belong to the specified account
| accountId required | string Id of the account |
| offset | number Skip a number of first items in the response |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "more": false,
- "athletes": [
- {
- "athleteId": 356255,
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com"
}
]
}Get athlete
| accountId required | string Id of the account |
| athleteId required | integer Id of the athlete |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "athleteId": 356255,
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com"
}List all measurements of an athlete
| accountId required | string Id of the account |
| athleteId required | integer Id of the athlete |
| fromTime | string <date-time> Limit the response to measurements that start earliest at specified time |
| toTime | string <date-time> Limit the response to measurements that start before specified time |
| exerciseType | string Limit the response to measurements of specified exercise type, also known as title |
| measurementType | string Enum: "exercise" "quickRecoveryTest" "night" "manual" Limit the response to measurements of specified measurement type |
| sportsType | string Limit the response to measurements of specified sports. To make a single query for more than one sports, pass them as a comma-separated list. See Sports Type and Event Type for possible values. |
| eventType | string Limit the response to measurements from a specific type of event. To make a single query for more than one event type, pass them as a comma-separated list. See Sports Type and Event Type for possible values. |
| offset | number Skip a number of first items in the response |
| includeLaps | boolean Include laps in the response |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "more": false,
- "measurements": [
- {
- "measurementId": 3397522,
- "athleteId": 356262,
- "sessionId": 41289,
- "startTime": "2015-09-25T07:47:26Z",
- "endTime": "2015-09-25T08:33:12Z",
- "measurementType": "exercise",
- "exerciseType": "Morning exercise",
- "sportsType": "running",
- "eventType": "training",
- "notes": "Thirty minutes of interval training",
- "laps": [
- {
- "lapId": 864843,
- "name": "2nd interval",
- "startTime": "2015-09-25T07:50:32Z",
- "endTime": "2015-09-25T07:52:30Z"
}
]
}
]
}Get athlete measurement results
| accountId required | string Id of the account |
| athleteId required | integer Id of the athlete |
| measurementId required | integer Id of the measurement |
| var | string Specify names of requested variables in a comma-separated string |
| format | string Enum: "binary" "list" Request time series either as binary data or JSON lists of numbers |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "athleteId": 356262,
- "measurementId": 3397522,
- "sessionId": 41,
- "startTime": "2015-09-25T07:47:26Z",
- "endTime": "2015-09-25T08:33:12Z",
- "measurementType": "exercise",
- "exerciseType": "Morning exercise",
- "sportsType": "running",
- "eventType": "training",
- "notes": "Thirty minutes of interval training",
- "variables": [
- {
- "name": "energyConsumptionTotal",
- "unit": "kcal",
- "value": 49.57954406738281
}
]
}Get analysis results for lap in athlete's measurement
| accountId required | string Id of the account |
| athleteId required | integer Id of the athlete |
| measurementId required | integer Id of the measurement |
| lapId required | integer Id of the lap |
| var | string Specify names of requested variables in a comma-separated string |
| format | string Enum: "binary" "list" Request time series either as binary data or JSON lists of numbers |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "athleteId": 77013,
- "measurementId": 3397522,
- "sessionId": 41,
- "lapId": 864843,
- "name": "2nd interval",
- "startTime": "2015-09-25T07:50:32Z",
- "endTime": "2015-09-25T07:52:30Z",
- "measurementType": "exercise",
- "exerciseType": "Morning exercise",
- "sportsType": "running",
- "eventType": "training",
- "notes": "Thirty minutes of interval training",
- "variables": [
- {
- "name": "energyConsumptionTotal",
- "unit": "kcal",
- "value": 49.57954406738281
}
]
}Get all coaches in an account
| accountId required | string Id of the account |
| offset | number Skip a number of first items in the response |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "more": false,
- "coaches": [
- {
- "coachId": 362791,
- "firstName": "Some",
- "lastName": "Coach",
- "email": "some.coach@example.com"
}
]
}Get coach info
| accountId required | string Id of the account |
| coachId required | integer Id of the coach |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "coachId": 362791,
- "firstName": "Some",
- "lastName": "Coach",
- "email": "some.coach@example.com"
}Get all teams and groups in an account
| accountId required | string Id of the account |
| offset | number Skip a number of first items in the response |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "more": false,
- "teams": [
- {
- "teamId": 1786,
- "name": "A great team",
- "athleteIds": [
- 356262
], - "groups": [
- {
- "groupId": 1902,
- "name": "Some group",
- "athleteIds": [
- 356301
]
}
]
}
]
}Get team and its groups
| accountId required | string Id of the account |
| teamId required | integer Id of the team/group |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "teamId": 1786,
- "name": "A great team",
- "athleteIds": [
- 356262
], - "groups": [
- {
- "groupId": 1902,
- "name": "Some group",
- "athleteIds": [
- 356301
]
}
]
}Get all athletes in a team or group
| accountId required | string Id of the account |
| teamId required | integer Id of the team or group |
| offset | number Skip a number of first items in the response |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "more": false,
- "athletes": [
- {
- "athleteId": 356255,
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com"
}
]
}Get all sessions of a team or group
| accountId required | string Id of the account |
| teamId required | integer Id of the team or group |
| offset | number Skip a number of first items in the response |
| fromTime | string <date-time> Limit the response to sessions that start earliest at specified time |
| toTime | string <date-time> Limit the response to sessions that start before specified time |
| type | string Limit the response to sessions of specified type, also known as title |
| sportsType | string Limit the response to measurements of specified sports. To make a single query for more than one sports, pass them as a comma-separated list. See Sports Type and Event Type for possible values. |
| eventType | string Limit the response to measurements from a specific type of event. To make a single query for more than one event type, pass them as a comma-separated list. See Sports Type and Event Type for possible values. |
| includeLaps | boolean Include laps in the response |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "more": false,
- "sessions": [
- {
- "sessionId": 41,
- "coachId": 371,
- "startTime": "2015-09-25T07:47:26Z",
- "endTime": "2015-09-25T08:33:12Z",
- "sessionType": "Morning exercise",
- "sportsType": "running",
- "eventType": "training",
- "notes": "Thirty minutes of interval training",
- "athleteIds": [
- 356361
], - "laps": [
- {
- "lapId": 864843,
- "name": "2nd interval",
- "startTime": "2015-09-25T07:50:32Z",
- "endTime": "2015-09-25T07:52:30Z",
- "athleteIds": [
- 356361
]
}
]
}
]
}Get session results
| accountId required | string Id of the account |
| teamId required | integer Id of the team/group |
| sessionId required | integer Id of the session |
| var | string Specify names of requested variables in a comma-separated string |
| format | string Enum: "binary" "list" Request time series either as binary data or JSON lists of numbers |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "measurements": [
- {
- "athleteId": 77013,
- "sessionId": 41189,
- "measurementId": 3397522,
- "startTime": "2015-09-25T07:47:26Z",
- "endTime": "2015-09-25T08:33:12Z",
- "exerciseType": "Morning exercise",
- "sportsType": "running",
- "eventType": "training",
- "notes": "Thirty minutes of interval training",
- "variables": [
- {
- "name": "energyConsumptionTotal",
- "unit": "kcal",
- "value": 49.57954406738281
}
]
}
]
}Get session lap results
| accountId required | string Id of the account |
| teamId required | integer Id of the team/group |
| sessionId required | integer Id of the session |
| lapId required | integer Id of the lap |
| var | string Specify names of requested variables in a comma-separated string |
| format | string Enum: "binary" "list" Request time series either as binary data or JSON lists of numbers |
| Authorization required | string format: Bearer YOUR_TOKEN |
| x-api-key required | string API key received from /account/api-key endpoint |
{- "measurements": [
- {
- "sessionId": 41189,
- "lapId": 864843,
- "athleteId": 77013,
- "measurementId": 3397522,
- "name": "2nd interval",
- "startTime": "2015-09-25T07:50:32Z",
- "endTime": "2015-09-25T07:52:30Z",
- "exerciseType": "Morning exercise",
- "sportsType": "running",
- "eventType": "training",
- "notes": "Thirty minutes of interval training",
- "variables": [
- {
- "name": "energyConsumptionTotal",
- "unit": "kcal",
- "value": 49.57954406738281
}
]
}
]
}