Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Get available holiday countries

Retrieves the complete list of available holiday countries and states that can be used for holiday configurations.

What is returned:

  • List of all supported holiday regions with:
    • code: Country/region code (e.g., “US”, “DE”, “US-CA”, “AT”)
    • name: Localized country/region name (e.g., “United States”, “Germany”, “California”, “Austria”)

How to use:

  • Use these codes when setting default holiday settings or individual employee holiday rules
  • Country codes follow ISO 3166-1 alpha-2 format (e.g., “US”, “DE”)
  • State codes use format “COUNTRY-STATE” (e.g., “US-CA” for California, “US-NY” for New York)
  • Use the language query parameter to get country names in a specific language (default: “en”)

Note: This list includes all regions for which Leadtime has official holiday data. Holidays are automatically loaded from official sources for these regions.

GET/holidays/countries
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Query parameters
languagestringrequired
Responses
200Holiday countries retrieved successfully
Array of HolidayCountryDto
codestringrequired
Country or region code in ISO 3166-1 alpha-2 format. For states/provinces, uses format "COUNTRY-STATE" (e.g., "US-CA" for California).
namestringrequired
Localized country or region name in the requested language. Names are provided in the language specified by the `language` query parameter.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/holidays/countries?language=string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
[
  {
    "code": "US",
    "name": "United States"
  }
]