# Important dates

> Create and list important dates via the Dailybot public API — including programmatic time off (PTO / OOO). Singular path /v1/important-date/.

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

---

# Important dates

Use the **Important dates** API to create and read product calendar entries: **time off (PTO / OOO)**, holidays, birthdays, anniversaries, reminders, and custom dates.

The endpoint cards above are the full contract. This section answers the questions agents and integrators get wrong most often.

## Can I set time off via the API?

**Yes.** Product time off is an important-date row with type `time_off`.

```http
POST /v1/important-date/
Content-Type: application/json
```

```json
{
  "important_date_type": "time_off",
  "name": "Vacation",
  "start_date": "2026-07-15",
  "end_date": "2026-07-17",
  "scope_user": true,
  "user_uuid": "<member-uuid>"
}
```

That creates the **same** time-off record the web app and chat flows create. While the member is inside the range, Dailybot treats them as on time off: check-ins and follow-ups can skip them, and bot messages can honor `skip_users_on_time_off`. User list responses may show `timeoff_start` / `timeoff_end` when set.

## Path is singular (common trap)

| Correct | Incorrect (does not exist) |
|---------|----------------------------|
| `/v1/important-date/` | `/v1/important-dates/` |
| `/v1/important-date/{date-uuid}/` | `/v1/important-dates/{id}/` |

Always use the singular resource name.

## Personal PTO vs organization holiday

| Goal | Body |
|------|------|
| Member on leave | `important_date_type: "time_off"`, `scope_user: true`, `user_uuid: "<uuid>"`, `start_date` + `end_date` |
| Company-wide holiday | `important_date_type: "holiday"` (or `time_off`), **omit** `scope_user` (or set `false`) — no `user_uuid` |

For a single day off, set `start_date` and `end_date` to the **same** `YYYY-MM-DD`.

## Field names that matter

| Use this | Do not invent |
|----------|----------------|
| `important_date_type` | `date_type`, `type` |
| `name` (non-empty title) | `title`, `label` |
| `start_date` / `end_date` | a single `date` field |
| `scope_user` + `user_uuid` | nested `user: { ... }` only |
| List query `?uuid=<user-uuid>` | `?user_uuid=` |

`name` must be a valid title (invalid values return 400). Dates are ISO calendar dates: `YYYY-MM-DD`.

## Types

`time_off` · `birthday` · `anniversary` · `holiday` · `reminder` · `custom`

## Auth and who can create

- **API key** (`X-API-KEY`) or **CLI token** with write capability.
- Creating a date also requires permission for the requested scope (yourself, another member, or organization-wide). Unauthorized creates return **403**.

## List a member's dates (including time off)

```bash
curl -sS -X GET "https://api.dailybot.com/v1/important-date/?uuid=USER_UUID" \
  -H "Accept: application/json" \
  -H "X-API-KEY: $DAILYBOT_API_KEY"
```

Query param `uuid` is the **user** UUID. Path param on retrieve is the **date entry** UUID.

## Resolve the member first

```bash
curl -sS -X GET "https://api.dailybot.com/v1/users/?search=jane" \
  -H "X-API-KEY: $DAILYBOT_API_KEY"
```

Use the returned user `uuid` as `user_uuid` on create and as `uuid` on list.

## What this API is not

- It is **not** an HR policy or payroll system. It sets Dailybot product availability / calendar state.
- It is separate from any internal “notify HR” form your organization may run.
- Successful create returns **HTTP 200** (not 201).

## Agent quick checklist

1. Path: `POST https://api.dailybot.com/v1/important-date/` (singular).
2. Type: `"time_off"`.
3. Range: `start_date` + `end_date` as `YYYY-MM-DD`.
4. Person: `scope_user: true` and `user_uuid`.
5. Title: `name` (invalid values return 400).
6. Auth: API key or CLI write token; permission for the target scope.

## Endpoints in this group

