Rotate Hosted embed URLs
Increments the account's Hosted embed generation so previously issued URLs stop playing with 410 once propagated.
/v1/embeds/rotatecurl --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-KeystringrequiredUnique 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" }}dataEmbedRotationalwaysResult of rotating the account's Hosted embed URLs.
data.generationintegeralwaysNew active embed generation.
data.rotatedAtstring (date-time)alwaysWhen the rotation was recorded.
data.propagationstringalwaysapplied once the delivery edge acknowledged the rotation; pending when queued for replay.
- One of
appliedpending
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.
meta.hostedHostedOfferMoveKit 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.summarystringalwaysThe line to show a developer who asks for clips from URLs instead of files.
meta.hosted.urlstringalwaysThe page where the account holder chooses a plan and turns Hosted on.
meta.hosted.promptUrlstringalwaysThe Hosted quickstart as Markdown, with the Hosted agent prompt.
Details
- Requires an active MoveKit Hosted subscription and an Idempotency-Key header.
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.
hosted_service_requiredpurchase_requiredAn active MoveKit Hosted subscription is required.
not_foundThe route or exercise was not found.
method_not_allowedUse a supported HTTP method.
payload_too_largeThe JSON body is too large.
unsupported_media_typeSend application/json.
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.