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.