Browse API Reference

Get an exercise

Return one exercise record with its muscles, equipment ids, and the image templates for its illustration.

Read a single record by its id when your application has stored one, or take records from the collection and skip the extra request.

GET https://api.gymassets.dev/v1/exercises/{id}
cURL
curl 'https://api.gymassets.dev/v1/exercises/myfv' \
  -H "Authorization: Bearer $GA_SECRET_KEY"
Response · application/json 200
{
  "id": "myfv",
  "slug": "standing-curl-with-barbell",
  "name": "curl with barbell",
  "category": "strength",
  "difficulty": "beginner",
  "posture": "standing",
  "movement": "biceps-curl",
  "grip": "underhand",
  "muscles": { "primary": ["biceps"], "secondary": ["forearms"] },
  "equipment": ["barbell"],
  "frames": [
    {
      "frame": "start",
      "figure": "male",
      "image": "https://cdn.gymassets.dev/v1/{publishableKey}/exercises/myfv/male/start.webp",
      "maskPrimary": "https://cdn.gymassets.dev/v1/{publishableKey}/exercises/myfv/male/start-mask-primary.png",
      "maskSecondary": "https://cdn.gymassets.dev/v1/{publishableKey}/exercises/myfv/male/start-mask-secondary.png"
    }
  ]
}

An unknown id returns 404.

Response fields

FieldContents
idThe record’s identity and its art address. Four characters, permanent. Store this
slugA readable name for the record. It may change; it never appears in an address
nameDisplay name
category, difficulty, posture, movement, gripClassification ids, each from its vocabulary
descriptionProse description of the movement
musclesTwo arrays, primary and secondary — the two parameters a muscle diagram render takes
equipmentEquipment ids, resolvable against the Equipment API
framesOne entry per published illustration frame, with ready image templates

category, difficulty, posture, movement, grip, and description are omitted when no value is established. They are never returned as null.

frames lists published drawings only, and is an empty array when none exist yet. Replace {publishableKey} in its templates with the publishable half of your key. maskSecondary is present only when the record lists secondary muscles.