Endpoint referenceStores
Rotate the SDK key (old key valid for 24 h)
POST
bearerAuthheader
AuthorizationBearer <token>API token created in Settings → API. Scopes are attached to the token; each operation lists its required scope in x-scope.
id*stringFormat
uuidorg_id?stringPartners only (orgs:manage): act on this child organization. May also be sent as org_id in JSON bodies.
Format
uuidIdempotency-Key?stringReplays the original response for 24 h
Length
1 <= length <= 255New key + snippets
application/json- response
id?stringFormat
uuidsdk_key?stringprevious_key_valid_until?stringFormat
date-timesnippets?curl -X POST "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-key"{ "id": "0c1d2e3f-1111-4222-8333-444455556666", "sdk_key": "pk_live_fedcba9876543210fedcba9876543210", "previous_key_valid_until": "2026-09-28T10:05:00.000Z", "snippets": { "html": "…", "nextjs": "…", "nuxt": "…", "wordpress": "…" }}