curl --location 'https://api.weya.live/backend/api/holiday-list' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Holiday lists fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "68a1f2c3b7c7d3f123456789",
"orgId": "64e5f12345abcdef00000001",
"userId": "64e5f12345abcdef12345678",
"name": "India Holidays",
"isDefault": true,
"holidays": [
{ "label": "Republic Day", "date": "2026-01-26" },
{ "label": "Independence Day", "date": "2026-08-15" }
],
"createdAt": "2026-01-02T10:00:00.000Z",
"updatedAt": "2026-01-02T10:00:00.000Z"
}
]
}
Holiday Lists
Get Holiday Lists
Retrieve all holiday lists in your organization.
GET
/
api
/
holiday-list
curl --location 'https://api.weya.live/backend/api/holiday-list' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Holiday lists fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "68a1f2c3b7c7d3f123456789",
"orgId": "64e5f12345abcdef00000001",
"userId": "64e5f12345abcdef12345678",
"name": "India Holidays",
"isDefault": true,
"holidays": [
{ "label": "Republic Day", "date": "2026-01-26" },
{ "label": "Independence Day", "date": "2026-08-15" }
],
"createdAt": "2026-01-02T10:00:00.000Z",
"updatedAt": "2026-01-02T10:00:00.000Z"
}
]
}
Overview
List the holiday lists in your organization, including lists created by other users in it. A campaign that uses a holiday list does not place calls on the dates in it.Prerequisites
- An API key for your workspace
Endpoint
Request
curl --location 'https://api.weya.live/backend/api/holiday-list' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Holiday lists fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "68a1f2c3b7c7d3f123456789",
"orgId": "64e5f12345abcdef00000001",
"userId": "64e5f12345abcdef12345678",
"name": "India Holidays",
"isDefault": true,
"holidays": [
{ "label": "Republic Day", "date": "2026-01-26" },
{ "label": "Independence Day", "date": "2026-08-15" }
],
"createdAt": "2026-01-02T10:00:00.000Z",
"updatedAt": "2026-01-02T10:00:00.000Z"
}
]
}
Whether this is the organization’s default list. There is at most one. The default list is preselected when you create a campaign in the dashboard.
Error Handling
- 401 Unauthorized – Missing or invalid API key.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

