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
| Method | Path |
|---|---|
GET | /api/v1/users/ |
Primary host: https://valara.cloud (legacy alias: https://dash.jacoballenmedia.com).
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
role | query | no | string | Filter by user role |
is_active | query | no | string | Filter by active status |
search | query | no | string | Search by name or email |
view_as | query | no | string | Admin-only: View data for a specific photographer/broker |
page | query | no | integer | |
limit | query | no | integer |
Request body
(no request body)
Response
null
Responses
| Status | Description |
|---|---|
200 | Successful Response |
422 | Validation 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())