/v1/management/appointment-resourcesBehavior
Server only. Your backend authenticates its administrator and sends an owner-issued wbm_ key without an Origin header. Every call requires appointments:read plus the stated action scope and a CURRENT per-credential owner calendar grant. Scope issuance alone grants no appointment access. Provider grants never imply manager authority, unassigned access, customer data or notes. Public booking intake, customer OTP, bot/WhatsApp readiness and customer messaging consent are separate. Inspect the current calendar grant, permitted providers, eligible active services and booking modes before requesting a quote. The maximum is 200 providers and 200 services; RESOURCE_LIMIT refuses oversize instead of silently truncating. Current catalogue prices are major units. A provider being returned does not guarantee a slot or create permission.
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
appointments:read
Request
No query parameters or request body. Use the credentials described above.
Successful responses
200 · BusinessCalendarResources
Success.
Cache-Control · Contains no-store. Do not cache appointments, grants or receipts.
{
"type": "string",
"const": "no-store"
} application/json · BusinessCalendarResources
-
timezoneanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:100 -
anyOf 2nullSchema branch
-
-
grantobjectRequiredView nested fields
-
credentialIdstring · uuidRequired -
integrationIdstring · uuidRequired -
tenantIdstring · uuidRequired -
grantRevisionintegerRequiredminimum:0maximum:9007199254740991 -
roleCeilingnull | stringRequiredAllowed values:
[null,"business_manager","provider"] -
providerIdsarrayRequiredmaxItems:100uniqueItems:trueView nested fields
-
[]string · uuidArray item
-
-
wholeBusinessbooleanRequired -
includeUnassignedbooleanRequired -
notesReadbooleanRequired -
additionalPropertiesno value allowedSchema rule
-
-
bookingModesobjectRequiredView nested fields
-
legacyFixedSlotbooleanRequired -
serviceDurationbooleanRequired -
additionalPropertiesno value allowedSchema rule
-
-
providersarrayRequiredmaxItems:200View nested fields
-
[]objectArray itemView nested fields
-
providerIdstring · uuidRequired -
nameobjectRequiredView nested fields
-
hestringOptionalmaxLength:4096 -
arstringOptionalmaxLength:4096 -
enstringOptionalmaxLength:4096 -
additionalPropertiesno value allowedSchema rule
-
-
isActivebooleanRequired -
slotDurationMinutesanyOf (integer | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1integerSchema branchminimum:0maximum:1440 -
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
servicesarrayRequiredmaxItems:200View nested fields
-
[]object; allOf (unspecified)Array itemAll of these schema rules apply together.
View nested fields
-
serviceIdstring · uuidRequired -
nameobjectRequiredView nested fields
-
hestringOptionalmaxLength:4096 -
arstringOptionalmaxLength:4096 -
enstringOptionalmaxLength:4096 -
additionalPropertiesno value allowedSchema rule
-
-
isActivebooleanRequired -
priceMajoranyOf (number | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchStored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields.
minimum:0maximum:9007199254740991 -
anyOf 2nullSchema branch
-
-
currencyanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:100minLength:1 -
anyOf 2nullSchema branch
-
-
bookingDurationMinutesanyOf (integer | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1integerSchema branchminimum:0maximum:1440 -
anyOf 2nullSchema branch
-
-
removalDurationMinutesanyOf (integer | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1integerSchema branchminimum:0maximum:1440 -
anyOf 2nullSchema branch
-
-
removalPriceMajoranyOf (number | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1numberSchema branchStored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields.
minimum:0maximum:9007199254740991 -
anyOf 2nullSchema branch
-
-
priceRangeMajoranyOf (object | null)OptionalNon-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
minnumberRequired in this branchminimum:0maximum:90071992547409.9 -
maxnumberRequired in this branchminimum:0maximum:90071992547409.9 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
priceRangeMajorobjectCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
priceMajornullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"timezone": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
},
"grant": {
"type": "object",
"additionalProperties": false,
"properties": {
"credentialId": {
"type": "string",
"format": "uuid"
},
"integrationId": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"grantRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"roleCeiling": {
"enum": [
null,
"business_manager",
"provider"
]
},
"providerIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"maxItems": 100,
"uniqueItems": true
},
"wholeBusiness": {
"type": "boolean"
},
"includeUnassigned": {
"type": "boolean"
},
"notesRead": {
"type": "boolean"
}
},
"required": [
"credentialId",
"integrationId",
"tenantId",
"grantRevision",
"roleCeiling",
"providerIds",
"wholeBusiness",
"includeUnassigned",
"notesRead"
]
},
"bookingModes": {
"type": "object",
"additionalProperties": false,
"properties": {
"legacyFixedSlot": {
"type": "boolean"
},
"serviceDuration": {
"type": "boolean"
}
},
"required": [
"legacyFixedSlot",
"serviceDuration"
]
},
"providers": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"providerId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "object",
"additionalProperties": false,
"properties": {
"he": {
"type": "string",
"maxLength": 4096
},
"ar": {
"type": "string",
"maxLength": 4096
},
"en": {
"type": "string",
"maxLength": 4096
}
},
"required": []
},
"isActive": {
"type": "boolean"
},
"slotDurationMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 1440
},
{
"type": "null"
}
]
}
},
"required": [
"providerId",
"name",
"isActive",
"slotDurationMinutes"
]
},
"maxItems": 200
},
"services": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"serviceId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "object",
"additionalProperties": false,
"properties": {
"he": {
"type": "string",
"maxLength": 4096
},
"ar": {
"type": "string",
"maxLength": 4096
},
"en": {
"type": "string",
"maxLength": 4096
}
},
"required": []
},
"isActive": {
"type": "boolean"
},
"priceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields."
},
{
"type": "null"
}
]
},
"currency": {
"anyOf": [
{
"type": "string",
"maxLength": 100,
"minLength": 1
},
{
"type": "null"
}
]
},
"bookingDurationMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 1440
},
{
"type": "null"
}
]
},
"removalDurationMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 1440
},
{
"type": "null"
}
]
},
"removalPriceMajor": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Stored major currency units; 120 means 120 units, not 1.20. Do not combine with customer booking minor-unit money fields."
},
{
"type": "null"
}
]
},
"priceRangeMajor": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"min",
"max"
],
"properties": {
"min": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
},
"max": {
"type": "number",
"minimum": 0,
"maximum": 90071992547409.9
}
}
},
{
"type": "null"
}
],
"description": "Non-final inclusive price bounds in major currency units. Both finite bounds are required; min must be strictly below max and amounts have at most two decimal places. The companion exact amount is null. Omitted or null means no range, not a zero price. Accepted bounds are frozen and must not be recomputed from the current catalogue."
}
},
"required": [
"serviceId",
"name",
"isActive",
"priceMajor",
"currency",
"bookingDurationMinutes",
"removalDurationMinutes",
"removalPriceMajor"
],
"allOf": [
{
"if": {
"required": [
"priceRangeMajor"
],
"properties": {
"priceRangeMajor": {
"type": "object"
}
}
},
"then": {
"properties": {
"priceMajor": {
"type": "null"
}
}
}
}
]
},
"maxItems": 200
}
},
"required": [
"timezone",
"grant",
"bookingModes",
"providers",
"services"
]
} 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/invalid Management bearer.
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 · Current scope, calendar grant or authority denied; a browser Origin is refused.
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 · Method not allowed.
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 · Action, quote, slot, operation, projection or checkpoint conflict. No partial command.
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 · Malformed or unsupported request, including caller-supplied authority or price.
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 · Machine request, directory cursor or snapshot limit exceeded.
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 unavailable or outcome uncertain. Retain the original UUID/body and recover it before any new operation.
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"
]
}