Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Has anyone been successful in getting the qlik saas api to work using curl.
I am using this command:
curl -L -H 'authorization: bearer <your-api-key>' \ https://your-tenant.us.qlikcloud.com/api/v1/items?limit=2&resourceType=app
But get the error 401 authorization required.
Thanks,
Michael
I am finding success with:
curl -L -H 'Authorization: Bearer <your-api-key>' \
https://your-tenant.us.qlikcloud.com/api/v1/items
on my Linux Subsystem for Windows install and success with
curl -L -H "Authorization: Bearer <your-api-key>" \
https://your-tenant.us.qlikcloud.com/api/v1/items
with my curl for Windows (https://curl.se/windows/) launched through cmd.exe install.
I suspect your problem is casing. Authorization vs. authorization and Bearer vs. bearer.
Hello @mstoler
Is this still an issue ? Looking in our logs, it looks you were able to authenticate.
Hello,
Yes still an issue.
I just submitted some curl commands today. Please let me know what you see.
Thank You,
Michael
I am finding success with:
curl -L -H 'Authorization: Bearer <your-api-key>' \
https://your-tenant.us.qlikcloud.com/api/v1/items
on my Linux Subsystem for Windows install and success with
curl -L -H "Authorization: Bearer <your-api-key>" \
https://your-tenant.us.qlikcloud.com/api/v1/items
with my curl for Windows (https://curl.se/windows/) launched through cmd.exe install.
I suspect your problem is casing. Authorization vs. authorization and Bearer vs. bearer.