Rotate a token: mint a fresh one carrying the old name/scopes/
allowed_origins, then revoke the old. The new plaintext secret
is returned exactly once.
Documentation Index
Fetch the complete documentation index at: https://docs.stella-commerce.com/llms.txt
Use this file to discover all available pages before exploring further.
Successful Response
Response from POST /storefront-tokens/{key_id}/rotate. Carries
both the new token's metadata + plaintext secret AND the previous
key_id that was revoked, so the dashboard can confirm the swap.
The plaintext storefront secret (stk_sec_<...>). Returned only at creation time; not recoverable later.
The key_id of the token that was just revoked.