# Users

> Manage users, get /me and organization, update profiles and metadata, invite members — with pagination and search.

Language: en
Canonical: https://www.dailybot.com/developers/api/users
Markdown: send header `Accept: text/markdown` on any URL to receive Markdown instead of HTML.
Last Updated: 2026-07-09

---

# Users & Organization

Manage users, get context info (`/me`), retrieve organization details, update profiles and metadata, and invite members.

## Endpoints summary

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/v1/me/` | Get context info (authenticated user + organization) |
| GET | `/v1/organization/` | Get organization details |
| GET | `/v1/users/` | List all users |
| GET | `/v1/users/{uuid}/` | Get a specific user |
| PATCH | `/v1/users/{uuid}/` | Update a user |
| POST | `/v1/invite-user/` | Invite a user (see [Invitations API](/developers/api/invitations)) |

---

## GET /v1/me/

Returns information about the authenticated user and their organization.

```bash
curl -X GET "https://api.dailybot.com/v1/me/" \
  -H "X-API-KEY: $DAILYBOT_API_KEY"
```

**Response (200 OK):**

```json
{
  "id": "usr_abc123",
  "email": "you@company.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "role": "admin",
  "timezone": "America/New_York",
  "organization": {
    "id": "org_xyz789",
    "name": "Acme Corp",
    "plan": "pro"
  }
}
```

---

## GET /v1/organization/

Returns the organization details for the authenticated API key.

```bash
curl -X GET "https://api.dailybot.com/v1/organization/" \
  -H "X-API-KEY: $DAILYBOT_API_KEY"
```

**Response (200 OK):**

```json
{
  "id": "org_xyz789",
  "name": "Acme Corp",
  "plan": "pro",
  "member_count": 45,
  "created_at": "2023-01-15T00:00:00Z"
}
```

---

## GET /v1/users/

Returns all users in the organization. Paginated (default ordering: `full_name`).

### Query parameters

| Name | Type | Default | Description |
|------|------|---------|-------------|
| `page` | integer | 1 | Page number (1-indexed). `offset` accepted as alias. |
| `page_size` | integer | 50 | Items per page (max 200). `limit` accepted as alias. |
| `search` | string | — | Case-insensitive search on full name or email (max 256 chars). |
| `is_active` | boolean | — | Filter by active status. |
| `role` | string | — | Filter by role: `admin` or `member`. |

```bash
curl "https://api.dailybot.com/v1/users/?is_active=true&search=alice&page_size=50" \
  -H "X-API-KEY: $DAILYBOT_API_KEY"
```

**Response (200 OK):**

```json
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "uuid": "usr_abc123",
      "email": "alice@company.com",
      "first_name": "Alice",
      "last_name": "Smith",
      "role": "member",
      "is_active": true,
      "timezone": "America/New_York"
    }
  ]
}
```

### Iterating all users

```bash
PAGE=1
while true; do
  RESP=$(curl -s "https://api.dailybot.com/v1/users/?is_active=true&page=$PAGE&page_size=100" \
    -H "X-API-KEY: $DAILYBOT_API_KEY")
  echo "$RESP" | jq '.results[]'
  NEXT=$(echo "$RESP" | jq -r '.next')
  [ "$NEXT" = "null" ] && break
  PAGE=$((PAGE + 1))
done
```

---

## GET /v1/users/{uuid}/

Returns a specific user.

```bash
curl -X GET "https://api.dailybot.com/v1/users/usr_abc123/" \
  -H "X-API-KEY: $DAILYBOT_API_KEY"
```

---

## PATCH /v1/users/{uuid}/

Updates a user's profile or metadata. Only Org Administrators can update other users.

### Body parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `first_name` | string | No | User's first name. |
| `last_name` | string | No | User's last name. |
| `timezone` | string | No | IANA timezone string (e.g. `America/New_York`). |
| `metadata` | object | No | Custom key-value metadata for the user. |

```bash
curl -X PATCH "https://api.dailybot.com/v1/users/usr_abc123/" \
  -H "X-API-KEY: $DAILYBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "timezone": "Europe/London",
    "metadata": { "department": "Engineering", "location": "London" }
  }'
```

**Response (200 OK):**

```json
{
  "uuid": "usr_abc123",
  "email": "jane@company.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "timezone": "Europe/London",
  "metadata": { "department": "Engineering", "location": "London" }
}
```

## Endpoints in this group

Read the organization directory, look up user profiles, and update user metadata. Accepts both API keys and CLI Bearer tokens.

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/v1/me/` | Current authenticated identity |
| GET | `/v1/users/` | List organization members |
| GET | `/v1/users/{uuid}/` | Retrieve a user by UUID |
| PATCH | `/v1/users/{uuid}/` | Update a user |
| PATCH | `/v1/users/{uuid}/update-metadata/` | Update user metadata |

### GET `/v1/me/`

**Current authenticated identity**

Returns the current authenticated user (or agent identity for API-Key requests). Supports include_email query.

- **Auth:** API key (`X-API-KEY`), CLI Bearer (read), OAuth 2.0
- **Rate limit:** `default`
- **Pagination:** No pagination

#### Query parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `include_email` | boolean | No | Include email in response. Default false. |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |

#### Example (curl)

```bash
curl -sS -X GET 'https://api.dailybot.com/v1/me/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

### GET `/v1/users/`

**List organization members**

Paginated list of users. Supports search, only_active, include_email.

- **Auth:** API key (`X-API-KEY`), CLI Bearer (read)
- **Rate limit:** `default`
- **Pagination:** Page-number pagination

#### Query parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `search` | string | No | Filter by name, email, or external ID (case-insensitive). |
| `only_active` | boolean | No | If set, return only active users. |
| `include_email` | boolean | No | Include email in each user object. |
| `page` | integer | No | Page number (page-number pagination). |
| `page_size` | integer | No | Page size (default 20, max 100). |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |

#### Example (curl)

```bash
curl -sS -X GET 'https://api.dailybot.com/v1/users/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

### GET `/v1/users/{uuid}/`

**Retrieve a user by UUID**

Retrieves a single user by their UUID.

- **Auth:** API key (`X-API-KEY`), CLI Bearer (read)
- **Rate limit:** `default`
- **Pagination:** No pagination

#### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `uuid` | string (uuid) | Yes | — |

#### Query parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `include_email` | boolean | No | — |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |
| `404` | Not found or not visible |

#### Example (curl)

```bash
curl -sS -X GET 'https://api.dailybot.com/v1/users/{uuid}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

### PATCH `/v1/users/{uuid}/`

**Update a user**

Partially update a user profile.

- **Auth:** API key (`X-API-KEY`), CLI Bearer (write)
- **Rate limit:** `default`
- **Pagination:** No pagination

#### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `uuid` | string (uuid) | Yes | — |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |
| `400` | Validation error |
| `404` | Not found or not visible |

#### Example (curl)

```bash
curl -sS -X PATCH 'https://api.dailybot.com/v1/users/{uuid}/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

### PATCH `/v1/users/{uuid}/update-metadata/`

**Update user metadata**

Merge arbitrary key/value metadata onto a user.

- **Auth:** API key (`X-API-KEY`), CLI Bearer (write)
- **Rate limit:** `default`
- **Pagination:** No pagination

#### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `uuid` | string (uuid) | Yes | — |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |
| `400` | Validation error |
| `404` | Not found or not visible |

#### Example (curl)

```bash
curl -sS -X PATCH 'https://api.dailybot.com/v1/users/{uuid}/update-metadata/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

---

## Developer portal navigation

**Getting Started**

- [Overview](/developers)
- [Quick start](/developers/getting-started)
- [Authentication](/developers/authentication)

**API Reference**

- [API Overview](/developers/api)
- [Users](/developers/api/users) (this page)
- [Organization](/developers/api/organization)
- [Teams](/developers/api/teams)
- [Invitations](/developers/api/invitations)
- [Check-ins](/developers/api/check-ins)
- [Forms](/developers/api/forms)
- [Report channels](/developers/api/report-channels)
- [Templates](/developers/api/templates)
- [Kudos](/developers/api/kudos)
- [Mood tracking](/developers/api/mood)
- [Important dates](/developers/api/important-dates)
- [Messaging](/developers/api/messaging)
- [Automations](/developers/api/workflows)
- [Webhooks](/developers/api/webhooks)
- [Commands platform](/developers/api/commands-platform)
- [Agents](/developers/api/agents)
- [OAuth2](/developers/api/oauth2)
- [Integrations](/developers/api/integrations)
- [CLI](/developers/api/cli)

**API guides**

- [Errors & Status Codes](/developers/errors)
- [Rate Limits](/developers/rate-limits)
- [Conventions](/developers/conventions)
- [API Changelog](/developers/api-changelog)
- [Recipes](/developers/recipes)

**Developer Features**

- [Custom commands](/developers/custom-commands)
- [Serverless commands](/developers/serverless)
- [Webhooks & events](/developers/webhooks)
- [Automation API trigger](/developers/workflow-trigger)
- [Activity API](/developers/activity-api)

**CLI**

- [Overview](/developers/cli)
- [Authentication](/developers/cli-authentication)
- [Command reference](/developers/cli-reference)
- [CI/CD recipes](/developers/cli-ci-cd)
- [Configuration](/developers/cli-configuration)
- [Troubleshooting](/developers/cli-troubleshooting)

**Agent Skill**

- [Overview](/developers/agent-skill)
- [Skills catalog](/skills)

---

## Site navigation

**Product:**
- [Home](/)
- [Product](/product)
- [Pricing](/pricing)
- [Enterprise](/enterprise)
- [Integrations](/integrations)
- [Templates](/templates)

**Resources:**
- [Blog](/blog)
- [Academy](/academy)
- [Changelog](/changelog)
- [Help Center](/help)
- [Developers](/developers)
- [Agents](/agents)

**Company:**
- [About](/about)
- [Careers](/careers)
- [Security](/security)
- [Contact Sales](/demo)

**Connect:**
- [LinkedIn](https://www.linkedin.com/company/dailybot/)
- [X/Twitter](https://twitter.com/dailybot)
- [GitHub](https://github.com/Dailybot-Inc)
- [YouTube](https://www.youtube.com/channel/UC3uM9V52vwX7e3vQpCc4qvA)

