/v1/holiday-templatesbetaList holiday templates
- Needs
- Read your data
(mcp:read) - Plan
- Any plan with API access
- Limits
- 300 a minute per key
- Undo
- Nothing to undo: this only reads.
The countries whose public holidays you can import into a calendar, each with the years available (this year and the next three).
Try it
Query (1)
Only this country (ISO 3166-1 alpha-2, e.g. `IN`).
This only reads. It uses your real data and changes nothing.
Code and response
curl -X GET 'https://api.wa-api.cloud/v1/holiday-templates' \ -H "Authorization: Bearer $API_KEY"
The code reads your key from $API_KEY.
Parameters
| Field | Type | What it is |
|---|---|---|
| country_code | string · query | Only this country (ISO 3166-1 alpha-2, e.g. IN).pattern ^[A-Za-z]{2}$ |
Headers
| Field | Type | What it is |
|---|---|---|
| Authorizationrequired | header | Bearer $API_KEY — your API key. |
| Api-Version | header | The API version to use, e.g. 2026-10-01. Default: the version your key is pinned to.one of: 2026-10-01 · pattern ^\d{4}-\d{2}-\d{2}$ |
Response 200
The available templates.
| Field | Type | What it is |
|---|---|---|
| itemsrequired | array of object | |
| country_coderequired | string | |
| country_namerequired | string | |
| yearsrequired | array of integer | Years that can be imported (this year and the next three). |
Errors
Errors are application/problem+json. Branch on code.
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | A field is missing or has the wrong format. |
| 401 | unauthenticated | The Authorization header is missing, the key is unknown, expired or revoked, or the request came from an address outside the key's IP allowlist (checked on every operation, before anything runs). |
| 403 | entitlement_required | The workspace's plan does not include API access ( |
| 403 | insufficient_scope | The key does not have the permission this operation needs. Checked before the body and headers: without the permission, this is the answer whatever was sent. |
| 429 | rate_limited | The key or workspace went over its rate limit, or a service behind the API asked to slow down. Wait for |
| 503 | upstream_unavailable | A service behind the API is briefly unavailable. Safe to retry with backoff. |
Examples
All countries
Response 200
{
"items": [
{
"country_code": "AE",
"country_name": "United Arab Emirates",
"years": [
2026,
2027,
2028,
2029
]
},
{
"country_code": "IN",
"country_name": "India",
"years": [
2026,
2027,
2028,
2029
]
}
]
}Operation path
The same operation is also at POST /v1/ops/business_hours_holiday_templates, with every field in the JSON body.