Space status through api

I’m using autotrain to train a model. When the model is trained, the space is paused.

Is there a way to know the state of a space using huggingface_hub API ?