> Docs index: https://movekit.com/llms.txt. HTML version: https://movekit.com/docs/api/list-hosted-embed-urls

# List Hosted embed URLs

Returns MoveKit Hosted video and poster URLs for owned exercises with cursor pagination.

- Method and path: `GET /v1/embeds`
- URL: `https://api.movekit.com/v1/embeds`
- Requires: Any purchase
- Authentication: `Authorization: Bearer $MOVEKIT_API_KEY`.
- Operation id: `listEmbeds`

Requires an API key and an active MoveKit Hosted subscription. Fetch at build time and play the returned URLs directly in your app.

## Rules

- Requires an active MoveKit Hosted subscription.
- Follow page.nextCursor with ?cursor= until it is null to collect every owned exercise.

## Query parameters

| Name | Type | Required | Default | Allowed | Example | Description |
| --- | --- | --- | --- | --- | --- | --- |
| `limit` | integer | no |  | 1 to 100 | `100` | Page size. |
| `cursor` | string | no |  |  | `eyJraW5kIjoiY3Vyc29yIiwib2Zmc2V0IjoyfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA` | page.nextCursor from the previous response. Every other parameter must be identical. |
| `updatedSince` | string (date-time) | no |  |  | `2026-09-01T00:00:00Z` | RFC 3339 timestamp; returns owned exercises whose media changed after it. |
| `ids` | string | no |  |  | `75` | Comma-separated list of 1 to 100 unique numeric exercise ids. |
| `include` | string | no |  | `metadata` | `metadata` | Optional extra fields to include inline. Pass metadata to receive taxonomy, description and form cues alongside each embed URL. |

## Header parameters

| Name | Type | Required | Default | Allowed | Example | Description |
| --- | --- | --- | --- | --- | --- | --- |
| `Idempotency-Key` | string | no |  | 8 to 128 characters | `rotate_20261203_01` | Optional idempotency key (8 to 128 letters, digits, underscores or hyphens) to replay the same page for the active generation. |

## Response 200

A page of Hosted video and poster URLs for owned exercises.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `data` | array of Embed | yes |  |
| `data[].id` | string | yes | Stable numeric-string exercise id (same value as exerciseId, matching /v1/exercises and exercise-database). |
| `data[].exerciseId` | string | yes | Stable numeric-string exercise id. |
| `data[].slug` | string | yes | Canonical exercise slug. |
| `data[].name` | string | yes | Display name. |
| `data[].version` | string | yes | Current asset revision served at these URLs. |
| `data[].updatedAt` | string (date-time) | yes | When the exercise media was last updated. |
| `data[].video` | EmbedMedia | yes | One Hosted media URL (video or poster) served from media.movekit.com while your Hosted subscription is active. |
| `data[].video.url` | string | yes | Hosted playback URL on media.movekit.com. Play it directly in your app with no API key. |
| `data[].video.mediaType` | string | yes | Media type of the served file. One of `video/mp4`, `image/jpeg`, `image/webp`, `image/png`. |
| `data[].video.bytes` | integer | yes | File size in bytes. |
| `data[].video.sha256` | string | yes | Hex SHA-256 digest of the current file version. |
| `data[].poster` | EmbedMedia | yes | One Hosted media URL (video or poster) served from media.movekit.com while your Hosted subscription is active. |
| `data[].poster.url` | string | yes | Hosted playback URL on media.movekit.com. Play it directly in your app with no API key. |
| `data[].poster.mediaType` | string | yes | Media type of the served file. One of `video/mp4`, `image/jpeg`, `image/webp`, `image/png`. |
| `data[].poster.bytes` | integer | yes | File size in bytes. |
| `data[].poster.sha256` | string | yes | Hex SHA-256 digest of the current file version. |
| `data[].aliases` | array of string | no | Included when ?include=metadata is passed. |
| `data[].primaryMuscles` | array of string | no | Included when ?include=metadata is passed. |
| `data[].secondaryMuscles` | array of string | no | Included when ?include=metadata is passed. |
| `data[].equipment` | array of string | no | Included when ?include=metadata is passed. |
| `data[].implementsNeeded` | integer \| null | no | Included when ?include=metadata is passed. One of `1`, `2`, `null`. |
| `data[].movementPattern` | array of string | no | Included when ?include=metadata is passed. |
| `data[].difficulty` | string \| null | no | Included when ?include=metadata is passed. |
| `data[].durationSeconds` | number \| null | no | Included when ?include=metadata is passed. |
| `data[].description` | string | no | Included when ?include=metadata is passed. |
| `data[].instructions` | array of string | no | Included when ?include=metadata is passed. |
| `data[].commonMistakes` | array of string | no | Included when ?include=metadata is passed. |
| `meta` | EmbedsMeta | yes | Response metadata for GET /v1/embeds, including the active embed generation. |
| `meta.requestId` | string | yes | Quote this id when contacting support. Also sent as the X-Request-Id header. |
| `meta.catalogRevision` | string | yes | SHA-256 over the published catalog. |
| `meta.embeds` | EmbedsState | yes | The account's current Hosted embed generation and last rotation time. |
| `meta.embeds.generation` | integer | yes | Current embed URL generation. Rotations increment this number and revoke older URLs. |
| `meta.embeds.rotatedAt` | string \| null (date-time) | yes | Timestamp of the most recent rotation, or null if never rotated. |
| `page` | Page | yes | Cursor pagination. Pass nextCursor back unchanged with otherwise identical parameters until hasMore is false. |
| `page.limit` | integer | yes | The page size that was applied. |
| `page.nextCursor` | string \| null | yes | Opaque, signed, bound to the key's account, the exact query and the catalog revision. Valid for 15 minutes; null on the last page. |
| `page.hasMore` | boolean | yes | True when another page follows. |
| `page.total` | integer | no | Exercises matching this query, across all pages. |

