---
title: "Get user state"
method: GET
path: "/admin/users/{user_id}/state"
tags: ["Admin User State"]
---

# Get user state

`GET /admin/users/{user_id}/state`

Retrieves the state of a user.

## Path parameters

- `user_id` string, required

## Response `200`

OK

- GetUserStateResponse
  - `state` AdminUserState, required
    - `banned` boolean, required
    - `banned_at` string, date-time, nullable
    - `banned_by_user_id` string, nullable
    - `banned_reason` string, nullable
    - `banned_until` string, date-time, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `user_id` string, required

## Changes

- **2026-07-09** `dad8e2644615` — 1 info
  - endpoint added
- **2026-07-08** `d2f9387037c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/authula/apis/authula-api/changes/admin/users/:user_id/state/get.md)

---

[API](https://skmtc.dev/authula/apis/authula-api.md) · [All operations](https://skmtc.dev/authula/apis/authula-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/authula/authula-api/revisions/1a139f96a670/schema)
