Create an API key
Creates a publishable or secret API key. The plaintext token is included in the response once for secret keys; publishable keys expose their token on every read since they are intended for client-side use.
Required scope: write_api_keys (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
publishable, secret Required for secret keys. You can only grant scopes you hold yourself. Fixed once created: to change them, create a new key and revoke the old one.
Binds a publishable key to one channel of the store (ch_...), so it rejects requests for other channels. Fixed once created; omit it for a store-wide key.
Response
secret key created — plaintext token returned once

