/v1/management/customer-operations/{operationId}Behavior
Server only, with an owner-issued Management credential bound to one tenant/site/integration. The backend must authorize its administrator. Public intake, WhatsApp availability, customer phone verification and website customer mappings are not prerequisites. Existing contacts:record keys are not widened. Persist the exact request and its operation UUID. On an uncertain response retry that command or use its dedicated recovery route; a not_found result does not prove that an in-flight command cannot still commit. Receipts are immutable references, while current is reread under current authority and is null with contact_unavailable after deletion/reparent. Current contacts:read plus the original action scope (contacts:write, contacts:block or contacts:phone:write) is required. Recovery is bound to the original integration and operation UUID; equivalent current credential rotation may recover it. This route is independent from contact recording, field writes and schedule/block operation ledgers.
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
contacts:read
Original basic action additionally requires contacts:write; original block action additionally requires contacts:block. A phone_correction action additionally requires contacts:phone:write.
In addition to contacts:read, recovery requires the original action permission: contacts:write for basic edits, contacts:block for block changes or contacts:phone:write for phone corrections. A replacement key must retain that authority for the same integration.
Request
operationIdpath · stringRequiredFormat and constraints
{ "type": "string", "format": "uuid" }
Successful responses
200 · BusinessCustomerOperation
Success.
application/json · BusinessCustomerOperation
Exactly one of these variants must match.
-
oneOf 1 · status = "not_found"objectSchema branchView branch fields and rules
-
statusstringRequired in this branchValue:
"not_found" -
additionalPropertiesno value allowedSchema rule
-
-
oneOf 2 · status = "committed"object; allOf (unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
statusstringRequired in this branchValue:
"committed" -
receiptobjectRequired in this branchView nested fields
-
operationIdstring · uuidRequired in this branch -
businessCustomerIdstring · uuidRequired in this branch -
actionstringRequired in this branchAllowed values:
["basic","block","phone_correction"] -
acceptedVersionstringRequired in this branchDatabase-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version.
pattern:"^c(0|[1-9][0-9]{0,18})$" -
additionalPropertiesno value allowedSchema rule
-
-
currentanyOf (object | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchCurrent basic canonical contact projection, including unmapped and blocked contacts. An unavailable stored name/phone/language is null with its fieldUnavailableReasons entry; source data is preserved. Notes, email, arbitrary custom data, consent, customer proof and booking history are absent.
View branch fields and rules
-
businessCustomerIdstring · uuidRequired in this branch -
versionstringRequired in this branchDatabase-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version.
pattern:"^c(0|[1-9][0-9]{0,18})$" -
displayNamestring | nullRequired in this branchmaxLength:4096 -
phonestring | nullRequired in this branchpattern:"^\\+[1-9][0-9]{7,14}$" -
languageanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchAllowed values:
["he","ar","en"] -
anyOf 2nullSchema branch
-
-
isBlockedbooleanRequired in this branch -
createdAtstring · date-timeRequired in this branch -
fieldUnavailableReasonsobjectRequired in this branchView nested fields
-
displayNamestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
phonestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
languagestringOptional in this branchAllowed values:
["too_large","invalid_stored_value"] -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
currentUnavailableReasonnull | stringRequired in this branchAllowed values:
[null,"contact_unavailable"] -
replayedbooleanRequired in this branch -
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
currentnullCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
currentUnavailableReasonstringOptional in this branchValue:
"contact_unavailable"
-
-
elseobjectSchema ruleView branch fields and rules
-
currentUnavailableReasonnullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
Complete schema and nested fields
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"const": "not_found"
}
},
"required": [
"status"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"const": "committed"
},
"receipt": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"action": {
"enum": [
"basic",
"block",
"phone_correction"
]
},
"acceptedVersion": {
"type": "string",
"pattern": "^c(0|[1-9][0-9]{0,18})$",
"description": "Database-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version."
}
},
"required": [
"operationId",
"businessCustomerId",
"action",
"acceptedVersion"
]
},
"current": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"businessCustomerId": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^c(0|[1-9][0-9]{0,18})$",
"description": "Database-owned canonical customer revision. Read a current customer and its ETag before a basic or block command. Native and API edits share this revision; no-op writes do not increment it. It is not a customer-mapping version."
},
"displayName": {
"type": [
"string",
"null"
],
"maxLength": 4096
},
"phone": {
"type": [
"string",
"null"
],
"pattern": "^\\+[1-9][0-9]{7,14}$"
},
"language": {
"anyOf": [
{
"type": "string",
"enum": [
"he",
"ar",
"en"
]
},
{
"type": "null"
}
]
},
"isBlocked": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"fieldUnavailableReasons": {
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"phone": {
"enum": [
"too_large",
"invalid_stored_value"
]
},
"language": {
"enum": [
"too_large",
"invalid_stored_value"
]
}
},
"required": []
}
},
"required": [
"businessCustomerId",
"version",
"displayName",
"phone",
"language",
"isBlocked",
"createdAt",
"fieldUnavailableReasons"
],
"description": "Current basic canonical contact projection, including unmapped and blocked contacts. An unavailable stored name/phone/language is null with its fieldUnavailableReasons entry; source data is preserved. Notes, email, arbitrary custom data, consent, customer proof and booking history are absent."
},
{
"type": "null"
}
]
},
"currentUnavailableReason": {
"enum": [
null,
"contact_unavailable"
]
},
"replayed": {
"type": "boolean"
}
},
"required": [
"status",
"receipt",
"current",
"currentUnavailableReason",
"replayed"
],
"allOf": [
{
"if": {
"properties": {
"current": {
"type": "null"
}
},
"required": [
"current"
]
},
"then": {
"properties": {
"currentUnavailableReason": {
"const": "contact_unavailable"
}
}
},
"else": {
"properties": {
"currentUnavailableReason": {
"type": "null"
}
}
}
}
]
}
]
} 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 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, grant or authority denied; 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"
]
} 404 · Canonical contact unavailable in this credential tenant.
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"
]
} 422 · Malformed or unsupported request; no tenant/resource selector is accepted.
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/snapshot limit reached.
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 · Storage unavailable or outcome uncertain. Retain the original UUID and exact command to reconcile.
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"
]
}