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

> Get user

- **Tag:** user
- **Operation ID:** `get_user_api_v1_users__user_id__get`

## Description

Retrieve a specific user's profile by their UUID.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `user_id` (path, string · uuid, required)

## Responses

### 200 — Successful Response

Schema: `UserResponse`

- `email` (string · email · required) — User email address (unique identifier).
- `first_name` (string) — User's first name.
- `last_name` (string) — User's last name.
- `photo_url` (string) — URL to user's profile photo.
- `onboarded` (boolean) — Whether user has completed onboarding.
- `props` (object) — Additional user properties/settings.
- `id` (string · required) — User UUID.
- `created_at` (string · date-time · required) — Account creation timestamp.
- `updated_at` (string · date-time · required) — Last profile update timestamp.
- `firm_ids` (array · string) — Advisory firm UUIDs the user belongs to.
- `role` (Role) — User's role in a business (only included when filtering by business_id).

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/users/{user_id}' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/users/{user_id}', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/users/{user_id}", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/user/get-user
- OpenAPI slice: https://www.ondayzero.com/docs/reference/user/get-user/openapi.json
- Other endpoints in **user**: https://www.ondayzero.com/docs/reference/user