## Errors

| Status | Codes | Meaning |
| --- | --- | --- |
| 400 | `invalid_request`, `cursor_invalid` | Invalid request or cursor. |
| 401 | `invalid_api_key`, `authentication_required` | 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. |
| 403 | `hosted_service_required`, `purchase_required` | An active MoveKit Hosted subscription and a completed purchase are required. |
| 404 | `not_found` | The route or exercise was not found. |
| 405 | `method_not_allowed` | Use a supported HTTP method. |
| 429 | `rate_limit_exceeded` | About 120 requests a minute per account. Wait for Retry-After before retrying. |
| 500 | `internal_error` | Unexpected failure. Contact support with requestId if it persists. |
| 503 | `embeds_unavailable`, `delivery_unavailable`, `api_disabled`, `api_unavailable` | Hosted embed URLs are temporarily unavailable; retry after Retry-After. |

## Example request

cURL:

```bash
curl --fail-with-body -sS \
  -H "Authorization: Bearer $MOVEKIT_API_KEY" \
  "https://api.movekit.com/v1/embeds?limit=100&ids=75&include=metadata"
```

JavaScript:

```javascript
// Node 20 or newer: save as request.mjs and run node request.mjs
const response = await fetch("https://api.movekit.com/v1/embeds?limit=100&ids=75&include=metadata", {
  headers: {
    Authorization: `Bearer ${process.env.MOVEKIT_API_KEY}`,
  },
})
const body = await response.json()
if (!response.ok) throw new Error(`${response.status} ${body.error.code}: ${body.error.nextAction}`)
console.log(body.data)
```

Python:

```python
import json
import os
import urllib.error
import urllib.request

request = urllib.request.Request(
    "https://api.movekit.com/v1/embeds?limit=100&ids=75&include=metadata",
    method="GET",
    headers={
        "User-Agent": "movekit-docs-example/1",
        "Authorization": f"Bearer {os.environ['MOVEKIT_API_KEY']}",
    },
)
try:
    with urllib.request.urlopen(request) as response:
        print(json.dumps(json.load(response), indent=2))
except urllib.error.HTTPError as error:
    print(error.code, error.read().decode())
```

## Example response 200

```json
{
  "data": [
    {
      "id": "75",
      "exerciseId": "75",
      "slug": "cable-row-bar-standing-row",
      "name": "Cable Row Bar Standing Row",
      "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
      "updatedAt": "2026-10-04T19:56:58.073Z",
      "video": {
        "url": "https://media.movekit.com/e/eyJ2IjoxLCJoIjoiZW1iX2V4YW1wbGUiLCJ4IjoiNzUiLCJnIjoxfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA.mp4",
        "mediaType": "video/mp4",
        "bytes": 1843302,
        "sha256": "d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109"
      },
      "poster": {
        "url": "https://media.movekit.com/e/eyJ2IjoxLCJoIjoiZW1iX2V4YW1wbGUiLCJ4IjoiNzUiLCJnIjoxfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA.webp",
        "mediaType": "image/webp",
        "bytes": 321332,
        "sha256": "4971144f130907a9eb898ef7b10109b60f4c572c40e41358a053dba24836d0f4"
      }
    }
  ],
  "meta": {
    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869",
    "embeds": {
      "generation": 1,
      "rotatedAt": null
    }
  },
  "page": {
    "limit": 100,
    "nextCursor": null,
    "hasMore": false
  }
}
```

## Example response 400

