curl --location 'https://api.weya.live/backend/api/holiday-list/templates/IN' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Template holidays fetched successfully",
"errorMessage": null,
"data": [
{ "label": "Republic Day", "date": "2026-01-26" },
{ "label": "Independence Day", "date": "2026-08-15" },
{ "label": "Mahatma Gandhi Jayanti", "date": "2026-10-02" }
]
}
Holiday Lists
Get Template Holidays
Get a ready-made list of public holidays for a country.
GET
/
api
/
holiday-list
/
templates
/
{region}
curl --location 'https://api.weya.live/backend/api/holiday-list/templates/IN' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Template holidays fetched successfully",
"errorMessage": null,
"data": [
{ "label": "Republic Day", "date": "2026-01-26" },
{ "label": "Independence Day", "date": "2026-08-15" },
{ "label": "Mahatma Gandhi Jayanti", "date": "2026-10-02" }
]
}
Overview
Get the public holidays for a country, ready to send asholidays to Create Holiday List. Nothing is saved by this call.
The templates contain 2026 dates only. For other years, edit the dates before saving them.
Prerequisites
- An API key for your workspace
Endpoint
Request
Country code:
IN (India), US (United States), AU (Australia) or AE (GCC / UAE). Not case-sensitive.curl --location 'https://api.weya.live/backend/api/holiday-list/templates/IN' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Template holidays fetched successfully",
"errorMessage": null,
"data": [
{ "label": "Republic Day", "date": "2026-01-26" },
{ "label": "Independence Day", "date": "2026-08-15" },
{ "label": "Mahatma Gandhi Jayanti", "date": "2026-10-02" }
]
}
Error Handling
- 400 Bad Request –
Unsupported region: …. Supported regions: IN, US, AU, AE. - 401 Unauthorized – Missing or invalid API key.
- 500 Internal Server Error – Unexpected server error.
Send the returned list as
holidays to POST /api/holiday-list to save it as a holiday list.Was this page helpful?

