Skip to content
view raw .md

Important dates

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

GET/v1/important-date/API keyCLI AuthPage-number pagination

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

NameTypeRequiredDescription
uuidstring (UUID)RequiredUser UUID whose dates to list. Required. Resolve members via GET /v1/users/.
pageintegerOptionalPage number (page-number pagination).
page_sizeintegerOptionalPage size (defaults follow the platform page-number pagination).

Response

NameTypeRequiredDescription
countintegerRequiredTotal number of matching date rows.
nextstring (url) | nullOptionalURL of the next page, or null on the last page.
previousstring (url) | nullOptionalURL of the previous page, or null on the first page.
resultsarray<object>RequiredImportant-date objects for this page (see fields on each row).
results[].uuidstring (UUID)RequiredImportant-date entry ID.
results[].namestringRequiredTitle / label of the date entry.
results[].important_date_typestringRequiredOne of: time_off, birthday, anniversary, holiday, reminder, custom.
results[].start_datestring (YYYY-MM-DD) | nullOptionalInclusive start date.
results[].end_datestring (YYYY-MM-DD) | nullOptionalInclusive end date.
results[].userobject | nullOptionalSmall user object when the date is user-scoped; null for organization-wide dates.
results[].is_specific_datebooleanRequiredWhether the entry is treated as a one-off specific date.
results[].metadataobject | nullOptionalOptional free-form metadata (for example calendar sync IDs).

Errors

StatusWhen
401Missing, invalid, or expired credential
403Authenticated but not permitted for this organization
404User UUID not found in the organization (`user_does_not_exists`)
429Throttled — 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.
GET/v1/important-date/{uuid}/API keyCLI Auth

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

NameTypeRequiredDescription
uuidstring (UUID)RequiredImportant-date entry UUID (from create or list), not the user UUID.

Response

NameTypeRequiredDescription
uuidstring (UUID)RequiredImportant-date entry ID.
namestringRequiredTitle / label.
important_date_typestringRequiredtime_off | birthday | anniversary | holiday | reminder | custom.
start_datestring (YYYY-MM-DD) | nullOptionalInclusive start date.
end_datestring (YYYY-MM-DD) | nullOptionalInclusive end date.
userobject | nullOptionalUser object when scoped to a member; null for org-wide dates.
is_specific_datebooleanRequiredWhether the entry is a one-off specific date.
metadataobject | nullOptionalOptional free-form metadata.

Errors

StatusWhen
401Missing, invalid, or expired credential
403Authenticated but not permitted
404Date not found or not visible (`important_date_does_not_exists`)
429Throttled — 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.
POST/v1/important-date/API keyCLI Auth

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

NameTypeRequiredDescription
important_date_typestringRequiredType of date. For PTO / OOO / vacation use time_off. Other values: birthday, anniversary, holiday, reminder, custom.
namestringRequiredTitle shown in the product (for example "Vacation" or "PTO"). Invalid values return HTTP 400.
start_datestring (YYYY-MM-DD)RequiredInclusive start date in YYYY-MM-DD (ISO calendar date).
end_datestring (YYYY-MM-DD)RequiredInclusive end date in YYYY-MM-DD. For a single day off, set start_date and end_date to the same day.

user_scope

NameTypeRequiredDescription
scope_userbooleanOptionalWhen 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_uuidstring (UUID)OptionalTarget 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

NameTypeRequiredDescription
metadataobjectOptionalOptional free-form JSON (for example your own calendar event id for client-side idempotency).

Response

NameTypeRequiredDescription
uuidstring (UUID)RequiredCreated entry ID.
namestringRequiredEcho of the title.
important_date_typestringRequiredEcho of the type (for time off: time_off).
start_datestring (YYYY-MM-DD)RequiredInclusive start date.
end_datestring (YYYY-MM-DD)RequiredInclusive end date.
userobject | nullOptionalSmall user object when scope_user was true; otherwise null.
is_specific_datebooleanRequiredServer-set flag for the entry.
metadataobject | nullOptionalStored metadata, if any.

Errors

StatusWhen
400Validation error (missing required fields, bad date format, name too short)
401Missing, invalid, or expired credential
403Authenticated but not allowed to create a date for the requested scope (self, another member, or organization-wide).
404Target user UUID not found when `scope_user` is true
429Throttled — 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"
  }'

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

  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.