> Docs index: https://movekit.com/llms.txt. HTML version: https://movekit.com/docs/api/get-entitlements

# Get entitlements

Returns the account, its purchase rights, licensed exercise ids and where to buy more.

- Method and path: `GET /v1/entitlements`
- URL: `https://api.movekit.com/v1/entitlements`
- Requires: No key needed
- Authentication: `Authorization: Bearer $MOVEKIT_API_KEY`.
- Operation id: `getEntitlements`

With no key, it describes the sample account.

## Response 200

Purchase rights and where to buy more.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `data` | Entitlements | yes | What the account owns and where to buy more. |
| `data.tenantId` | string | yes | The account this key belongs to, or sample when no key was sent. |
| `data.grants` | array of OwnershipGrant (PackOwnershipGrant or ExerciseOwnershipGrant) | yes | Completed purchase rights. |
| `data.grants[].type` | string | yes | A pack purchase. One of `pack`, `exercise`. |
| `data.grants[].packId` | string | no | The purchased pack. Only on PackOwnershipGrant. |
| `data.grants[].policy` | string | yes | windowed: new releases until the window ends; legacy: perpetual, no window. One of `windowed`, `legacy`. |
| `data.grants[].updateWindowEndsAt` | string \| null (date-time) | yes | End of the release window for windowed rights, otherwise null. |
| `data.grants[].exerciseId` | string | no | The purchased exercise. Only on ExerciseOwnershipGrant. |
| `data.licensedExerciseIds` | array of string | yes | Published exercises the account owns. |
| `data.upgrade` | UpgradeLinks | yes | Where to buy more. Never a price. |
| `data.upgrade.packsUrl` | string | yes | The public packs page. |
| `meta` | Meta | yes | Present on every successful response. |
| `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. Changes when the catalog is redeployed; cursors are bound to it. |
| `meta.account` | string | no | 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. |
| `meta.sample` | SampleFacts | no | Present with account: sample. What the sample account holds and where the rest of the catalog can be bought. |
| `meta.sample.exercises` | integer | yes | Exercises the sample account owns. |
| `meta.sample.catalogueTotal` | integer | yes | Published exercises in the catalog. |
| `meta.sample.packsUrl` | string | yes | The packs page. A key from any purchase answers with what that account owns. |

## Errors

| Status | Codes | Meaning |
| --- | --- | --- |
| 400 | `invalid_request` | 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 | `purchase_required` | A purchase or ownership of the requested exercise is 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 | `api_disabled`, `api_unavailable` | Temporarily unavailable. Retry later. |

## Example request

cURL:

```bash
curl --fail-with-body -sS \
  -H "Authorization: Bearer $MOVEKIT_API_KEY" \
  "https://api.movekit.com/v1/entitlements"
```

JavaScript:

```javascript
// Node 20 or newer: save as request.mjs and run node request.mjs
const response = await fetch("https://api.movekit.com/v1/entitlements", {
  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/entitlements",
    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": {
    "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"
  }
}
```

## Example response 400

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

## 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": "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."
  }
}
```

## 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": "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."
  }
}
```

## 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": {
    "/entitlements": {
      "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"
            ]
          }
        }
      },
      "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": {
      "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"
          }
        },
        "required": [
          "tenantId",
          "grants",
          "licensedExerciseIds",
          "upgrade"
        ],
        "additionalProperties": false
      },
      "EntitlementsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Entitlements"
          },
          "meta": {
            "$ref": "#/components/schemas/Meta"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "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"
        ],
        "description": "Stable, machine-readable error code. Branch on it."
      },
      "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
      },
      "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"
          }
        },
        "required": [
          "requestId",
          "catalogRevision"
        ],
        "additionalProperties": false
      },
      "OwnershipGrant": {
        "description": "One completed order item projected into a right. Branch on `type`.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/PackOwnershipGrant"
          },
          {
            "$ref": "#/components/schemas/ExerciseOwnershipGrant"
          }
        ]
      },
      "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
      },
      "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
      },
      "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
      },
      "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
      }
    },
    "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."
      }
    }
  }
}
```
