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,