```json
{
  "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."
  }
}
```

## Example response 401

```json
{
  "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."
  }
}
```

## Example response 403

```json
{
  "error": {
    "code": "hosted_service_required",
    "message": "MoveKit Hosted is not active on this account.",
    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
    "retryable": false,
    "nextAction": "Turn on MoveKit Hosted at https://movekit.com/add-ons/hosted, or use POST /v1/deliveries to self-host."
  }
}
```

## Example response 404

```json
{
  "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."
  }
}
```

## Example response 405

```json
{
  "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."
  }
}
```

## Example response 429

```json
{
  "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."
  }
}
```

## Example response 500

```json
{
  "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."
  }
}
```

## Example response 503

```json
{
  "error": {
    "code": "embeds_unavailable",
    "message": "Embed URLs are not available yet.",
    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
    "retryable": true,
    "nextAction": "Retry after the Retry-After seconds."
  }
}
```

## OpenAPI

The operation and every component it references, from the OpenAPI document.

```json
{
  "openapi": "3.1.2",
  "info": {
    "title": "MoveKit API",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.movekit.com/v1",
      "description": "Control plane (MOVEKIT_API_BASE_URL). Paths below are relative to this URL."
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "paths": {
    "/embeds": {
      "get": {
        "operationId": "listEmbeds",
        "tags": [
          "Deliveries"
        ],
        "summary": "List Hosted embed URLs",
        "description": "Returns MoveKit Hosted video and poster URLs for owned exercises with cursor pagination. Requires an API key and an active MoveKit Hosted subscription. Fetch at build time and play the returned URLs directly in your app.",
        "x-movekit-requires": "purchase",
        "x-movekit-notes": [
          "Requires an active MoveKit Hosted subscription.",
          "Follow page.nextCursor with ?cursor= until it is null to collect every owned exercise."
        ],
        "parameters": [
          {
            "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 owned exercises whose media changed after it.",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "example": "2026-09-01T00:00:00Z"
          },
          {
            "name": "ids",
            "in": "query",
            "description": "Comma-separated list of 1 to 100 unique numeric exercise ids.",
            "schema": {
              "type": "string"
            },
            "example": "75"
          },
          {
            "name": "include",
            "in": "query",
            "description": "Optional extra fields to include inline. Pass metadata to receive taxonomy, description and form cues alongside each embed URL.",
            "schema": {
              "type": "string",
              "enum": [
                "metadata"
              ]
            },
            "example": "metadata"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional idempotency key (8 to 128 letters, digits, underscores or hyphens) to replay the same page for the active generation.",
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            },
            "example": "rotate_20261203_01"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Hosted video and poster URLs for owned exercises.",
            "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/EmbedListResponse"
                },
                "example": {
                  "data": [
                    {
                      "id": "75",
                      "exerciseId": "75",
                      "slug": "cable-row-bar-standing-row",
                      "name": "Cable Row Bar Standing Row",
                      "version": "golden-release-20261004:ae121e3065d855ff190bcdbe66cc267172046f2ec09f9d189f8007bbf49b715d",
                      "updatedAt": "2026-10-04T19:56:58.073Z",
                      "video": {
                        "url": "https://media.movekit.com/e/eyJ2IjoxLCJoIjoiZW1iX2V4YW1wbGUiLCJ4IjoiNzUiLCJnIjoxfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA.mp4",
                        "mediaType": "video/mp4",
                        "bytes": 1843302,
                        "sha256": "d74cedbbfbc4d6d93afd73cbbf4ca7e6d4ef1d876d12be14913c617974ba8109"
                      },
                      "poster": {
                        "url": "https://media.movekit.com/e/eyJ2IjoxLCJoIjoiZW1iX2V4YW1wbGUiLCJ4IjoiNzUiLCJnIjoxfQ.kMH0gAvgy-_bT5H93YVDIX2Z7nUX8KsmRYnkTf25qqA.webp",
                        "mediaType": "image/webp",
                        "bytes": 321332,
                        "sha256": "4971144f130907a9eb898ef7b10109b60f4c572c40e41358a053dba24836d0f4"
                      }
                    }
                  ],
                  "meta": {
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869",
                    "embeds": {
                      "generation": 1,
                      "rotatedAt": null
                    }
                  },
                  "page": {
                    "limit": 100,
                    "nextCursor": null,
                    "hasMore": false
                  }
                }
              }
            }
          },
          "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": "An active MoveKit Hosted subscription and a completed purchase are 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": "hosted_service_required",
                    "message": "MoveKit Hosted is not active on this account.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": false,
                    "nextAction": "Turn on MoveKit Hosted at https://movekit.com/add-ons/hosted, or use POST /v1/deliveries to self-host."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "hosted_service_required",
              "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": "Hosted embed URLs are temporarily unavailable; retry after Retry-After.",
            "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": "embeds_unavailable",
                    "message": "Embed URLs are not available yet.",
                    "requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
                    "retryable": true,
                    "nextAction": "Retry after the Retry-After seconds."
                  }
                }
              }
            },
            "x-movekit-codes": [
              "embeds_unavailable",
              "delivery_unavailable",
              "api_disabled",
              "api_unavailable"
            ]
          }
        }
      },
      "x-plane": "control"
    }
  },
  "components": {
    "headers": {
      "Allow": {
        "description": "Supported methods for the route.",
        "schema": {
          "type": "string"
        },
        "example": "GET"
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer"
        },
        "example": 30
      },
      "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
      },
      "X-Request-Id": {
        "description": "Correlation id for support. Present on every response.",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70"
      }
    },
    "schemas": {
      "Embed": {
        "type": "object",
        "description": "Hosted video and poster URLs for one owned exercise. URLs stay stable across clip corrections while your Hosted subscription is active. Pass ?include=metadata to include taxonomy, description and form cues inline.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable numeric-string exercise id (same value as exerciseId, matching /v1/exercises and exercise-database)."
          },
          "exerciseId": {
            "type": "string",
            "description": "Stable numeric-string exercise id."
          },
          "slug": {
            "type": "string",
            "description": "Canonical exercise slug."
          },
          "name": {
            "type": "string",
            "description": "Display name."
          },
          "version": {
            "type": "string",
            "description": "Current asset revision served at these URLs."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the exercise media was last updated."
          },
          "video": {
            "$ref": "#/components/schemas/EmbedMedia"
          },
          "poster": {
            "$ref": "#/components/schemas/EmbedMedia"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          },
          "primaryMuscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          },
          "secondaryMuscles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          },
          "equipment": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          },
          "implementsNeeded": {
            "type": [
              "integer",
              "null"
            ],
            "enum": [
              1,
              2,
              null
            ],
            "description": "Included when ?include=metadata is passed."
          },
          "movementPattern": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          },
          "difficulty": {
            "type": [
              "string",
              "null"
            ],
            "description": "Included when ?include=metadata is passed."
          },
          "durationSeconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Included when ?include=metadata is passed."
          },
          "description": {
            "type": "string",
            "description": "Included when ?include=metadata is passed."
          },
          "instructions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          },
          "commonMistakes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Included when ?include=metadata is passed."
          }
        },
        "required": [
          "id",
          "exerciseId",
          "slug",
          "name",
          "version",
          "updatedAt",
          "video",
          "poster"
        ],
        "additionalProperties": false
      },
      "EmbedListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Embed"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/EmbedsMeta"
          },
          "page": {
            "$ref": "#/components/schemas/Page"
          }
        },
        "required": [
          "data",
          "meta",
          "page"
        ],
        "additionalProperties": false
      },
      "EmbedMedia": {
        "type": "object",
        "description": "One Hosted media URL (video or poster) served from media.movekit.com while your Hosted subscription is active.",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "description": "Hosted playback URL on media.movekit.com. Play it directly in your app with no API key."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "video/mp4",
              "image/jpeg",
              "image/webp",
              "image/png"
            ],
            "description": "Media type of the served file."
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "description": "File size in bytes."
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Hex SHA-256 digest of the current file version."
          }
        },
        "required": [
          "url",
          "mediaType",
          "bytes",
          "sha256"
        ],
        "additionalProperties": false
      },
      "EmbedsMeta": {
        "type": "object",
        "description": "Response metadata for GET /v1/embeds, including the active embed generation.",
        "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."
          },
          "embeds": {
            "$ref": "#/components/schemas/EmbedsState"
          }
        },
        "required": [
          "requestId",
          "catalogRevision",
          "embeds"
        ],
        "additionalProperties": false
      },
      "EmbedsState": {
        "type": "object",
        "description": "The account's current Hosted embed generation and last rotation time.",
        "properties": {
          "generation": {
            "type": "integer",
            "minimum": 1,
            "description": "Current embed URL generation. Rotations increment this number and revoke older URLs."
          },
          "rotatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp of the most recent rotation, or null if never rotated."
          }
        },
        "required": [
          "generation",
          "rotatedAt"
        ],
        "additionalProperties": false
      },
      "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
      },
      "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",
          "hosted_service_required",
          "embeds_unavailable"
        ],
        "description": "Stable, machine-readable error code. Branch on it."
      },
      "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
      },
      "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
      },
      "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
      }
    },
    "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."
      }
    }
  }
}
```
