Determining the status of a deployment action using the REST API

I am using the REST API to trigger a deployment. The next thing I want to do is check the status in a loop until it is complete. I thought it might be the deployment process, maybe that there would be some status. However this does not seem to be the case and I didn’t see anything else in the documentation.

Does anyone know how to check the status of a deployment process?

Thanks

Nevermind, I figured it out. It’s the TaskId