Skip to main content
Announcements
Qlik and Talend Support Cases are now opened in the same place.

How to Generate API Keys in Qlik Sense SaaS using APIs

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

How to Generate API Keys in Qlik Sense SaaS using APIs

Last Update:

May 10, 2022 2:59:01 PM

Updated By:

Jamie_Gregory

Created date:

Apr 12, 2021 7:09:45 AM

 

Environment

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

 

Script:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$body='{"description":"test4","expiry":"P1D"}'
$hdrs = @{}
$hdrs.Add("Authorization","Bearer eyJhbGciOiJFUzM4NCIsImtp...NOofkzjW3R1fc4h")
$hdrs.Add("content-type","application/json")
$url = "https://yourtenant.eu.qlikcloud.com/api/v1/api-keys"
Invoke-RestMethod -Uri $url -Method Post -Headers $hdrs -Body $body

 



Resources:

Qlik.Dev - Tutorial for Generating Your First API Key
Help.Qlik.Com - Generating API Key Documentation
Leveraging APIs on Qlik Sense Enterprise SaaS
Format for Time Duration 

Version history
Last update:
‎2022-05-10 02:59 PM
Updated by: