Asset Picker parameters reference
This page specifies the host URLs, configuration parameters, and API routing for the CMP Asset Picker.
The Asset Picker accepts the same configuration whether you embed it as an iframe or as a web component. Supply configuration as URL query parameters on the iframe (camelCase), or as element attributes on the web component (kebab-case).
For how to apply this configuration, see Embed the Asset Picker.
Environments
| Environment | Host URL |
|---|---|
Development |
|
Staging |
|
Production |
The web component script for each environment is the host URL followed by web-component/asset-picker.umd.js.
For example, in production: https://app.storyteq.com/asset-picker/web-component/asset-picker.umd.js.
Required parameters
The following parameters are required for an iframe.
| Parameter | URL parameter | Web component attribute | Description |
|---|---|---|---|
Domain |
|
|
The tenant domain whose assets the Asset Picker displays. |
API key |
|
|
The API key used to access the lens. |
Domain ID |
|
|
The identifier of the domain. |
Lens ID |
|
|
The identifier of the lens whose assets the Asset Picker displays. |
API integration and routing
The API integration setting determines which CMP API the Asset Picker calls.
apiIntegration(api-integration)-
Selects the external Luma v2 endpoints for a given environment. Accepted values:
external-prod,external-proxy,external-dev,external-qa,external-uat. apiHostname(api-hostname)-
Specifies the API host the Asset Picker calls.
The Asset Picker routes API requests as follows:
-
When
apiIntegrationis not set, the Asset Picker calls the internal Luma endpoints at the host it is loaded from:${hostname}/api/${domain}/com.intrepia.luma.${endpoint} -
When
apiIntegrationis set toexternal-site, the Asset Picker calls the Luma v2 endpoint for that environment:https://enterprise.api-${env}.storyteq.com
Optional parameters
The following optional parameters are accepted as URL parameters and web component attributes. Each takes a boolean value.
| Parameter | URL parameter | Web component attribute |
|---|---|---|
Allow multiple selection |
|
|
Allow original asset |
|
|
Allow events |
|
|
Allow external |
|
|
Allow public URL |
|
|
Allow persistent |
|
|
Allow fallback |
|
|
allowMultiple allows the user to select more than one asset.