post

/storefront/api-token

Creates a Storefront API token.

Required Scopes

  • Manage Storefront API Tokens

Authorization

apiKey - X-Auth-Client
apiKey - X-Auth-Token

Request Body

1 Example
Schema
object
allowed_cors_origins
array[string]

List of allowed domains for Cross-Origin Request Sharing. Currently only accepts a single element.

3 validations
channel_id
integer

Channel ID for requested token

1 validation + required
expires_at
integer

Unix timestamp (UTC time) defining when the token should expire.

2 validations + required

Responses

Schema
object
data
object
meta
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
4 variables not set
store_hash
X-Auth-Client
X-Auth-Token
expires_at
allowed_cors_origin