Get entitlements
Returns the account, its purchase rights, licensed exercise ids and where to buy more.
/v1/entitlementscurl --fail-with-body -sS \ -H "Authorization: Bearer $MOVEKIT_API_KEY" \ "https://api.movekit.com/v1/entitlements"Authorization: Bearer $MOVEKIT_API_KEY.
With no key, it describes the sample account.
Response 200
Purchase rights and where to buy more.
{ "data": { "tenantId": "kXQ3fVb9TzN1mPq8rL2sW5yH7cJ4", "grants": [ { "type": "exercise", "exerciseId": "75", "policy": "legacy", "updateWindowEndsAt": null } ], "licensedExerciseIds": [dataEntitlementsalwaysWhat the account owns and where to buy more.
data.tenantIdstringalwaysThe account this key belongs to, or sample when no key was sent.
data.grantsarray of OwnershipGrant (PackOwnershipGrant or ExerciseOwnershipGrant)alwaysCompleted purchase rights.
data.grants[].typestringalwaysA pack purchase.
- One of
packexercise
data.grants[].packIdstringThe purchased pack.
- Only on
PackOwnershipGrant
data.grants[].policystringalwayswindowed: new releases until the window ends; legacy: perpetual, no window.
- One of
windowedlegacy
data.grants[].updateWindowEndsAtstring | null (date-time)alwaysEnd of the release window for windowed rights, otherwise null.
data.grants[].exerciseIdstringThe purchased exercise.
- Only on
ExerciseOwnershipGrant
data.licensedExerciseIdsarray of stringalwaysPublished exercises the account owns.
data.upgradeUpgradeLinksalwaysWhere to buy more. Never a price.
data.upgrade.packsUrlstringalwaysThe public packs page.
metaMetaalwaysPresent on every successful response.
meta.requestIdstringalwaysQuote this id when contacting support. Also sent as the X-Request-Id header.
meta.catalogRevisionstringalwaysSHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it.
meta.accountstringsample 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.sampleSampleFactsPresent with account: sample. What the sample account holds and where the rest of the catalog can be bought.
meta.sample.exercisesintegeralwaysExercises the sample account owns.
meta.sample.catalogueTotalintegeralwaysPublished exercises in the catalog.
meta.sample.packsUrlstringalwaysThe packs page. A key from any purchase answers with what that account owns.
Errors
invalid_requestInvalid request or cursor.
invalid_api_keyauthentication_requiredThe 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.
purchase_requiredA purchase or ownership of the requested exercise is required.
not_foundThe route or exercise was not found.
method_not_allowedUse a supported HTTP method.
rate_limit_exceededAbout 120 requests a minute per account. Wait for Retry-After before retrying.
internal_errorUnexpected failure. Contact support with requestId if it persists.
api_disabledapi_unavailableTemporarily unavailable. Retry later.
Every code with its next step is on Errors.