---
title: "Get Expired Users"
method: GET
path: "/api/users/expired"
tags: ["User"]
---

# Get Expired Users

`GET /api/users/expired`

Get users who have expired within the specified date range.

- **expired_after** UTC datetime (optional)
- **expired_before** UTC datetime (optional)
- At least one of expired_after or expired_before must be provided for filtering
- If both are omitted, returns all expired users

## Query parameters

- `expired_after` string, date-time, nullable
- `expired_before` string, date-time, nullable

## Response `200`

Successful Response

- string[]

## Other responses

- `401` — Unauthorized
- `422` — Validation Error

---

[API](https://skmtc.dev/atrvatam/apis/marzbanapi.md) · [All operations](https://skmtc.dev/atrvatam/apis/marzbanapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atrvatam/marzbanapi/revisions/0aa31d6bd001/schema)
