Skip to content
getgeolens.com

List Users

GET
/admin/users/
curl --request GET \
--url 'https://example.com/api/admin/users/?skip=0&limit=50' \
--header 'Authorization: Bearer <token>'

List all users with pagination and optional status/search filter (admin only).

skip
Skip
integer
0
limit
Limit
integer
default: 50 >= 1 <= 200
status
Any of:
string
search
Any of:
string

Successful Response

Media type application/json
UserListResponse
object
users
required
Users

Page of users matching the query.

Array<object>
UserResponse
object
id
required
Id
string format: uuid
username
required
Username
string
email
required
Any of:
string
is_active
required
Is Active
boolean
status
required
Status

Account status: active, pending, disabled

string
last_login_at
required
Any of:
string format: date-time
created_at
required
Created At
string format: date-time
roles
required
Roles

Assigned role names, e.g. [‘admin’, ‘editor’]

Array<string>
total
required
Total

Total number of users matching the query (across all pages).

integer
Example generated
{
"users": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"username": "example",
"email": "example",
"is_active": true,
"status": "example",
"last_login_at": "2026-04-15T12:00:00Z",
"created_at": "2026-04-15T12:00:00Z",
"roles": [
"example"
]
}
],
"total": 1
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}