Proteside Docs
Endpoint referenceStores

Rotate the SDK key (old key valid for 24 h)

POST
/stores/{id}/rotate-key

Authorization

bearerAuth
headerAuthorizationBearer <token>

API token created in Settings → API. Scopes are attached to the token; each operation lists its required scope in x-scope.

Path Parameters

id*string
Formatuuid

Query Parameters

org_id?string

Partners only (orgs:manage): act on this child organization. May also be sent as org_id in JSON bodies.

Formatuuid

Header Parameters

Idempotency-Key?string

Replays the original response for 24 h

Length1 <= length <= 255

Response Body

New key + snippets

application/json
  1. response
id?string
Formatuuid
sdk_key?string
previous_key_valid_until?string
Formatdate-time
snippets?
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": "…"  }}