curl -X GET "https://api.fitsociety.io/public/v1/workout/image-library" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/image-library', 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/image-library"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"images": [
{
"imageId": "66f7b8b1e13c8d25f4d3d90a",
"url": "https://example.com",
"title": "string",
"alt": "string",
"categoryId": "66f7b8b1e13c8d25f4d3d90a",
"categoryTitle": "string",
"libraryId": "66f7b8b1e13c8d25f4d3d90a",
"libraryTitle": "string",
"source": {
"provider": "upload",
"externalId": "66f7b8b1e13c8d25f4d3d90a",
"pageUrl": "https://example.com",
"photographerName": "Example name",
"photographerUrl": "https://example.com"
}
}
],
"categories": [
{
"_id": "66f7b8b1e13c8d25f4d3d90a",
"title": "string",
"imageCount": 1
}
],
"pagination": {
"page": 1,
"limit": 25,
"totalPages": 5,
"totalItems": 100,
"hasNextPage": true,
"hasPreviousPage": false,
"nextPage": 2,
"previousPage": null
},
"attribution": {
"provider": "Pexels",
"label": "Photos provided by Pexels",
"url": "https://www.pexels.com"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}List coach-selectable image library assets
Returns active admin-managed image library assets that coaches can select for workout templates. Pexels source metadata is included when available so UI surfaces can show attribution.
Requires the workout_library:read scope. This operation maps to /app/v1/workout/image-library and retains its Workout V2 permission, feature-flag, and resource-scope checks.
The clientId path parameter is resolved inside the company bound to the Public API token when present.
curl -X GET "https://api.fitsociety.io/public/v1/workout/image-library" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/image-library', 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/image-library"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"images": [
{
"imageId": "66f7b8b1e13c8d25f4d3d90a",
"url": "https://example.com",
"title": "string",
"alt": "string",
"categoryId": "66f7b8b1e13c8d25f4d3d90a",
"categoryTitle": "string",
"libraryId": "66f7b8b1e13c8d25f4d3d90a",
"libraryTitle": "string",
"source": {
"provider": "upload",
"externalId": "66f7b8b1e13c8d25f4d3d90a",
"pageUrl": "https://example.com",
"photographerName": "Example name",
"photographerUrl": "https://example.com"
}
}
],
"categories": [
{
"_id": "66f7b8b1e13c8d25f4d3d90a",
"title": "string",
"imageCount": 1
}
],
"pagination": {
"page": 1,
"limit": 25,
"totalPages": 5,
"totalItems": 100,
"hasNextPage": true,
"hasPreviousPage": false,
"nextPage": 2,
"previousPage": null
},
"attribution": {
"provider": "Pexels",
"label": "Photos provided by Pexels",
"url": "https://www.pexels.com"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}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.
Query Parameters
x <= 80Searches image title, alt text, category, and library title.
Filter images by stored dimensions. Images without width/height metadata are excluded when this filter is set.
landscape, portrait, square newest, oldest, a-z