# Space status through api

**URL:** <https://discuss.huggingface.co/t/space-status-through-api/91336>\
**Category:** Spaces\
**Created:** [June 10, 2024, 2:01pm UTC](https://discuss.huggingface.co/t/space-status-through-api/91336 "2024-06-10T14:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chsafouane](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chsafouane/32/26450_2.png) [@chsafouane](https://discuss.huggingface.co/u/chsafouane)\
**Post date:** [June 10, 2024, 2:01pm UTC](https://discuss.huggingface.co/t/space-status-through-api/91336/1 "2024-06-10T14:01:53Z")

</div>

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 ?
