/v1/management/reports/overviewBehavior
Development preview; source support alone does not establish deployment. Server-only owner-issued Management credential without Origin, requiring explicit reports:read. This deliberate whole-business grant is independent of providerIds, businessSchedule and calendar grants; old keys gain nothing. A dedicated report key uses empty providerIds and businessSchedule:false. Accepts no query parameters or request body: no tenant/provider filters, arbitrary asOf or date range. The server observes the current business-local day, Sunday-based week and tomorrow from one snapshot. Missing/null configured timezone follows the existing Asia/Jerusalem default; an invalid configured timezone refuses INVALID_SETTINGS. Counts use appointment start instants and exclude null status and CANCELLED; remainingToday additionally requires a strictly future start and PENDING, CONFIRMED or NOW. tomorrowFirstStartAt is the earliest counted start tomorrow. Returned period boundaries are authoritative, including DST. No customer details, money, monthly report, write, enrollment, notification or activation is included. Installed reportsOverviewRead is support metadata, not a grant. A retry reads a fresh observation; no operation UUID or If-Match is used.
Authentication
ManagementCredential
Credential rules
One server-only owner-issued wbm_ API key can carry both management and integration permissions. Additional permissions require an explicit owner-issued grant. GET /v1/management returns the management discovery view, which may be empty for a booking-only key. For credentials with appointments:read, this discovery view omits whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write to preserve calendar-client compatibility. Discover these grants through GET /v1/management/messaging-capabilities. Template/profile command authorization still uses the stored grants. Server-only owner-issued Management authority with explicit application permissions. Calling this API does not expand a credential's grants. contacts:read/write/block/sync/fields:read/fields:write are separate approvals for canonical business contacts; fields also require current typed owner grants. contacts:record remains contact recording/recovery only. These grants create no customer phone proof, booking authority, messaging consent or automatic synchronization. Hours/blocks retain their independent resource grants. booking-policy:read/write separately delegate whole-business booking settings, without schedule/provider grants; write requires read. They preserve existing appointments and create no duration-rewrite authority. Provider duration policy additionally requires explicit provider-booking-policy:read/write and exact current providerIds; booking-duration:rewrite is separately approved and does not itself grant policy read/write. Service catalogue requires explicit services:read/write, independent of provider/calendar/schedule resources; write requires read. These operations do not expand an existing credential's grants. Public presentation and reviewed service selection require explicit website-content:read/write; write requires read, independently from services:* and provider resources. Existing provider metadata/activity/assignment additionally requires providers:read/write and a nonempty explicit current providerIds grant; write requires read. This grants no provider creation, deletion, login, invitation or schedule authority. WhatsApp template/profile management requires separate whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write application scopes. Write requires its matching read scope. These grants require explicit owner approval; Meta OAuth permissions remain separate.
Required application permissions
reports:read
Request
No query parameters or request body. Use the credentials described above.
Successful responses
200 · BusinessReportsOverview
Current aggregate overview; not cached.
Cache-Control
{
"const": "no-store"
} application/json · BusinessReportsOverview
One current database observation for the whole business. Business-local dates, Sunday week and half-open [startAt,endAt) periods; daylight-saving days need not last24hours. Counts include all providers and unassigned appointments. No financial totals or customer details.
-
asOfstring · date-timeRequired -
timezonestringRequiredminLength:1 -
dayKeystring · dateRequired -
weekKeystring · dateRequired -
periodsobjectRequiredView nested fields
-
todayobjectRequiredView nested fields
-
startAtstring · date-timeRequired -
endAtstring · date-timeRequired -
additionalPropertiesno value allowedSchema rule
-
-
weekobjectRequiredView nested fields
-
startAtstring · date-timeRequired -
endAtstring · date-timeRequired -
additionalPropertiesno value allowedSchema rule
-
-
tomorrowobjectRequiredView nested fields
-
startAtstring · date-timeRequired -
endAtstring · date-timeRequired -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
countsobjectRequiredView nested fields
-
todayintegerRequiredAppointments starting today with non-null status other than CANCELLED.
minimum:0maximum:9007199254740991 -
weekintegerRequiredAppointments starting in the current Sunday-based business week with non-null status other than CANCELLED.
minimum:0maximum:9007199254740991 -
remainingTodayintegerRequiredToday appointments starting strictly after asOf with status PENDING, CONFIRMED or NOW.
minimum:0maximum:9007199254740991 -
tomorrowintegerRequiredAppointments starting tomorrow with non-null status other than CANCELLED.
minimum:0maximum:9007199254740991 -
additionalPropertiesno value allowedSchema rule
-
-
tomorrowFirstStartAtstring | null · date-timeRequiredEarliest non-CANCELLED appointment start tomorrow; null exactly when tomorrow count is zero.
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"asOf": {
"type": "string",
"format": "date-time"
},
"timezone": {
"type": "string",
"minLength": 1
},
"dayKey": {
"type": "string",
"format": "date"
},
"weekKey": {
"type": "string",
"format": "date"
},
"periods": {
"type": "object",
"additionalProperties": false,
"properties": {
"today": {
"type": "object",
"additionalProperties": false,
"properties": {
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"startAt",
"endAt"
]
},
"week": {
"type": "object",
"additionalProperties": false,
"properties": {
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"startAt",
"endAt"
]
},
"tomorrow": {
"type": "object",
"additionalProperties": false,
"properties": {
"startAt": {
"type": "string",
"format": "date-time"
},
"endAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"startAt",
"endAt"
]
}
},
"required": [
"today",
"week",
"tomorrow"
]
},
"counts": {
"type": "object",
"additionalProperties": false,
"properties": {
"today": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Appointments starting today with non-null status other than CANCELLED."
},
"week": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Appointments starting in the current Sunday-based business week with non-null status other than CANCELLED."
},
"remainingToday": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Today appointments starting strictly after asOf with status PENDING, CONFIRMED or NOW."
},
"tomorrow": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Appointments starting tomorrow with non-null status other than CANCELLED."
}
},
"required": [
"today",
"week",
"remainingToday",
"tomorrow"
]
},
"tomorrowFirstStartAt": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "Earliest non-CANCELLED appointment start tomorrow; null exactly when tomorrow count is zero."
}
},
"required": [
"asOf",
"timezone",
"dayKey",
"weekKey",
"periods",
"counts",
"tomorrowFirstStartAt"
],
"description": "One current database observation for the whole business. Business-local dates, Sunday week and half-open [startAt,endAt) periods; daylight-saving days need not last24hours. Counts include all providers and unassigned appointments. No financial totals or customer details."
} Errors and recovery
Error responses declared in the contract (7)
The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Missing or invalid current Management credential.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 403 · SCOPE_REQUIRED, ACCESS_REVOKED, FORBIDDEN or server-only Origin refusal.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 405 · Only GET is supported.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 409 · INVALID_SETTINGS: configured business timezone is invalid; no partial counters are returned.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 422 · Any query parameter or request body is invalid.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 429 · Request quota; honor Retry-After.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
} 503 · Persistence or temporary lock timeout; retry the read for a new observation.
application/json · Error
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"retryAfter": {
"type": "integer",
"minimum": 1
}
},
"required": [
"code",
"requestId"
]
}
},
"required": [
"error"
]
}