API on-demand task QlikSense

"Good morning,

I’m trying to verify in Qlik Sense whether an on-demand task has been executed correctly, so I can start another report. I’ve set up the API, but I’m not getting any data back.

I’m wondering if anyone can help me with the following issue. I’m trying to use the API to check if an on-demand task in Qliksense has been executed correctly, so that I can then start another report. However, I’m not getting any data back from the API. Can anyone tell me if I’m doing something wrong? Here are the settings for the API call:

  • Method: GET
  • Endpoint: https://[sitename]:3994/api/v1/ondemand/requests
  • Content-Type: application/json

Does anyone have experience setting up a similar check? Or are there perhaps alternative ways to check the status of an on-demand task?

Any help and suggestions are welcome!

Thanks in advance,

Regards,

Corné"

Hi @c.peeters1,
Thank you for the details.
It looks like the response is empty because the on-demand requests were probably made by a different user than the one authenticated in your API request. Please verify that both users match.
A user can only see their on-demand requests.

Thank you,

As Jeremie says, this endpoint is user-scoped, so an empty response usually means the authenticated identity does not match the user who created the on-demand request. If your call goes through a virtual proxy, service account, or certificate-based connection, check which user identity is actually being resolved and compare it with the original requester. A quick test is to call the endpoint as the original user; also confirm you are checking the HTTP status and response body, since a successful empty list is different from an authentication or endpoint error.