Important dates
Create and list important dates — including programmatic time off (PTO / OOO), holidays, birthdays, and anniversaries. Path is singular: `/v1/important-date/`.
On this page
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.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| uuid | string (UUID) | Required | User UUID whose dates to list. Required. Resolve members via GET /v1/users/. |
| page | integer | Optional | Page number (page-number pagination). |
| page_size | integer | Optional | Page size (defaults follow the platform page-number pagination). |
Response
| Name | Type | Required | Description |
|---|---|---|---|
| count | integer | Required | Total number of matching date rows. |
| next | string (url) | null | Optional | URL of the next page, or null on the last page. |
| previous | string (url) | null | Optional | URL of the previous page, or null on the first page. |
| results | array<object> | Required | Important-date objects for this page (see fields on each row). |
| results[].uuid | string (UUID) | Required | Important-date entry ID. |
| results[].name | string | Required | Title / label of the date entry. |
| results[].important_date_type | string | Required | One of: time_off, birthday, anniversary, holiday, reminder, custom. |
| results[].start_date | string (YYYY-MM-DD) | null | Optional | Inclusive start date. |
| results[].end_date | string (YYYY-MM-DD) | null | Optional | Inclusive end date. |
| results[].user | object | null | Optional | Small user object when the date is user-scoped; null for organization-wide dates. |
| results[].is_specific_date | boolean | Required | Whether the entry is treated as a one-off specific date. |
| results[].metadata | object | null | Optional | Optional free-form metadata (for example calendar sync IDs). |
Errors
| 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 |
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'Try it
This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.
- 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.
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.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| uuid | string (UUID) | Required | Important-date entry UUID (from create or list), not the user UUID. |
Response
| Name | Type | Required | Description |
|---|---|---|---|
| uuid | string (UUID) | Required | Important-date entry ID. |
| name | string | Required | Title / label. |
| important_date_type | string | Required | time_off | birthday | anniversary | holiday | reminder | custom. |
| start_date | string (YYYY-MM-DD) | null | Optional | Inclusive start date. |
| end_date | string (YYYY-MM-DD) | null | Optional | Inclusive end date. |
| user | object | null | Optional | User object when scoped to a member; null for org-wide dates. |
| is_specific_date | boolean | Required | Whether the entry is a one-off specific date. |
| metadata | object | null | Optional | Optional free-form metadata. |
Errors
| 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 |
curl -sS -X GET 'https://api.dailybot.com/v1/important-date/DATE_UUID/' \
-H 'Accept: application/json' \
-H 'X-API-KEY: $DAILYBOT_API_KEY'Try it
This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.
- Path parameter `uuid` is the **date entry** ID. To list by person, use `GET /v1/important-date/?uuid=<user_uuid>` instead.
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).
Request body
core
| Name | Type | Required | Description |
|---|---|---|---|
| important_date_type | string | Required | Type of date. For PTO / OOO / vacation use time_off. Other values: birthday, anniversary, holiday, reminder, custom. |
| name | string | Required | Title shown in the product (for example "Vacation" or "PTO"). Invalid values return HTTP 400. |
| start_date | string (YYYY-MM-DD) | Required | Inclusive start date in YYYY-MM-DD (ISO calendar date). |
| end_date | string (YYYY-MM-DD) | Required | 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 | Optional | 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) | Optional | 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 | Optional | Optional free-form JSON (for example your own calendar event id for client-side idempotency). |
Response
| Name | Type | Required | Description |
|---|---|---|---|
| uuid | string (UUID) | Required | Created entry ID. |
| name | string | Required | Echo of the title. |
| important_date_type | string | Required | Echo of the type (for time off: time_off). |
| start_date | string (YYYY-MM-DD) | Required | Inclusive start date. |
| end_date | string (YYYY-MM-DD) | Required | Inclusive end date. |
| user | object | null | Optional | Small user object when scope_user was true; otherwise null. |
| is_specific_date | boolean | Required | Server-set flag for the entry. |
| metadata | object | null | Optional | Stored metadata, if any. |
Errors
| 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 |
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"
}'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"
}'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"
}'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"
}'Try it
This is a copy-only helper — the request is not sent from your browser. Paste the command into your terminal to execute it.
- **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.
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.
POST /v1/important-date/
Content-Type: application/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)
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
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
- Path:
POST https://api.dailybot.com/v1/important-date/(singular). - Type:
"time_off". - Range:
start_date+end_dateasYYYY-MM-DD. - Person:
scope_user: trueanduser_uuid. - Title:
name(invalid values return 400). - Auth: API key or CLI write token; permission for the target scope.