List users (admin only)
GET
/api/v1/auth/users
const url = 'https://example.com/api/v1/auth/users?page=1&page_size=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/auth/users?page=1&page_size=25' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
Page
integer
page_size
Page Size
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
object
success
required
boolean
data
required
Page[UserRead]
object
items
required
Items
Array<object>
UserReadobject
id
required
Id
string format: uuid
email
required
Email
string format: email
full_name
required
Full Name
string
role
required
UserRole
string
is_active
required
Is Active
boolean
is_system
Is System
True for the synthetic principal used when AUTH_DISABLED is set.
boolean
created_at
required
Created At
string format: date-time
meta
required
PageMeta
object
total
required
Total
integer
page
required
Page
integer
page_size
required
Page Size
integer
pages
required
Pages
integer
Example
{ "success": true, "data": { "items": [ { "role": "admin", "is_system": false } ], "meta": { "total": 137, "page": 1, "page_size": 25, "pages": 6 } }}Unauthorized
Media typeapplication/json
ErrorResponse
object
Example
{ "error": { "code": "not_found", "correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60", "message": "AI system not found." }}Forbidden
Media typeapplication/json
ErrorResponse
object
Example
{ "error": { "code": "not_found", "correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60", "message": "AI system not found." }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}