Create and list important dates — including programmatic time off (PTO / OOO), holidays, birthdays, and anniversaries. Path is singular: `/v1/important-date/`.

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/v1/important-date/` | List important dates for a user |
| GET | `/v1/important-date/{uuid}/` | Retrieve one important date |
| POST | `/v1/important-date/` | Create an important date (including time off) |

### GET `/v1/important-date/`

**List important dates for a user**

Returns upcoming important dates visible for the given user (org-level dates plus that user's personal dates, including `time_off`). The path is **singular** `/v1/important-date/` — there is no `/v1/important-dates/` route. Query param is `uuid` (the **user** UUID), not `user_uuid`.

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

#### Query parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `uuid` | string (UUID) | Yes | User UUID whose dates to list. Required. Resolve members via `GET /v1/users/`. |
| `page` | integer | No | Page number (page-number pagination). |
| `page_size` | integer | No | Page size (defaults follow the platform page-number pagination). |

#### Response body

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `count` | integer | Yes | Total number of matching date rows. |
| `next` | string (url) | null | No | URL of the next page, or null on the last page. |
| `previous` | string (url) | null | No | URL of the previous page, or null on the first page. |
| `results` | array<object> | Yes | Important-date objects for this page (see fields on each row). |
| `results[].uuid` | string (UUID) | Yes | Important-date entry ID. |
| `results[].name` | string | Yes | Title / label of the date entry. |
| `results[].important_date_type` | string | Yes | One of: `time_off`, `birthday`, `anniversary`, `holiday`, `reminder`, `custom`. |
| `results[].start_date` | string (YYYY-MM-DD) | null | No | Inclusive start date. |
| `results[].end_date` | string (YYYY-MM-DD) | null | No | Inclusive end date. |
| `results[].user` | object | null | No | Small user object when the date is user-scoped; `null` for organization-wide dates. |
| `results[].is_specific_date` | boolean | Yes | Whether the entry is treated as a one-off specific date. |
| `results[].metadata` | object | null | No | Optional free-form metadata (for example calendar sync IDs). |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing, invalid, or expired credential |
| `403` | Authenticated but not permitted for this organization |
| `404` | User UUID not found in the organization (`user_does_not_exists`) |
| `429` | Throttled — Retry-After header set |

#### Example (curl)

```bash
curl -sS -X GET 'https://api.dailybot.com/v1/important-date/?uuid=USER_UUID' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

#### Notes

- Path is singular: `/v1/important-date/`. The plural `/v1/important-dates/` does not exist.
- Product time off is stored as `important_date_type: "time_off"`. Listing a user who is on leave returns those rows here.

### GET `/v1/important-date/{uuid}/`

**Retrieve one important date**

Returns a single important-date row by its own entry UUID (not the user UUID). Use this after create, or when you already have the date `uuid` from a list response.

- **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 | Important-date entry UUID (from create or list), not the user UUID. |

#### Response body

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `uuid` | string (UUID) | Yes | Important-date entry ID. |
| `name` | string | Yes | Title / label. |
| `important_date_type` | string | Yes | `time_off` | `birthday` | `anniversary` | `holiday` | `reminder` | `custom`. |
| `start_date` | string (YYYY-MM-DD) | null | No | Inclusive start date. |
| `end_date` | string (YYYY-MM-DD) | null | No | Inclusive end date. |
| `user` | object | null | No | User object when scoped to a member; `null` for org-wide dates. |
| `is_specific_date` | boolean | Yes | Whether the entry is a one-off specific date. |
| `metadata` | object | null | No | Optional free-form metadata. |

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing, invalid, or expired credential |
| `403` | Authenticated but not permitted |
| `404` | Date not found or not visible (`important_date_does_not_exists`) |
| `429` | Throttled — Retry-After header set |

#### Example (curl)

```bash
curl -sS -X GET 'https://api.dailybot.com/v1/important-date/DATE_UUID/' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

#### Notes

- Path parameter `uuid` is the **date entry** ID. To list by person, use `GET /v1/important-date/?uuid=<user_uuid>` instead.

### POST `/v1/important-date/`

**Create an important date (including time off)**

Creates a product important-date row. **This is how you set time off programmatically:** send `important_date_type: "time_off"`, a `name`, inclusive `start_date` / `end_date` (`YYYY-MM-DD`), and for a person set `scope_user: true` with `user_uuid`. The same storage powers web “manage time off”, chat time-off, check-in / follow-up skip-while-away, and Google Calendar OOO sync. Path is singular `/v1/important-date/` (not plural). Successful create returns **HTTP 200** with the created object (not 201).

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

#### Request body

##### core

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `important_date_type` | string | Yes | Type of date. For PTO / OOO / vacation use **`time_off`**. Other values: `birthday`, `anniversary`, `holiday`, `reminder`, `custom`. |
| `name` | string | Yes | Title shown in the product (for example `"Vacation"` or `"PTO"`). Invalid values return HTTP 400. |
| `start_date` | string (YYYY-MM-DD) | Yes | Inclusive start date in `YYYY-MM-DD` (ISO calendar date). |
| `end_date` | string (YYYY-MM-DD) | Yes | Inclusive end date in `YYYY-MM-DD`. For a single day off, set `start_date` and `end_date` to the same day. |

##### user_scope

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `scope_user` | boolean | No | When `true`, the date is attached to a specific member and **`user_uuid` is required**. When omitted or `false`, the date is organization-wide (`user` is null) — use that for company holidays, not personal PTO. |
| `user_uuid` | string (UUID) | No | Target member UUID. **Required when `scope_user` is true.** Resolve with `GET /v1/users/`. Do not send a nested `user` object — the field name is `user_uuid`. |

##### optional

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `metadata` | object | No | Optional free-form JSON (for example your own calendar event id for client-side idempotency). |

#### Response body

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `uuid` | string (UUID) | Yes | Created entry ID. |
| `name` | string | Yes | Echo of the title. |
| `important_date_type` | string | Yes | Echo of the type (for time off: `time_off`). |
| `start_date` | string (YYYY-MM-DD) | Yes | Inclusive start date. |
| `end_date` | string (YYYY-MM-DD) | Yes | Inclusive end date. |
| `user` | object | null | No | Small user object when `scope_user` was true; otherwise null. |
| `is_specific_date` | boolean | Yes | Server-set flag for the entry. |
| `metadata` | object | null | No | Stored metadata, if any. |

#### Error codes

| Status | When |
|--------|------|
| `400` | Validation error (missing required fields, bad date format, name too short) |
| `401` | Missing, invalid, or expired credential |
| `403` | Authenticated but not allowed to create a date for the requested scope (self, another member, or organization-wide). |
| `404` | Target user UUID not found when `scope_user` is true |
| `429` | Throttled — Retry-After header set |

#### Example (curl)

```bash
curl -sS -X POST 'https://api.dailybot.com/v1/important-date/' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: $DAILYBOT_API_KEY' \
  -d '{
    "important_date_type": "time_off",
    "name": "Vacation",
    "start_date": "2026-07-15",
    "end_date": "2026-07-17",
    "scope_user": true,
    "user_uuid": "USER_UUID"
  }'
