---
title: "Get a Public Holiday"
method: GET
path: "/api/publicholidays/{id}"
tags: ["PublicHolidays"]
---

# Get a Public Holiday

`GET /api/publicholidays/{id}`

## 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/{id}`
- Auth: none declared

Gets a public holiday using the ID passed.

## Path parameters

- `id` integer, required

## Response `200`

The public holiday.

- TimetasticWebApiResourceModelsPublicHoliday: A representation of a public holiday
  - `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.
- `403`: The public holiday belongs to another organisation.
- `404`: No public holiday exists with that ID.

---

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