# Get user "suspension" status via API

**URL:** https://meta.discourse.org/t/get-user-suspension-status-via-api/147433
**Category:** Development
**Created:** [April 9, 2020, 4:47pm UTC](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433 "2020-04-09T16:47:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)
#### Post date: [April 9, 2020, 4:47pm UTC](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433/1 "2020-04-09T16:47:28Z")

</div>

Is there any way to get a user’s “suspended” status via the API? I can’t find anything in the docs, I don’t see a specific XHR request that grabs this 😉 and I don’t see that field the user record when I just get the whole user object (though I do see suspended and muted flags).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 9, 2020, 9:08pm UTC](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433/2 "2020-04-09T21:08:07Z")

</div>

> [@pnoeric](#):
>
> get a user’s “suspended” status

> [@pnoeric](#):
>
> though I do see suspended .. flags)

I’m not following. What are you looking for? The suspension sentence text?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [April 9, 2020, 9:13pm UTC](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433/3 "2020-04-09T21:13:21Z")

</div>

I believe you want to look at `suspend_reason` and `suspended_till` fields. If they are set, it means the user is suspended.

---

<div class="post-metadata">

### Author: ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)
#### Post date: [April 10, 2020, 7:30am UTC](https://meta.discourse.org/t/get-user-suspension-status-via-api/147433/4 "2020-04-10T07:30:28Z")

</div>

> [@codinghorror](#):
>
> > [@pnoeric](#):
> >
> > get a user’s “suspended” status
> 
> > [@pnoeric](#):
> >
> > though I do see suspended … flags)
> 
> I’m not following. What are you looking for? The suspension sentence text?

Whoops - typo on my part. But I see now the fields I need, from @arkshine.
