---
title: "Get a List of Public Holidays"
method: GET
path: "/api/publicholidays"
tags: ["PublicHolidays"]
---

# Get a List of Public Holidays

`GET /api/publicholidays`

## Request

- Base URL: `https://app.timetastic.co.uk` (the document declares no server; this is the origin it was published from)
- URL: `https://app.timetastic.co.uk/api/publicholidays`
- Auth: none declared

Get a collection of public holidays for your organisation.
            
Results are always scoped to your organisation, so a filter that matches nothing — an unknown country
code, user or public holiday set, or a user in another organisation — returns an empty list rather than
an error.

## Query parameters

- `countryCode` string
- `year` integer
- `userId` integer
- `bankHolidaySetId` integer
- `useOrgLeaveYear` boolean

## Response `200`

The matching public holidays. An empty list if nothing matched the filter.

- TimetasticWebApiResourceModelsPublicHoliday[]
  - `id` integer: The unique Id for this public holiday
  - `name` string, nullable: The name of the holiday
  - `date` string, date-time: The public holiday date
  - `formattedDate` string, nullable: A formatted string representation of the public holiday date
  - `createdAt` string, date-time: When the public holiday was created
  - `updatedAt` string, date-time: When the public holiday was last updated
  - `countryCode` string, nullable: The country code associated with this public holiday
  - `bankHolidaySetId` integer: The "set" (group of public holidays) that this public holiday belongs to
  - `bankHolidaySetName` string, nullable: The name of the country and region for this bank holiday set. If a custom set, the name of the set.

## Other responses

- `401`: The request was not authenticated — the API token is missing or invalid.

---

[API](https://skmtc.dev/timetastic/apis/timetastic-api.md) · [All operations](https://skmtc.dev/timetastic/apis/timetastic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/timetastic/apis/timetastic-api/revisions/709ccb0412c3?raw)
