Skip to content
Skip to content

Get entitlements

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

No key needed
GET/v1/entitlements
curl --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": [
dataEntitlementsalways

What the account owns and where to buy more.

data.tenantIdstringalways

The account this key belongs to, or sample when no key was sent.

data.grantsarray of OwnershipGrant (PackOwnershipGrant or ExerciseOwnershipGrant)always

Completed purchase rights.

data.grants[].typestringalways

A pack purchase.

One of
packexercise
data.grants[].packIdstring

The purchased pack.

Only on
PackOwnershipGrant
data.grants[].policystringalways

windowed: new releases until the window ends; legacy: perpetual, no window.

One of
windowedlegacy
data.grants[].updateWindowEndsAtstring | null (date-time)always

End of the release window for windowed rights, otherwise null.

data.grants[].exerciseIdstring

The purchased exercise.

Only on
ExerciseOwnershipGrant
data.licensedExerciseIdsarray of stringalways

Published exercises the account owns.

data.upgradeUpgradeLinksalways

Where to buy more. Never a price.

data.upgrade.packsUrlstringalways

The public packs page.

metaMetaalways

Present on every successful response.

meta.requestIdstringalways

Quote this id when contacting support. Also sent as the X-Request-Id header.

meta.catalogRevisionstringalways

SHA-256 over the published catalog. Changes when the catalog is redeployed; cursors are bound to it.

meta.accountstring

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.sampleSampleFacts

Present with account: sample. What the sample account holds and where the rest of the catalog can be bought.

meta.sample.exercisesintegeralways

Exercises the sample account owns.

meta.sample.catalogueTotalintegeralways

Published exercises in the catalog.

meta.sample.packsUrlstringalways

The packs page. A key from any purchase answers with what that account owns.

Errors

400
invalid_request

Invalid request or cursor.

401
invalid_api_keyauthentication_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_disabledapi_unavailable

Temporarily unavailable. Retry later.

Every code with its next step is on Errors.