Qlik Community

Ask a Question

Knowledge Base

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
QlikWorld Online 2021, May 10-12: Our Free, Virtual, Global Event REGISTER TODAY

How to Generate API Keys in Qlik Sense SaaS using APIs

Sonja_Bauernfeind
Digital Support
Digital Support

How to Generate API Keys in Qlik Sense SaaS using APIs

 

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
Revision #:
1 of 1
Last update:
Monday
Updated by: