Listar fontes do calendário
RegistosGET /calendar/sources
Lists the configured calendar sources of the tenant in a data array without pagination. A source records where holiday data comes from (manual, file, url, connector or template_version), its reference, refresh schedule, whether imports from it apply automatically, and whether it is enabled. Requires automations:read.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Sources
Permissões automations:read · Funções: admin, analyst, customer_service, finance, operations, owner
curl -X GET "$BUSINESS_API/calendar/sources" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/calendar/sources", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/calendar/sources",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/calendar/sources", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Sources