---
title: "Fetch all users"
method: GET
path: "/auth/users"
tags: ["users"]
---

# Fetch all users

`GET /auth/users`

Retrieves all users from the database and returns them as a JSON response.

## Response `200`

OK

- User[]
  - `created_at` string
  - `id` integer
  - `password` string, required
  - `username` string, required
  - `role` 'admin' | 'viewer'

## Other responses

- `500` — Internal Server Error

## Changes

- **2025-01-23** `62cad44fb917` — 1 info
  - endpoint added
- **2023-06-29** `0e6bd4e2dcc9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api/changes/auth/users/get.md)

---

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