Skip to main content

Get Users Admin

List users with role-based filtering and isolation.

Supports admin "view_as" feature:

  • When admin provides view_as=user_id (photographer/broker), shows that user's managed users
  • Non-admins: view_as is ignored, always shows their own managed users
MethodPath
GET/api/v1/users/

Primary host: https://valara.cloud (legacy alias: https://dash.jacoballenmedia.com).

Parameters

NameInRequiredTypeDescription
rolequerynostringFilter by user role
is_activequerynostringFilter by active status
searchquerynostringSearch by name or email
view_asquerynostringAdmin-only: View data for a specific photographer/broker
pagequerynointeger
limitquerynointeger

Request body

(no request body)

Response

null

Responses

StatusDescription
200Successful Response
422Validation Error (see error codes)

Examples

curl

curl -X GET "https://valara.cloud/api/v1/users/" \
-H "Authorization: Bearer $VALARA_API_KEY" \
-H "Content-Type: application/json"

Python

import os
import uuid
import httpx
res = httpx.request(
"GET",
"https://valara.cloud/api/v1/users/",
headers={
"Authorization": f"Bearer {os.environ['VALARA_API_KEY']}",
"Content-Type": "application/json",
},
)
res.raise_for_status()
print(res.json())

See also