{
  "openapi": "3.1.2",
  "info": {
    "title": "MoveKit API",
    "version": "1.1.0",
    "summary": "Exercise metadata and downloads for apps built with MoveKit.",
    "description": "With no API key, a request is answered as the sample account. A key comes with any MoveKit purchase. Use developer tooling to import files at build time; the shipped app must never call the API at runtime. Keep the key in your tooling environment. About 120 requests a minute are available per account. Each version of a file can be downloaded 20 times a month; new versions start again. Download links work for 300 seconds and allow 16 requests. Store files by asset id, version and sha256.",
    "license": {
      "name": "MoveKit Commercial License (existing purchases apply; the API adds no new content rights)",
      "url": "https://movekit.com/license"
    }
  },
  "servers": [
    {
      "url": "https://api.movekit.com/v1",
      "description": "Control plane (MOVEKIT_API_BASE_URL). Paths below are relative to this URL."
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Exercises",
      "description": "Browse exercises and read owned metadata."
    },
    {
      "name": "Taxonomies",
      "description": "Find accepted exercise filter values."
    },
    {
      "name": "Deliveries",
      "description": "Create download links and import owned files."
    },
    {
      "name": "Account",
      "description": "Read purchase rights and request and download limits."
    }
  ],
  "paths": {
    "/exercises": {
      "x-plane": "control",
      "get": {
        "operationId": "listExercises",
        "tags": [
          "Exercises"
        ],
        "summary": "List exercises",
        "description": "Lists published exercises with cursor pagination. Owned exercises include full metadata; access=all also returns locked exercises with previews and purchase links. Search results are ranked best first.",
        "x-movekit-requires": "none",
        "x-movekit-notes": [
          "With no key, the sample exercises are the owned ones."
        ],
        "security": [
          {},
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Every word must appear in the name, other names, tags, muscles or equipment. Results are ranked best first. One typo per word is forgiven when nothing matches exactly.",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "squat"
          },
          {
            "name": "muscle",
            "in": "query",
            "description": "One primary muscle from GET /v1/taxonomies, in any case. Common names such as quads also work.",
            "schema": {
              "type": "string",
              "enum": [
                "Adductors",
                "Back",
                "Biceps",
                "Calves",
                "Chest",
                "Core",
                "Forearms",
                "Glutes",
                "Hamstrings",
                "Lower Back",
                "Neck",
                "Quadriceps",
                "Shoulders",
                "Tibialis",
                "Trapezius",
                "Triceps"
              ]
            },
            "example": "Quadriceps"
          },
          {
            "name": "equipment",
            "in": "query",
            "description": "One equipment value from GET /v1/taxonomies, in any case. Common names such as db also work.",
            "schema": {
              "type": "string",
              "enum": [
                "Backpack",
                "Band",
                "Barbell",
                "Battle Ropes",
                "Bench",
                "Bicycle",
                "Bodyweight",
                "Box",
                "Cable Machine",
                "Chair",
                "Dip Bars",
                "Dowel",
                "Dumbbell",
                "Foam Roller",
                "Kettlebell",
                "Landmine",
                "Machine",
                "Medicine Ball",
                "Pole",
                "Pull-up Bar",
                "Sled",
                "Slider",
                "Squat Rack",
                "Stability Ball",
                "TRX",
                "Towel",
                "Wall",
                "Weight Plate",
                "Wrist Roller"
              ]
            },
            "example": "Barbell"
          },
          {
            "name": "difficulty",
            "in": "query",
            "description": "One exact difficulty from GET /v1/taxonomies.",
            "schema": {
              "type": "string"
            },
            "example": "beginner"
          },
          {
            "name": "pattern",
            "in": "query",
            "description": "One exact movement pattern from GET /v1/taxonomies.",
            "schema": {
              "type": "string"
            },
            "example": "Pull"
          },
          {
            "name": "access",
            "in": "query",
            "description": "licensed (default): owned exercises only. all: also locked summaries of everything else, with preview and purchase links.",
            "schema": {
              "type": "string",
              "enum": [
                "licensed",
                "all"
              ],
              "default": "licensed"
            },
            "example": "all"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Page size.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 100
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "page.nextCursor from the previous response. Every other parameter must be identical.",
            "schema": {
              "type": "string"
            },
            "example": "eyJraW5kIjoiY3Vyc29yIiwib2Zmc2V0IjoyfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA"
          },
          {
            "name": "updatedSince",
            "in": "query",
            "description": "RFC 3339 timestamp; returns exercises whose media changed after it. Not a deletion feed and not a purchase feed: an exercise bought after that time keeps its older updatedAt and is left out.",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "example": "2026-09-01T00:00:00Z"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of exercises: owned ones in full, and locked summaries when access=all.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExerciseListResponse"
                },
                "example": {
                  "data": [
                    {
                      "aliases": [
                        "Back Squat",
                        "BB Squat",
                        "Barbell Back Squat"
                      ],
                      "implementsNeeded": null,
                      "secondaryMuscles": [
                        "Glutes",
                        "Hamstrings"
                      ],
                      "movementPattern": [
                        "Squat"
                      ],
                      "difficulty": "intermediate",
                      "durationSeconds": 7.73,
                      "preview": {
                        "videoUrl": "https://movekit.com/media/exercises/barbell-squat/video.mp4",
                        "posterUrl": "https://movekit.com/media/exercises/barbell-squat/poster.webp"
                      },
                      "id": "38",
                      "slug": "barbell-squat",
                      "name": "Barbell Squat",
                      "primaryMuscles": [
                        "Quadriceps"
                      ],
                      "equipment": [
                        "Barbell"
                      ],
                      "access": "locked",
                      "purchase": {
                        "exerciseUrl": "https://movekit.com/exercises/barbell-squat",
                        "packs": [
                          {
                            "id": "pack-12",
                            "name": "Complete Pack",
                            "url": "https://movekit.com/packs#complete-exercise-library"
                          },
                          {
                            "id": "pack-11",
                            "name": "Gym Pack",
                            "url": "https://movekit.com/packs#gym-app-library"
                          }
                        ]
                      }
                    },
                    {
                      "aliases": [
                        "Standing Cable Row",
                        "Standing Neutral-Grip Cable Row",
                        "Standing Dual-Handle Cable Row",
                        "Two-Handle Standing Cable Row"
                      ],
                      "implementsNeeded": null,
                      "secondaryMuscles": [
                        "Biceps"
                      ],
                      "movementPattern": [
                        "Pull"
                      ],
                      "difficulty": "beginner",
                      "durationSeconds": 5.8,
                      "preview": {
                        "videoUrl": "https://movekit.com/media/exercises/cable-row-bar-standing-row/video.mp4",
                        "posterUrl": "https://movekit.com/media/exercises/cable-row-bar-standing-row/poster.webp"
                      },
                      "id": "75",
                      "slug": "cable-row-bar-standing-row",
                      "name": "Cable Row Bar Standing Row",
                      "primaryMuscles": [
                        "Back"
                      ],
                      "equipment": [
                        "Cable Machine"
                      ],
                      "access": "licensed",
                      "introducedAt": "2026-04-16T17:10:13.152Z",
                      "updatedAt": "2026-10-04T19:56:58.073Z",
                      "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                      "description": "A standing cable row using a paired neutral-grip handle to pull toward the torso while the feet stay planted.",
                      "instructions": [
                        "Attach a paired neutral-grip row handle and set the pulley so the cable runs toward your mid-torso.",
                        "Hold the upright grips with your palms facing each other and step back until the cable is taut.",
                        "Stand with both feet planted and brace your trunk.",
                        "Pull the handle toward your torso, moving your elbows back alongside your body.",
                        "Return the handle smoothly as your arms extend.",
                        "Repeat while keeping your stance steady and avoiding a large backward lean."
                      ],
                      "commonMistakes": [
                        "Leaning far backward to move the handle.",
                        "Shrugging the shoulders throughout the pull.",
                        "Letting the cable pull the arms forward abruptly.",
                        "Changing the grip or attachment so the setup no longer matches the demonstration."
                      ],
                      "assets": [
                        {
                          "id": "ex75-video",
                          "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                          "sha256": "d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109",
                          "bytes": 1843302,
                          "mediaType": "video/mp4"
                        },
                        {
                          "id": "ex75-poster",
                          "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                          "sha256": "4971144f130907a9eb898ef7b10109b60f4c572c40e41358a053dba24836d0f4",
                          "bytes": 321332,
                          "mediaType": "image/webp"
                        }
                      ]
                    }
                  ],
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
                  },
                  "page": {
                    "limit": 2,
                    "nextCursor": "eyJraW5kIjoiY3Vyc29yIiwib2Zmc2V0IjoyfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA",
                    "hasMore": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or cursor.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_request",
                    "message": "limit must be an integer from 1 to 100.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Correct the request using the OpenAPI document."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_request",
              "cursor_invalid"
            ]
          },
          "401": {
            "description": "The key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The API key is invalid or revoked.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use a valid live API key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key",
              "authentication_required"
            ]
          },
          "403": {
            "description": "A purchase or ownership of the requested exercise is required.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "purchase_required",
                    "message": "API access comes with any MoveKit purchase. This account has no completed order yet.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Buy any MoveKit pack or exercise at https://movekit.com/packs. API access starts as soon as the order completes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "purchase_required"
            ]
          },
          "404": {
            "description": "The route or exercise was not found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Route not found.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for supported routes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "not_found"
            ]
          },
          "405": {
            "description": "Use a supported HTTP method.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for the supported method."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "About 120 requests a minute per account. Wait for Retry-After before retrying.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "The tenant request rate is exhausted.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Wait for Retry-After, then retry with jitter."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "rate_limit_exceeded"
            ]
          },
          "500": {
            "description": "Unexpected failure. Contact support with requestId if it persists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The request could not be completed.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Retry once with jitter; if it persists contact support with the request id."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Temporarily unavailable. Retry later.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "api_disabled",
                    "message": "The API is temporarily disabled.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry later. Purchases-page downloads remain available."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      }
    },
    "/exercises/{id}": {
      "x-plane": "control",
      "get": {
        "operationId": "getExercise",
        "tags": [
          "Exercises"
        ],
        "summary": "Get an exercise",
        "description": "Returns full metadata and asset details for one owned exercise, by id or slug. An exercise the account does not own returns asset_not_licensed with purchase links.",
        "x-movekit-requires": "owned-asset",
        "x-movekit-notes": [
          "With no key, the sample exercises are the owned ones."
        ],
        "security": [
          {},
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ExerciseId"
          }
        ],
        "responses": {
          "200": {
            "description": "The owned exercise.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExerciseResponse"
                },
                "example": {
                  "data": {
                    "aliases": [
                      "Standing Cable Row",
                      "Standing Neutral-Grip Cable Row",
                      "Standing Dual-Handle Cable Row",
                      "Two-Handle Standing Cable Row"
                    ],
                    "implementsNeeded": null,
                    "secondaryMuscles": [
                      "Biceps"
                    ],
                    "movementPattern": [
                      "Pull"
                    ],
                    "difficulty": "beginner",
                    "durationSeconds": 5.8,
                    "preview": {
                      "videoUrl": "https://movekit.com/media/exercises/cable-row-bar-standing-row/video.mp4",
                      "posterUrl": "https://movekit.com/media/exercises/cable-row-bar-standing-row/poster.webp"
                    },
                    "id": "75",
                    "slug": "cable-row-bar-standing-row",
                    "name": "Cable Row Bar Standing Row",
                    "primaryMuscles": [
                      "Back"
                    ],
                    "equipment": [
                      "Cable Machine"
                    ],
                    "access": "licensed",
                    "introducedAt": "2026-04-16T17:10:13.152Z",
                    "updatedAt": "2026-10-04T19:56:58.073Z",
                    "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                    "description": "A standing cable row using a paired neutral-grip handle to pull toward the torso while the feet stay planted.",
                    "instructions": [
                      "Attach a paired neutral-grip row handle and set the pulley so the cable runs toward your mid-torso.",
                      "Hold the upright grips with your palms facing each other and step back until the cable is taut.",
                      "Stand with both feet planted and brace your trunk.",
                      "Pull the handle toward your torso, moving your elbows back alongside your body.",
                      "Return the handle smoothly as your arms extend.",
                      "Repeat while keeping your stance steady and avoiding a large backward lean."
                    ],
                    "commonMistakes": [
                      "Leaning far backward to move the handle.",
                      "Shrugging the shoulders throughout the pull.",
                      "Letting the cable pull the arms forward abruptly.",
                      "Changing the grip or attachment so the setup no longer matches the demonstration."
                    ],
                    "assets": [
                      {
                        "id": "ex75-video",
                        "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                        "sha256": "d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109",
                        "bytes": 1843302,
                        "mediaType": "video/mp4"
                      },
                      {
                        "id": "ex75-poster",
                        "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                        "sha256": "4971144f130907a9eb898ef7b10109b60f4c572c40e41358a053dba24836d0f4",
                        "bytes": 321332,
                        "mediaType": "image/webp"
                      }
                    ]
                  },
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or cursor.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_request",
                    "message": "Unsupported or repeated query parameter.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Correct the request using the OpenAPI document."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_request"
            ]
          },
          "401": {
            "description": "The key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The API key is invalid or revoked.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use a valid live API key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key",
              "authentication_required"
            ]
          },
          "403": {
            "description": "A purchase or ownership of the requested exercise is required.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "asset_not_licensed",
                    "message": "Your pack license does not include this exercise.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use an owned exercise, or buy this one: error.purchase lists its public page and the packs that contain it.",
                    "purchase": {
                      "exerciseUrl": "https://movekit.com/exercises/barbell-squat",
                      "packs": [
                        {
                          "id": "pack-12",
                          "name": "Complete Pack",
                          "url": "https://movekit.com/packs#complete-exercise-library"
                        },
                        {
                          "id": "pack-11",
                          "name": "Gym Pack",
                          "url": "https://movekit.com/packs#gym-app-library"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_not_licensed",
              "purchase_required"
            ]
          },
          "404": {
            "description": "The route or exercise was not found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Exercise not found.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Choose an exercise ID from the catalog."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "not_found"
            ]
          },
          "405": {
            "description": "Use a supported HTTP method.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for the supported method."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "About 120 requests a minute per account. Wait for Retry-After before retrying.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "The tenant request rate is exhausted.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Wait for Retry-After, then retry with jitter."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "rate_limit_exceeded"
            ]
          },
          "500": {
            "description": "Unexpected failure. Contact support with requestId if it persists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The request could not be completed.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Retry once with jitter; if it persists contact support with the request id."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Temporarily unavailable. Retry later.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "api_disabled",
                    "message": "The API is temporarily disabled.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry later. Purchases-page downloads remain available."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      }
    },
    "/taxonomies": {
      "x-plane": "control",
      "get": {
        "operationId": "getTaxonomies",
        "tags": [
          "Taxonomies"
        ],
        "summary": "List taxonomies",
        "description": "Returns the muscle, equipment, difficulty and movement pattern values accepted by the exercise filters.",
        "x-movekit-requires": "none",
        "security": [
          {},
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Every filter value of the published catalog.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxonomiesResponse"
                },
                "example": {
                  "data": {
                    "muscles": [
                      "Adductors",
                      "Back",
                      "Biceps",
                      "Calves",
                      "Chest",
                      "Core",
                      "Forearms",
                      "Glutes",
                      "Hamstrings",
                      "Lower Back",
                      "Neck",
                      "Quadriceps",
                      "Shoulders",
                      "Tibialis",
                      "Trapezius",
                      "Triceps"
                    ],
                    "equipment": [
                      "Backpack",
                      "Band",
                      "Barbell",
                      "Battle Ropes",
                      "Bench",
                      "Bicycle",
                      "Bodyweight",
                      "Box",
                      "Cable Machine",
                      "Chair",
                      "Dip Bars",
                      "Dowel",
                      "Dumbbell",
                      "Foam Roller",
                      "Kettlebell",
                      "Landmine",
                      "Machine",
                      "Medicine Ball",
                      "Pole",
                      "Pull-up Bar",
                      "Sled",
                      "Slider",
                      "Squat Rack",
                      "Stability Ball",
                      "TRX",
                      "Towel",
                      "Wall",
                      "Weight Plate",
                      "Wrist Roller"
                    ],
                    "difficulties": [
                      "advanced",
                      "beginner",
                      "intermediate"
                    ],
                    "patterns": [
                      "Cardio",
                      "Carry",
                      "Core",
                      "Hinge",
                      "Hip Abduction",
                      "Isolation",
                      "Lunge",
                      "Mobility",
                      "Plyometric",
                      "Pull",
                      "Push",
                      "Rotation",
                      "Squat",
                      "Stretch"
                    ]
                  },
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or cursor.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_request",
                    "message": "Unsupported or repeated query parameter.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Correct the request using the OpenAPI document."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_request"
            ]
          },
          "401": {
            "description": "The key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The API key is invalid or revoked.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use a valid live API key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key",
              "authentication_required"
            ]
          },
          "403": {
            "description": "A purchase or ownership of the requested exercise is required.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "purchase_required",
                    "message": "API access comes with any MoveKit purchase. This account has no completed order yet.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Buy any MoveKit pack or exercise at https://movekit.com/packs. API access starts as soon as the order completes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "purchase_required"
            ]
          },
          "404": {
            "description": "The route or exercise was not found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Route not found.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for supported routes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "not_found"
            ]
          },
          "405": {
            "description": "Use a supported HTTP method.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for the supported method."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "About 120 requests a minute per account. Wait for Retry-After before retrying.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "The tenant request rate is exhausted.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Wait for Retry-After, then retry with jitter."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "rate_limit_exceeded"
            ]
          },
          "500": {
            "description": "Unexpected failure. Contact support with requestId if it persists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The request could not be completed.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Retry once with jitter; if it persists contact support with the request id."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Temporarily unavailable. Retry later.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "api_disabled",
                    "message": "The API is temporarily disabled.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry later. Purchases-page downloads remain available."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      }
    },
    "/entitlements": {
      "x-plane": "control",
      "get": {
        "operationId": "getEntitlements",
        "tags": [
          "Account"
        ],
        "summary": "Get entitlements",
        "description": "Returns the account, its purchase rights, licensed exercise ids and where to buy more. With no key, it describes the sample account.",
        "x-movekit-requires": "none",
        "security": [
          {},
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Purchase rights and where to buy more.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntitlementsResponse"
                },
                "example": {
                  "data": {
                    "tenantId": "kXQ3fVb9TzN1mPq8rL2sW5yH7cJ4",
                    "grants": [
                      {
                        "type": "exercise",
                        "exerciseId": "75",
                        "policy": "legacy",
                        "updateWindowEndsAt": null
                      }
                    ],
                    "licensedExerciseIds": [
                      "75"
                    ],
                    "upgrade": {
                      "packsUrl": "https://movekit.com/packs"
                    }
                  },
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or cursor.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_request",
                    "message": "Unsupported or repeated query parameter.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Correct the request using the OpenAPI document."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_request"
            ]
          },
          "401": {
            "description": "The key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The API key is invalid or revoked.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use a valid live API key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key",
              "authentication_required"
            ]
          },
          "403": {
            "description": "A purchase or ownership of the requested exercise is required.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "purchase_required",
                    "message": "API access comes with any MoveKit purchase. This account has no completed order yet.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Buy any MoveKit pack or exercise at https://movekit.com/packs. API access starts as soon as the order completes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "purchase_required"
            ]
          },
          "404": {
            "description": "The route or exercise was not found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Route not found.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for supported routes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "not_found"
            ]
          },
          "405": {
            "description": "Use a supported HTTP method.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for the supported method."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "About 120 requests a minute per account. Wait for Retry-After before retrying.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "The tenant request rate is exhausted.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Wait for Retry-After, then retry with jitter."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "rate_limit_exceeded"
            ]
          },
          "500": {
            "description": "Unexpected failure. Contact support with requestId if it persists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The request could not be completed.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Retry once with jitter; if it persists contact support with the request id."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Temporarily unavailable. Retry later.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "api_disabled",
                    "message": "The API is temporarily disabled.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry later. Purchases-page downloads remain available."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      }
    },
    "/usage": {
      "x-plane": "control",
      "get": {
        "operationId": "getUsage",
        "tags": [
          "Account"
        ],
        "summary": "Get usage",
        "description": "Returns the request rate limit and download limits for the account.",
        "x-movekit-requires": "purchase",
        "responses": {
          "200": {
            "description": "Request and download limits.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageResponse"
                },
                "example": {
                  "data": {
                    "rateLimit": {
                      "limit": 120,
                      "windowSeconds": 60
                    },
                    "downloads": {
                      "perFileVersion": 20,
                      "requestsPerLink": 16
                    }
                  },
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or cursor.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_request",
                    "message": "Unsupported or repeated query parameter.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Correct the request using the OpenAPI document."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_request"
            ]
          },
          "401": {
            "description": "The key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The API key is invalid or revoked.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use a valid live API key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key",
              "authentication_required"
            ]
          },
          "403": {
            "description": "A purchase or ownership of the requested exercise is required.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "purchase_required",
                    "message": "API access comes with any MoveKit purchase. This account has no completed order yet.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Buy any MoveKit pack or exercise at https://movekit.com/packs. API access starts as soon as the order completes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "purchase_required"
            ]
          },
          "404": {
            "description": "The route or exercise was not found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Route not found.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for supported routes."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "not_found"
            ]
          },
          "405": {
            "description": "Use a supported HTTP method.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for the supported method."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "About 120 requests a minute per account. Wait for Retry-After before retrying.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "The tenant request rate is exhausted.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Wait for Retry-After, then retry with jitter."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "rate_limit_exceeded"
            ]
          },
          "500": {
            "description": "Unexpected failure. Contact support with requestId if it persists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The request could not be completed.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Retry once with jitter; if it persists contact support with the request id."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Temporarily unavailable. Retry later.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "api_disabled",
                    "message": "The API is temporarily disabled.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry later. Purchases-page downloads remain available."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      }
    },
    "/deliveries": {
      "x-plane": "control",
      "post": {
        "operationId": "createDeliveries",
        "tags": [
          "Deliveries"
        ],
        "summary": "Create deliveries",
        "description": "Creates download links for owned videos and posters in request order. The whole request fails if any asset is unknown, unowned or unavailable.",
        "x-movekit-requires": "owned-asset",
        "x-movekit-notes": [
          "With no key, the sample exercises are the owned ones."
        ],
        "security": [
          {},
          {
            "ApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Owned asset ids, videos and posters alike.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchDeliveryRequest"
              },
              "example": {
                "assetIds": [
                  "ex75-video",
                  "ex75-poster"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "One download link per asset id, in request order.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryListResponse"
                },
                "example": {
                  "data": [
                    {
                      "id": "grant_69e604c7-2f38-485c-89b3-24d61ab2af0e",
                      "assetId": "ex75-video",
                      "exerciseId": "75",
                      "purpose": "sync",
                      "url": "https://media.movekit.com/media/grant_69e604c7-2f38-485c-89b3-24d61ab2af0e?t=eyJnIjoiZ3JhbnRfNjllNjA0YzcifQ.Lqvtn5kUEJG22znYCC-jXAWyPJMsAP1Po2eNG279Yp",
                      "expiresAt": "2026-10-04T09:17:44.000Z",
                      "mediaType": "video/mp4",
                      "bytes": 1843302,
                      "sha256": "d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109",
                      "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d"
                    },
                    {
                      "id": "grant_0b9f2d61-7c4e-4a85-b3d2-9e1f6a7c8d40",
                      "assetId": "ex75-poster",
                      "exerciseId": "75",
                      "purpose": "sync",
                      "url": "https://media.movekit.com/media/grant_0b9f2d61-7c4e-4a85-b3d2-9e1f6a7c8d40?t=eyJnIjoiZ3JhbnRfNjllNjA0YzcifQ.Lqvtn5kUEJG22znYCC-jXAWyPJMsAP1Po2eNG279Yp",
                      "expiresAt": "2026-10-04T09:17:44.000Z",
                      "mediaType": "image/webp",
                      "bytes": 321332,
                      "sha256": "4971144f130907a9eb898ef7b10109b60f4c572c40e41358a053dba24836d0f4",
                      "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d"
                    }
                  ],
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or cursor.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_request",
                    "message": "assetIds must be an array of 1 to 50 asset ids.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Correct the request using the OpenAPI document."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_request"
            ]
          },
          "401": {
            "description": "The key sent is not a live API key, or this route needs one. A request with no Authorization header is answered as the sample account where the route allows it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The API key is invalid or revoked.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use a valid live API key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key",
              "authentication_required"
            ]
          },
          "403": {
            "description": "A purchase or ownership of the requested exercise is required.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "asset_not_licensed",
                    "message": "Your pack license does not include asset ex38-video; no download link was issued.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use an owned exercise, or buy this one: error.purchase lists its public page and the packs that contain it.",
                    "purchase": {
                      "exerciseUrl": "https://movekit.com/exercises/barbell-squat",
                      "packs": [
                        {
                          "id": "pack-12",
                          "name": "Complete Pack",
                          "url": "https://movekit.com/packs#complete-exercise-library"
                        },
                        {
                          "id": "pack-11",
                          "name": "Gym Pack",
                          "url": "https://movekit.com/packs#gym-app-library"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_not_licensed",
              "purchase_required"
            ]
          },
          "404": {
            "description": "The route or exercise was not found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Asset ex999999-video not found.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Use an asset ID from licensed exercise details."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "not_found"
            ]
          },
          "405": {
            "description": "Use a supported HTTP method.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Read the OpenAPI document for the supported method."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "413": {
            "description": "The JSON body is too large.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "payload_too_large",
                    "message": "Request exceeds 16 KiB.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Send a smaller JSON request."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "payload_too_large"
            ]
          },
          "415": {
            "description": "Send application/json.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unsupported_media_type",
                    "message": "Send application/json.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Set Content-Type: application/json."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "unsupported_media_type"
            ]
          },
          "429": {
            "description": "About 120 requests a minute per account; wait for Retry-After before retrying. Without a key, sample_busy means the keyless sample is used up for today: send a key, or try again after 00:00 UTC. link_limit_exceeded means one file had its 200 download links for today: request the others without error.assetId, and that one after 00:00 UTC.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "The tenant request rate is exhausted.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Wait for Retry-After, then retry with jitter."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "rate_limit_exceeded",
              "sample_busy",
              "link_limit_exceeded"
            ]
          },
          "500": {
            "description": "Unexpected failure. Contact support with requestId if it persists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The request could not be completed.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Retry once with jitter; if it persists contact support with the request id."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Temporarily unavailable. Retry later.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "asset_not_available",
                    "message": "Asset ex75-video is not available for API delivery yet; no download link was issued.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry later or use the purchases-page download. Your rights are unaffected."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_not_available",
              "delivery_unavailable",
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      }
    },
    "/media/{grantId}": {
      "x-plane": "delivery",
      "servers": [
        {
          "url": "{DELIVERY_WORKER_URL}",
          "description": "The delivery host. Use the full URL from createDeliveries.",
          "variables": {
            "DELIVERY_WORKER_URL": {
              "default": "https://delivery.example.invalid",
              "description": "Origin of the url returned by createDeliveries."
            }
          }
        }
      ],
      "get": {
        "operationId": "getMedia",
        "tags": [
          "Deliveries"
        ],
        "summary": "Download a delivered file",
        "description": "Downloads the file named by a valid download link, with single byte ranges so downloads resume. Each link allows 16 requests.",
        "x-movekit-requires": "owned-asset",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/GrantId"
          },
          {
            "$ref": "#/components/parameters/DeliveryToken"
          },
          {
            "$ref": "#/components/parameters/Range"
          },
          {
            "$ref": "#/components/parameters/IfRange"
          }
        ],
        "responses": {
          "200": {
            "description": "The full file named by the download link. Cache-Control: private, no-store; Content-Disposition: attachment. Binary body; the headers carry the examples.",
            "headers": {
              "Accept-Ranges": {
                "$ref": "#/components/headers/Accept-Ranges"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            },
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "video/mp4"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/jpeg"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/webp"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/png"
                }
              }
            }
          },
          "206": {
            "description": "The requested byte range.",
            "headers": {
              "Accept-Ranges": {
                "$ref": "#/components/headers/Accept-Ranges"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Content-Range": {
                "$ref": "#/components/headers/Content-Range"
              }
            },
            "content": {
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "video/mp4"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/jpeg"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/webp"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/png"
                }
              }
            }
          },
          "400": {
            "description": "The token failed verification, or the request was malformed.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "delivery_invalid",
                    "message": "The delivery token is invalid.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery from the MoveKit API with an authorized key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "delivery_invalid"
            ]
          },
          "401": {
            "description": "The key that issued the download link was revoked.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The issuing key was revoked.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Use a valid key to request a fresh delivery."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key"
            ]
          },
          "404": {
            "description": "Unknown route, or the asset is not available.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "asset_not_available",
                    "message": "The asset is not available for delivery.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery; if the problem persists contact MoveKit support."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_not_available",
              "not_found"
            ]
          },
          "405": {
            "description": "Only GET, HEAD and OPTIONS.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Use GET or HEAD for media."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "409": {
            "description": "The stored object does not match the download link; request a fresh download link.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "asset_mismatch",
                    "message": "The stored asset does not match the download link.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery; if the problem persists contact MoveKit support."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_mismatch"
            ]
          },
          "410": {
            "description": "Download links work for 300 seconds. Request a fresh download link afterwards.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "delivery_expired",
                    "message": "The delivery token expired.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery from the MoveKit API."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "delivery_expired"
            ]
          },
          "416": {
            "description": "Content-Range carries bytes */size.",
            "headers": {
              "Content-Range": {
                "$ref": "#/components/headers/Content-Range"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "range_not_satisfiable",
                    "message": "The requested range cannot be served.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Send one byte range inside the object size, or none."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "range_not_satisfiable"
            ]
          },
          "429": {
            "description": "A download link allows 16 requests. Each file version can be downloaded 20 times a month, then gets sync_limit_exceeded until the count starts again at 00:00 UTC on the 1st of each month; new versions start again. An account that reached its media requests for the day gets daily_request_limit until 00:00 UTC; a keyless sample link gets sample_busy when the sample is used up for the day.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "sync_limit_exceeded",
                    "message": "This version of the file reached its download limit for this month.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Use the copy you already imported until 00:00 UTC on the 1st of next month, when the limit starts again, or ask MoveKit for a reviewed reset."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "sync_limit_exceeded",
              "delivery_limit_exceeded",
              "daily_request_limit",
              "sample_busy"
            ]
          },
          "503": {
            "description": "Media delivery is disabled, paused or not configured. Retryable; nothing is charged.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "delivery_disabled",
                    "message": "Media delivery is temporarily disabled.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": true,
                    "nextAction": "Retry later. No usage is charged for refused requests."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "delivery_disabled",
              "delivery_paused_global",
              "delivery_unavailable"
            ]
          }
        }
      },
      "head": {
        "operationId": "headMedia",
        "tags": [
          "Deliveries"
        ],
        "summary": "Check a delivered file",
        "description": "Checks a download link and returns headers only. Uses one request from the link.",
        "x-movekit-requires": "owned-asset",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/GrantId"
          },
          {
            "$ref": "#/components/parameters/DeliveryToken"
          }
        ],
        "responses": {
          "200": {
            "description": "Headers only.",
            "headers": {
              "Accept-Ranges": {
                "$ref": "#/components/headers/Accept-Ranges"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "description": "The token failed verification, or the request was malformed.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "delivery_invalid",
                    "message": "The delivery token is invalid.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery from the MoveKit API with an authorized key."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "delivery_invalid"
            ]
          },
          "401": {
            "description": "The key that issued the download link was revoked.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "The issuing key was revoked.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Use a valid key to request a fresh delivery."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "invalid_api_key"
            ]
          },
          "404": {
            "description": "Unknown route, or the asset is not available.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "asset_not_available",
                    "message": "The asset is not available for delivery.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery; if the problem persists contact MoveKit support."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_not_available",
              "not_found"
            ]
          },
          "405": {
            "description": "Only GET, HEAD and OPTIONS.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "method_not_allowed",
                    "message": "This method is not supported for this route.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Use GET or HEAD for media."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "method_not_allowed"
            ]
          },
          "409": {
            "description": "The stored object does not match the download link; request a fresh download link.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "asset_mismatch",
                    "message": "The stored asset does not match the download link.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery; if the problem persists contact MoveKit support."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "asset_mismatch"
            ]
          },
          "410": {
            "description": "Download links work for 300 seconds. Request a fresh download link afterwards.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "delivery_expired",
                    "message": "The delivery token expired.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Request a fresh delivery from the MoveKit API."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "delivery_expired"
            ]
          },
          "429": {
            "description": "A download link allows 16 requests. Each file version can be downloaded 20 times a month, then gets sync_limit_exceeded until the count starts again at 00:00 UTC on the 1st of each month; new versions start again. An account that reached its media requests for the day gets daily_request_limit until 00:00 UTC; a keyless sample link gets sample_busy when the sample is used up for the day.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "sync_limit_exceeded",
                    "message": "This version of the file reached its download limit for this month.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": false,
                    "nextAction": "Use the copy you already imported until 00:00 UTC on the 1st of next month, when the limit starts again, or ask MoveKit for a reviewed reset."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "sync_limit_exceeded",
              "delivery_limit_exceeded",
              "daily_request_limit",
              "sample_busy"
            ]
          },
          "503": {
            "description": "Media delivery is disabled, paused or not configured. Retryable; nothing is charged.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryError"
                },
                "example": {
                  "error": {
                    "code": "delivery_disabled",
                    "message": "Media delivery is temporarily disabled.",
                    "requestId": "6f1d2c3b-8a9e-4f70-b5c4-2d1e0f9a8b7c",
                    "retryable": true,
                    "nextAction": "Retry later. No usage is charged for refused requests."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "delivery_disabled",
              "delivery_paused_global",
              "delivery_unavailable"
            ]
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "mk_live_ API key",
        "description": "Send Authorization: Bearer with a key from your purchases page. Keep keys in your terminal or CI, never in an app. Leave the header out to be answered as the sample account."
      }
    },
    "schemas": {
      "Meta": {
        "type": "object",
        "description": "Present on every successful response.",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Quote this id when contacting support. Also sent as the X-Request-Id header."
          },
          "catalogRevision": {
            "type": "string",
            "description": "SHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it."
          },
          "account": {
            "type": "string",
            "pattern": "^(?:sample|acct_[0-9a-f]{16})$",
            "description": "sample when the request carried no API key: it was answered as the sample account. On a page of GET /v1/exercises answered with a key, acct_ and 16 hexadecimal characters: an opaque id of the account the key belongs to, made at random the first time the account lists exercises and never changed, the same for every key of that account and on every request, so an importer can tell a key of another account. It is not the account's internal id and says nothing about it."
          },
          "sample": {
            "$ref": "#/components/schemas/SampleFacts"
          },
          "hosted": {
            "$ref": "#/components/schemas/HostedOffer"
          }
        },
        "required": [
          "requestId",
          "catalogRevision"
        ],
        "additionalProperties": false
      },
      "SampleFacts": {
        "type": "object",
        "description": "Present with account: sample. What the sample account holds and where the rest of the catalog can be bought.",
        "properties": {
          "exercises": {
            "type": "integer",
            "minimum": 0,
            "description": "Exercises the sample account owns."
          },
          "catalogueTotal": {
            "type": "integer",
            "minimum": 0,
            "description": "Published exercises in the catalog."
          },
          "packsUrl": {
            "type": "string",
            "format": "uri",
            "description": "The packs page. A key from any purchase answers with what that account owns."
          }
        },
        "required": [
          "exercises",
          "catalogueTotal",
          "packsUrl"
        ],
        "additionalProperties": false
      },
      "Page": {
        "type": "object",
        "description": "Cursor pagination. Pass nextCursor back unchanged with otherwise identical parameters until hasMore is false.",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The page size that was applied."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque, signed, bound to the key's account, the exact query and the catalog revision. Valid for 15 minutes; null on the last page."
          },
          "hasMore": {
            "type": "boolean",
            "description": "True when another page follows."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "description": "Exercises matching this query, across all pages."
          }
        },
        "required": [
          "limit",
          "nextCursor",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "Asset": {
        "type": "object",
        "description": "One deliverable media file of an owned exercise. Clips are landscape 16:9 loops: `ex<id>-video` (video/mp4) or `ex<id>-poster` (the exact first frame of the video, lossless image/webp). `id`, `version` and `sha256` are immutable: a corrected file is published under a new version.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^ex[0-9]+-(?:video|poster)$",
            "description": "Asset id; pass it to the deliveries endpoints."
          },
          "version": {
            "type": "string",
            "description": "The asset revision. Changes only when the media is corrected; it never affects ownership."
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Hex SHA-256 of the full file. Verify every import against it."
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "description": "Size of the full file in bytes."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "video/mp4",
              "image/jpeg",
              "image/webp",
              "image/png"
            ],
            "description": "video/mp4 for the video; image/jpeg, image/webp or image/png for the poster, as sniffed from its bytes."
          }
        },
        "required": [
          "id",
          "version",
          "sha256",
          "bytes",
          "mediaType"
        ],
        "additionalProperties": false
      },
      "Exercise": {
        "type": "object",
        "description": "An exercise the account owns through a completed order: full metadata and its asset descriptors.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable numeric-string exercise id. Use it as the cache key; slugs are aliases."
          },
          "slug": {
            "type": "string",
            "description": "Canonical slug. Accepted anywhere an id is accepted."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other names for the exercise."
          },
          "secondaryMuscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Supporting muscle groups."
          },
          "movementPattern": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Movement patterns from the taxonomies."
          },
          "difficulty": {
            "type": "string",
            "description": "Difficulty from the taxonomies."
          },
          "durationSeconds": {
            "type": "number",
            "minimum": 0,
            "description": "Clip length in seconds, to two decimals."
          },
          "preview": {
            "$ref": "#/components/schemas/ExercisePreview"
          },
          "primaryMuscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Primary muscle groups, as listed by GET /v1/taxonomies."
          },
          "equipment": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Equipment, as listed by GET /v1/taxonomies."
          },
          "implementsNeeded": {
            "type": [
              "integer",
              "null"
            ],
            "enum": [
              1,
              2,
              null
            ],
            "description": "How many dumbbells or kettlebells the clip uses: 2 when it needs a matched pair (one in each hand), 1 when it uses one, null when the exercise uses neither. Use it to find moves for someone who owns one of each weight."
          },
          "access": {
            "const": "licensed",
            "description": "Always licensed for an owned exercise."
          },
          "introducedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the exercise entered the catalog. Update windows are checked against this date."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the media was last corrected. Never affects ownership."
          },
          "version": {
            "type": "string",
            "description": "Current asset revision of the exercise."
          },
          "description": {
            "type": "string",
            "description": "One-paragraph description of the movement."
          },
          "instructions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Coaching steps, in order."
          },
          "commonMistakes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Mistakes to avoid."
          },
          "assets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Asset"
            },
            "maxItems": 2,
            "description": "The video, then its poster. Empty until the media has been exported for API delivery."
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "aliases",
          "primaryMuscles",
          "secondaryMuscles",
          "equipment",
          "implementsNeeded",
          "movementPattern",
          "difficulty",
          "durationSeconds",
          "preview",
          "access",
          "introducedAt",
          "updatedAt",
          "version",
          "description",
          "instructions",
          "commonMistakes",
          "assets"
        ],
        "additionalProperties": false
      },
      "ExercisePreview": {
        "type": "object",
        "description": "Permanent watermarked previews for choosing exercises only, never for shipping. URLs use https://movekit.com/media/exercises/<slug>/video.mp4 and /poster.webp.",
        "properties": {
          "videoUrl": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "description": "Public watermarked preview clip (video/mp4)."
          },
          "posterUrl": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "description": "Public poster image shown with the preview."
          }
        },
        "required": [
          "videoUrl",
          "posterUrl"
        ],
        "additionalProperties": false
      },
      "PurchasePack": {
        "type": "object",
        "description": "A pack on sale today that contains the exercise.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Purchased pack id."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "description": "The pack on the public packs page."
          }
        },
        "required": [
          "id",
          "name",
          "url"
        ],
        "additionalProperties": false
      },
      "PurchaseLinks": {
        "type": "object",
        "description": "Where to buy an exercise. Never a price: prices are adaptive per country, so link to the page that shows them.",
        "properties": {
          "exerciseUrl": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "description": "The exercise's public page, where it can be bought on its own."
          },
          "packs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchasePack"
            },
            "description": "The packs on sale that contain the exercise, in packs-page order."
          }
        },
        "required": [
          "exerciseUrl",
          "packs"
        ],
        "additionalProperties": false
      },
      "LockedExercise": {
        "type": "object",
        "description": "A published exercise the account does not own (access=all): the summary, the public preview and where to buy it. Never carries assets, dates, instructions, private URLs or prices.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable numeric-string exercise id. Use it as the cache key; slugs are aliases."
          },
          "slug": {
            "type": "string",
            "description": "Canonical slug. Accepted anywhere an id is accepted."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other names for the exercise."
          },
          "secondaryMuscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Supporting muscle groups."
          },
          "movementPattern": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Movement patterns from the taxonomies."
          },
          "difficulty": {
            "type": "string",
            "description": "Difficulty from the taxonomies."
          },
          "durationSeconds": {
            "type": "number",
            "minimum": 0,
            "description": "Clip length in seconds, to two decimals."
          },
          "preview": {
            "$ref": "#/components/schemas/ExercisePreview"
          },
          "primaryMuscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Primary muscle groups, as listed by GET /v1/taxonomies."
          },
          "equipment": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Equipment, as listed by GET /v1/taxonomies."
          },
          "implementsNeeded": {
            "type": [
              "integer",
              "null"
            ],
            "enum": [
              1,
              2,
              null
            ],
            "description": "How many dumbbells or kettlebells the clip uses: 2 when it needs a matched pair (one in each hand), 1 when it uses one, null when the exercise uses neither. Use it to find moves for someone who owns one of each weight."
          },
          "access": {
            "const": "locked",
            "description": "Always locked for an exercise the account does not own."
          },
          "purchase": {
            "$ref": "#/components/schemas/PurchaseLinks"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "aliases",
          "primaryMuscles",
          "secondaryMuscles",
          "equipment",
          "implementsNeeded",
          "movementPattern",
          "difficulty",
          "durationSeconds",
          "preview",
          "access",
          "purchase"
        ],
        "additionalProperties": false
      },
      "ExerciseListItem": {
        "description": "An owned Exercise, or a LockedExercise when access=all. Branch on `access`.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/Exercise"
          },
          {
            "$ref": "#/components/schemas/LockedExercise"
          }
        ]
      },
      "Taxonomies": {
        "type": "object",
        "description": "The exact filter values listExercises accepts.",
        "properties": {
          "muscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every primary muscle value, sorted."
          },
          "equipment": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every equipment value, sorted."
          },
          "difficulties": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every difficulty value, sorted."
          },
          "patterns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every movement pattern, sorted."
          }
        },
        "required": [
          "muscles",
          "equipment",
          "difficulties",
          "patterns"
        ],
        "additionalProperties": false
      },
      "PackOwnershipGrant": {
        "type": "object",
        "description": "A completed pack order. `windowed` rights cover exercises introduced on or before `updateWindowEndsAt`; `legacy` rights have no window.",
        "properties": {
          "type": {
            "const": "pack",
            "description": "A pack purchase."
          },
          "packId": {
            "type": "string",
            "description": "The purchased pack."
          },
          "policy": {
            "type": "string",
            "enum": [
              "windowed",
              "legacy"
            ],
            "description": "windowed: new releases until the window ends; legacy: perpetual, no window."
          },
          "updateWindowEndsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "End of the release window for windowed rights, otherwise null."
          }
        },
        "required": [
          "type",
          "packId",
          "policy",
          "updateWindowEndsAt"
        ],
        "additionalProperties": false
      },
      "ExerciseOwnershipGrant": {
        "type": "object",
        "description": "A completed individual exercise order. Always perpetual for that exercise.",
        "properties": {
          "type": {
            "const": "exercise",
            "description": "A single exercise purchase."
          },
          "exerciseId": {
            "type": "string",
            "description": "The purchased exercise."
          },
          "policy": {
            "const": "legacy",
            "description": "Always legacy: perpetual."
          },
          "updateWindowEndsAt": {
            "type": "null",
            "description": "Always null."
          }
        },
        "required": [
          "type",
          "exerciseId",
          "policy",
          "updateWindowEndsAt"
        ],
        "additionalProperties": false
      },
      "OwnershipGrant": {
        "description": "One completed order item projected into a right. Branch on `type`.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/PackOwnershipGrant"
          },
          {
            "$ref": "#/components/schemas/ExerciseOwnershipGrant"
          }
        ]
      },
      "UpgradeLinks": {
        "type": "object",
        "description": "Where to buy more. Never a price.",
        "properties": {
          "packsUrl": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "description": "The public packs page."
          }
        },
        "required": [
          "packsUrl"
        ],
        "additionalProperties": false
      },
      "Entitlements": {
        "type": "object",
        "description": "What the account owns and where to buy more.",
        "properties": {
          "tenantId": {
            "type": "string",
            "description": "The account this key belongs to, or sample when no key was sent."
          },
          "grants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OwnershipGrant"
            },
            "description": "Completed purchase rights."
          },
          "licensedExerciseIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Published exercises the account owns."
          },
          "upgrade": {
            "$ref": "#/components/schemas/UpgradeLinks"
          },
          "plan": {
            "$ref": "#/components/schemas/HostedPlan"
          }
        },
        "required": [
          "tenantId",
          "grants",
          "licensedExerciseIds",
          "upgrade"
        ],
        "additionalProperties": false
      },
      "Usage": {
        "type": "object",
        "description": "About 120 requests a minute per account. Each version of a file can be downloaded 20 times a month, and the count starts again at 00:00 UTC on the 1st of each month; new versions start again.",
        "properties": {
          "rateLimit": {
            "type": "object",
            "properties": {
              "limit": {
                "const": 120,
                "description": "Requests per account per minute."
              },
              "windowSeconds": {
                "const": 60,
                "description": "Rate window in seconds."
              }
            },
            "required": [
              "limit",
              "windowSeconds"
            ],
            "additionalProperties": false
          },
          "downloads": {
            "type": "object",
            "properties": {
              "perFileVersion": {
                "const": 20,
                "description": "Downloads per version of each file a month; the count starts again at 00:00 UTC on the 1st of each month."
              },
              "requestsPerLink": {
                "const": 16,
                "description": "Requests per download link, including resumes and HEAD."
              }
            },
            "required": [
              "perFileVersion",
              "requestsPerLink"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "rateLimit",
          "downloads"
        ],
        "additionalProperties": false
      },
      "Delivery": {
        "type": "object",
        "description": "A short-lived download link. `url` has the form {DELIVERY_WORKER_URL}/media/{grantId}?t={token}; it is the authorization, so never send the API key to it and never log or share it.",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^grant_",
            "description": "Download link id."
          },
          "assetId": {
            "type": "string",
            "pattern": "^ex[0-9]+-(?:video|poster)$",
            "description": "The asset to download."
          },
          "exerciseId": {
            "type": "string",
            "description": "The exercise the asset belongs to."
          },
          "purpose": {
            "const": "sync",
            "description": "Always sync: an import into your own storage."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The media URL on the delivery host. Supports GET and HEAD with single byte ranges."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "300 seconds after issue. Request a new download link afterwards."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "video/mp4",
              "image/jpeg",
              "image/webp",
              "image/png"
            ],
            "description": "The file's media type."
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "description": "Size of the full file in bytes."
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Verify the downloaded file against it."
          },
          "version": {
            "type": "string",
            "description": "The asset revision served."
          }
        },
        "required": [
          "id",
          "assetId",
          "exerciseId",
          "purpose",
          "url",
          "expiresAt",
          "mediaType",
          "bytes",
          "sha256",
          "version"
        ],
        "additionalProperties": false
      },
      "BatchDeliveryRequest": {
        "type": "object",
        "description": "Body of createDeliveries.",
        "properties": {
          "assetIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^ex[0-9]+-(?:video|poster)$"
            },
            "minItems": 1,
            "maxItems": 50,
            "uniqueItems": true,
            "description": "Owned video and poster asset ids. Download links come back in this order."
          }
        },
        "required": [
          "assetIds"
        ],
        "additionalProperties": false
      },
      "ErrorCode": {
        "type": "string",
        "enum": [
          "invalid_request",
          "cursor_invalid",
          "authentication_required",
          "invalid_api_key",
          "insufficient_scope",
          "purchase_required",
          "asset_not_licensed",
          "not_found",
          "method_not_allowed",
          "payload_too_large",
          "unsupported_media_type",
          "rate_limit_exceeded",
          "sample_busy",
          "link_limit_exceeded",
          "api_unavailable",
          "api_disabled",
          "delivery_unavailable",
          "asset_not_available",
          "internal_error"
        ],
        "description": "Stable, machine-readable error code. Branch on it."
      },
      "Error": {
        "type": "object",
        "description": "Every failure. Branch on `code`; `message` and `nextAction` are for humans and may change.",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "$ref": "#/components/schemas/ErrorCode"
              },
              "message": {
                "type": "string",
                "description": "What went wrong."
              },
              "requestId": {
                "type": "string",
                "description": "Equals the X-Request-Id header. Quote it to support."
              },
              "retryable": {
                "type": "boolean",
                "description": "True when the same request may succeed later without a change. Honour Retry-After when present."
              },
              "nextAction": {
                "type": "string",
                "description": "What to do next."
              },
              "purchase": {
                "$ref": "#/components/schemas/PurchaseLinks",
                "description": "Only with asset_not_licensed: where to buy the refused exercise."
              },
              "assetId": {
                "type": "string",
                "description": "Only with link_limit_exceeded: the asset whose download links for today are used up. Request the other files without it."
              }
            },
            "required": [
              "code",
              "message",
              "requestId",
              "retryable",
              "nextAction"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "DeliveryErrorCode": {
        "type": "string",
        "enum": [
          "invalid_request",
          "delivery_invalid",
          "delivery_expired",
          "invalid_api_key",
          "not_found",
          "method_not_allowed",
          "asset_not_available",
          "asset_mismatch",
          "range_not_satisfiable",
          "delivery_limit_exceeded",
          "sync_limit_exceeded",
          "daily_request_limit",
          "sample_busy",
          "delivery_disabled",
          "delivery_paused_global",
          "delivery_unavailable"
        ],
        "description": "Error code of a delivery URL."
      },
      "DeliveryError": {
        "type": "object",
        "description": "The same envelope, returned by the delivery host on a media URL.",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "$ref": "#/components/schemas/DeliveryErrorCode"
              },
              "message": {
                "type": "string",
                "description": "What went wrong."
              },
              "requestId": {
                "type": "string",
                "description": "Correlation id of the delivery host."
              },
              "retryable": {
                "type": "boolean",
                "description": "True when the same request may succeed later."
              },
              "nextAction": {
                "type": "string",
                "description": "What to do next."
              }
            },
            "required": [
              "code",
              "message",
              "requestId",
              "retryable",
              "nextAction"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "ExerciseListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExerciseListItem"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          },
          "page": {
            "$ref": "#/components/schemas/Page"
          }
        },
        "required": [
          "data",
          "meta",
          "page"
        ],
        "additionalProperties": false
      },
      "ExerciseResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Exercise"
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "TaxonomiesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Taxonomies"
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "EntitlementsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Entitlements"
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "UsageResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Usage"
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "DeliveryListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Delivery"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "HostedOffer": {
        "type": "object",
        "description": "MoveKit Hosted in one line, for an account that does not have it, while MoveKit offers it: what it is, where the account holder turns it on and where its agent prompt is. Never sent to an account that has Hosted.",
        "properties": {
          "summary": {
            "type": "string",
            "description": "The line to show a developer who asks for clips from URLs instead of files."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The page where the account holder chooses a plan and turns Hosted on."
          },
          "promptUrl": {
            "type": "string",
            "format": "uri",
            "description": "The Hosted quickstart as Markdown, with the Hosted agent prompt."
          }
        },
        "required": [
          "summary",
          "url",
          "promptUrl"
        ],
        "additionalProperties": false
      },
      "HostedPlan": {
        "type": "object",
        "description": "Whether the account has MoveKit Hosted.",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "connect",
              "hosted"
            ],
            "description": "hosted while Hosted serves this account, else connect."
          },
          "hostedStatus": {
            "type": "string",
            "enum": [
              "active",
              "inactive",
              "cancelled"
            ],
            "description": "The Hosted subscription's state."
          },
          "currentPeriodEnd": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "While Hosted is active, the end of the month paid for; else null."
          },
          "hostedOffer": {
            "$ref": "#/components/schemas/HostedOffer"
          }
        },
        "required": [
          "id",
          "hostedStatus",
          "currentPeriodEnd"
        ],
        "additionalProperties": false
      }
    },
    "headers": {
      "X-Request-Id": {
        "description": "Correlation id for support. Present on every response.",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70"
      },
      "X-RateLimit-Limit": {
        "description": "Authenticated attempts allowed per 60-second window for the account.",
        "schema": {
          "type": "integer"
        },
        "example": 120
      },
      "X-RateLimit-Remaining": {
        "description": "Attempts left in the current window.",
        "schema": {
          "type": "integer"
        },
        "example": 117
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer"
        },
        "example": 30
      },
      "Allow": {
        "description": "Supported methods for the route.",
        "schema": {
          "type": "string"
        },
        "example": "GET"
      },
      "Accept-Ranges": {
        "description": "Always `bytes`.",
        "required": true,
        "schema": {
          "const": "bytes"
        },
        "example": "bytes"
      },
      "Content-Range": {
        "description": "`bytes start-end/size` on 206, `bytes */size` on 416.",
        "schema": {
          "type": "string"
        },
        "example": "bytes 0-1048575/1843302"
      },
      "ETag": {
        "description": "Strong validator for If-Range: the quoted sha256 of the file.",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "\"d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109\""
      },
      "Content-Length": {
        "description": "Bytes in this response body.",
        "required": true,
        "schema": {
          "type": "integer"
        },
        "example": 1843302
      }
    },
    "parameters": {
      "ExerciseId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Exercise id or canonical slug.",
        "schema": {
          "type": "string",
          "minLength": 1
        },
        "example": "75"
      },
      "GrantId": {
        "name": "grantId",
        "in": "path",
        "required": true,
        "description": "The download link id in the delivery URL.",
        "schema": {
          "type": "string",
          "pattern": "^grant_"
        },
        "example": "grant_69e604c7-2f38-485c-89b3-24d61ab2af0e"
      },
      "DeliveryToken": {
        "name": "t",
        "in": "query",
        "required": true,
        "description": "The signed token from the delivery URL. Treat the whole URL as opaque.",
        "schema": {
          "type": "string"
        },
        "example": "eyJnIjoiZ3JhbnRfNjllNjA0YzcifQ.Lqvtn5kUEJG22znYCC-jXAWyPJMsAP1Po2eNG279Yp"
      },
      "Range": {
        "name": "Range",
        "in": "header",
        "description": "One range: bytes=a-b, bytes=a- or bytes=-n. Multiple ranges are refused with 416.",
        "schema": {
          "type": "string"
        },
        "example": "bytes=0-1048575"
      },
      "IfRange": {
        "name": "If-Range",
        "in": "header",
        "description": "ETag or HTTP date. A mismatch returns the full object instead of a range.",
        "schema": {
          "type": "string"
        },
        "example": "\"d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109\""
      }
    }
  }
}