```

#### Scenario examples

##### Personal time off (PTO)

```bash
curl -sS -X POST 'https://api.dailybot.com/v1/important-date/' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: $DAILYBOT_API_KEY' \
  -d '{
    "important_date_type": "time_off",
    "name": "Vacation",
    "start_date": "2026-07-15",
    "end_date": "2026-07-17",
    "scope_user": true,
    "user_uuid": "USER_UUID"
  }'
```

##### Single day off

```bash
curl -sS -X POST 'https://api.dailybot.com/v1/important-date/' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: $DAILYBOT_API_KEY' \
  -d '{
    "important_date_type": "time_off",
    "name": "Personal day",
    "start_date": "2026-08-01",
    "end_date": "2026-08-01",
    "scope_user": true,
    "user_uuid": "USER_UUID"
  }'
```

##### Organization holiday (no user)

```bash
curl -sS -X POST 'https://api.dailybot.com/v1/important-date/' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: $DAILYBOT_API_KEY' \
  -d '{
    "important_date_type": "holiday",
    "name": "Company holiday",
    "start_date": "2026-12-25",
    "end_date": "2026-12-25"
  }'
```

#### Notes

- **Yes, you can set time off via API.** Use this POST with `important_date_type: "time_off"`, `scope_user: true`, and `user_uuid`. That creates the same product time-off record as the web UI and chat flows.
- Path is singular: `POST https://api.dailybot.com/v1/important-date/`. The plural `/v1/important-dates/` does not exist and will 404.
- While a member is inside a `time_off` (or holiday) range, Dailybot treats them as on time off: check-ins and follow-ups can skip them, and bot messages can honor `skip_users_on_time_off`. User list fields include `timeoff_start` / `timeoff_end` when set.
- CLI tokens need write capability on this endpoint. Creating dates for another member or organization-wide also requires permission for that scope (403 if not allowed).
- This endpoint is product time off. It is separate from any internal HR notification form your organization may use.

---

## 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)
- [Organization](/developers/api/organization)
- [Teams](/developers/api/teams)
- [Invitations](/developers/api/invitations)
- [Check-ins](/developers/api/check-ins)
- [Forms](/developers/api/forms)
- [Labels](/developers/api/labels)
- [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) (this page)
- [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)
- [Plan · Projects](/developers/api/plan-projects)
- [Plan · Goals](/developers/api/plan-goals)
- [Plan · Boards](/developers/api/plan-boards)
- [Plan · Tasks](/developers/api/plan-tasks)
- [Plan · Comments & files](/developers/api/plan-collaboration)
- [Plan · Home & search](/developers/api/plan-home)
- [Plan · Notifications & reports](/developers/api/plan-notifications)

**Dailybot Plan**

- [Overview](/developers/plan)
- [Concepts](/developers/plan/concepts)
- [Quickstart](/developers/plan/quickstart)
- [Authentication & scopes](/developers/plan/authentication)
- [Agents on Plan](/developers/plan/agents)
- [Conventions](/developers/plan/conventions)
- [Errors](/developers/plan/errors)
- [CLI for Plan](/developers/plan/cli)
- [Agent skill](/developers/plan/agent-skill)
- [Recipe: live board](/developers/plan/recipes/board-live-updates)
- [Recipe: home in one request](/developers/plan/recipes/home-in-one-request)
- [Recipe: bulk create](/developers/plan/recipes/bulk-create)
- [Recipe: move on PR merge](/developers/plan/recipes/move-on-pr-merge)
- [Recipe: goal progress](/developers/plan/recipes/goal-progress)
- [Recipe: webhooks](/developers/plan/recipes/webhooks)

**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)

**MCP**

- [Setup guide](/developers/mcp)
- [Product overview](/mcp)

**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)

