How to query the id of waiting workflows

Hi @Rodrigo_Barbosa, I am afraid there currently is no supported way of querying waiting executions.

A hacky approach could be to query the execution list by using the REST API used by the n8n UI, you can find a few examples on the forum on how this can be done, however, especially for waiting workflow executions we currently have an open bug unfortunately: Bug report - Filter for "waiting" in executions not working. So before hacking your way through this you would want to wait for this to be fixed.