Create Storefront Token
Mint a new storefront token. The plaintext secret in the
response is shown exactly once — store it immediately.
If scopes is omitted, all four default-on scopes are granted.
If allowed_origins is omitted, the token is unrestricted by
origin (recommended only for server-side use).
Body
Human label for this token, e.g. 'Kasa production'.
255Subset of allowed scopes. If omitted, all four default-on scopes are granted: ['cart:write', 'catalog:read', 'checkout:create', 'customer:auth'].
Browser origins allowed to use this token (e.g. ['https://kasa.com']). Empty list means any origin (server-side use only is recommended in that case).
Response
Successful Response
Response from POST /storefront-tokens. The secret field
(stk_sec_<...>) is shown exactly once and is not recoverable
from the server afterwards. Dashboards must surface this clearly.
The plaintext storefront secret (stk_sec_<...>). Returned only at creation time; not recoverable later.