Listar dias do calendário
RegistosGET /calendar/days
Lists the tenant's dated exceptions (holidays, closures and extra working days), sorted by date, in a data array without pagination. Each day records where it came from (manual, file, url, connector or template). Recurring rules are not expanded here; use the rules endpoint or the occurrences evaluator for them. Requires automations:read.
Parâmetros
fromEarliest date to include, as YYYY-MM-DD, inclusive; omitted means no lower bound.
toLatest date to include, as YYYY-MM-DD, inclusive; omitted means no upper bound.
area_idService area id; when set, the list holds that area's days plus the tenant-wide days that have no area, and when omitted it holds every day of the tenant.
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Calendar days
Permissões automations:read · Funções: admin, analyst, customer_service, finance, operations, owner
curl -X GET "$BUSINESS_API/calendar/days" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/calendar/days", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/calendar/days",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/calendar/days", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Calendar days