Skip to content
Skip to content

Rotate Hosted embed URLs

Increments the account's Hosted embed generation so previously issued URLs stop playing with 410 once propagated.

Any purchase
POST/v1/embeds/rotate
curl --fail-with-body -sS -X POST \
-H "Authorization: Bearer $MOVEKIT_API_KEY" \
-H 'Idempotency-Key: rotate_20261203_01' \
"https://api.movekit.com/v1/embeds/rotate"

Authorization: Bearer $MOVEKIT_API_KEY.

Call listEmbeds afterwards to fetch the new URLs for your app.

Headers

Idempotency-Keystringrequired

Unique key (8 to 128 letters, digits, underscores or hyphens) making the rotation safe to retry.

Range
8 to 128 characters
Example
rotate_20261203_01

Response 200

The new active embed generation and propagation status.

{
"data": {
"generation": 2,
"rotatedAt": "2026-10-04T09:12:44.000Z",
"propagation": "applied"
},
"meta": {
"requestId": "req_5f0c7a9e-2b1d-4c8e-9a3f-6d2e8b1c4f70",
"catalogRevision": "3c79fc18685650e43beb1ccdd0e1f70cef31a5b643b033160e779684f9cfc869"
}
}
dataEmbedRotationalways

Result of rotating the account's Hosted embed URLs.

data.generationintegeralways

New active embed generation.

data.rotatedAtstring (date-time)always

When the rotation was recorded.

data.propagationstringalways

applied once the delivery edge acknowledged the rotation; pending when queued for replay.

One of
appliedpending
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.

meta.hostedHostedOffer

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.

meta.hosted.summarystringalways

The line to show a developer who asks for clips from URLs instead of files.

meta.hosted.urlstringalways

The page where the account holder chooses a plan and turns Hosted on.

meta.hosted.promptUrlstringalways

The Hosted quickstart as Markdown, with the Hosted agent prompt.

Details

  • Requires an active MoveKit Hosted subscription and an Idempotency-Key header.

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
hosted_service_requiredpurchase_required

An active MoveKit Hosted subscription is required.

404
not_found

The route or exercise was not found.

405
method_not_allowed

Use a supported HTTP method.

413
payload_too_large

The JSON body is too large.

415
unsupported_media_type

Send application/json.

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.