API - Get status of requests

I’m aware that there is a web interface for examining requests made to the service and their status. Is there an API equivalent?

My use case: I have a node that makes a request to ECMWF. While the data is being prepared by ECMWF, my node fails and restarts. If my node tries to make the same API request with the same parameters while the previous request is still being prepared by ECMWF, the API call fails.

I’m looking at the client code and see there’s an update() method that can be used to query the API by request_id however I’m struggling to get it to work. So yes, in theory there’s a way to do it. Hoping someone has made this work before and can help.