Skip to main content

Read a single user in the caller's agency hierarchy.

Fetch one user by Better Auth id. The id MUST belong to the caller's agency hierarchy (self-read, direct reports, or nested reports up to 5 levels deep). Any id outside the hierarchy - including platform roles (super_admin, admin) - returns 404 user_not_found. We NEVER return 403 to avoid confirming that a given id exists in another agency (Security Non-Negotiable #8).

MethodPath
GET/api/v1/users/{user_id}

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

Parameters

NameInRequiredTypeDescription
user_idpathyesstringBetter Auth user id (nanoid).

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/{user_id}" \
-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/{user_id}",
headers={
"Authorization": f"Bearer {os.environ['VALARA_API_KEY']}",
"Content-Type": "application/json",
},
)
res.raise_for_status()
print(res.json())

See also