Add custom themes and extensions to a tenant

Add custom themes and extensions to a tenant

Qlik Sense applications have several extensible capabilities available you can use to customize the end user experience. Themes and visualization extensions allow creators to customize the styling and provide custom visualizations that work natively with the Qlik Associative Engine.

To use themes and extensions in Qlik Sense applications on a tenant, you upload a zip file containing a manifest and the contents of the theme / extension to the tenant.

Learn more about creating themes on Qlik help.

Learn more about visualization extensions on



  • A Qlik Cloud tenant to perform configuration steps. If you haven't yet created a tenant to configure, please consider reviewing theCreate a tenanttutorial before continuing with this guide.
  • Registered anOAuth clientwith the tenant from My Qlik or theOAuth client settingswithin the tenant's management console.
  • Obtained an access tokento make authorized requests on the tenant.
  • zip files containing theme metadata or extension metadata to upload to the tenant.

Variable substitution

Throughout this tutorial, variables will be used to communicate value placement. The variable substitution format is <VARIABLE_NAME>. Here is a list of commonly referred to variables.

<HOSTNAME>The domain for the tenant you are accessing. Equivalent to
<ACCESS_TOKEN>A bearer token for authorizing https requests to a tenant.

1 Upload a theme

Upload a theme to a tenant using the

themes endpoint.
curl "https://<HOSTNAME>/api/v1/themes" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: multipart/form-data" \
-F "file=@/<PATH_TO_ZIP_FILE>"

The JSON object response from the end point will return metadata describing the theme on the tenant.


2 Upload an extension

Note: Visualization extensions you upload to a tenant may have resources like images or code hosted externally. If your extension requires a content security policy directive, follow the directions in the next section.

Upload a visualization extension to a tenant using the

extensions API.
curl "https://<HOSTNAME>/api/v1/extensions" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: multipart/form-data" \
-F "file=@/<PATH_TO_ZIP_FILE>"

The JSON object response from the end point will return metadata describing the extension on the tenant.

  "author":"Jonny Q",
  "keywords":"qlik-sense, visualization",
  "file": {...},

3 Configure content security policy (CSP)

Qlik Cloud uses content security policy directives to allow content from external sources to work in end user browsers. Check with your extension provider to confirm if there are external references in the extension code requiring a CSP directive. See Managing Content Security Policy for details.

Adding a custom security policy directive is possible using the csp-origins API. In the payload of the request, you can specify any number of directives to support for an identified origin. However, you may apply only one domain origin to a CSP entry. This request will allow images, scripts, and css files from the origin domain to render in the browser.

curl "https://<HOSTNAME>/api/v1/csp-origins" \
 -X POST \
 -H "Authorization: Bearer <ACCESS_TOKEN>" \
 -H "Content-type: application/json" \
 -d '{"origin":"<CONTENT_DOMAIN>","name":"<CSP_CONFIG_NAME>","description":"<DESCRIPTION>","imgSrc":true,"scriptSrc":true,"styleSrc":true}'

The JSON object response shows the same information as the request with an id and dates for creation and modification.

  "id": "<CSP_ENTRY_ID>",
  "origin": "<CONTENT_DOMAIN>",
  "name": "<CSP_CONFIG_NAME>",
  "description": "<DESCRIPTION>",
  "imgSrc": true,
  "scriptSrc": true,
  "styleSrc": true,
  "createdDate": "2022-07-01T17:20:31.641Z",
  "modifiedDate": "2022-07-01T17:20:31.641Z"
Was this page helpful?