/v1/integrationBehavior
Server-only integration credential. Current authority is checked again after the tenant lock. No query tenant override, customer data or secrets; browser Origin is denied. Environment remains unknown without a trusted deployment attestation. Supported capabilities do not authorize operations or promise provider readiness.
Authentication
IntegrationCredential OR ManagementCredential
Credential rules
Use the same server-only wbm_ API key as business management, with explicitly approved integration scopes; legacy wbi_ integration-only keys remain supported. No Origin request header. GET /v1/integration returns the integration-scoped view of the same credential/site/integration. Customer phone proof is still required for self-service.
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.
Request
No query parameters or request body. Use the credentials described above.
Successful responses
200 · IntegrationMetadata
Current safe credential-derived metadata
X-Request-Id
{
"type": "string",
"format": "uuid"
} Cache-Control
{
"const": "no-store"
} application/json · IntegrationMetadata
-
contractVersionnumberRequiredValue:
1 -
environmentstringRequiredNo trusted environment attestation is configured. Not a sandbox/production readiness or provider claim.
Value:
"unknown" -
credentialIdstring · uuidRequired -
audiencestringRequiredValue:
"integration" -
siteIdstring · uuidRequired -
siteStatusstringRequiredAllowed values:
["draft","enabled","paused"] -
siteVersionintegerRequiredminimum:1 -
integrationIdstring · uuidRequired -
integrationKindstringRequiredAllowed values:
["hosted","embed","headless"] -
integrationStatusstringRequiredAllowed values:
["draft","enabled","paused"] -
integrationVersionintegerRequiredminimum:1 -
scopesarrayRequiredminItems:1maxItems:5uniqueItems:trueView nested fields
-
[]stringArray itemAllowed values:
["bookings:write:customer","bookings:read:integration","customers:read","customers:write","customer-changes:read"]
-
-
expiresAtstring | null · date-timeRequiredCredential expiration time; null means no expiration date. Update older timestamp-only clients before installing a no-expiry credential. Revocation and current authorization still apply.
-
resourcesobjectRequiredView nested fields
-
providerIdsarrayRequiredmaxItems:0View nested fields
-
[]string · uuidArray item
-
-
businessSchedulebooleanRequiredValue:
false -
additionalPropertiesno value allowedSchema rule
-
-
limitsobjectRequiredView nested fields
-
credentialRequestsPerMinutenumberRequiredMachine integration endpoints only; separate customer session and operation budgets still apply.
Value:
120 -
siteRequestsPerMinutenumberRequiredShared site ceiling for customer and machine endpoints; not a remaining balance.
Value:
2000 -
integrationSnapshotsPerHournumberRequiredValue:
10 -
customerChangesPageSizeMaxnumberRequiredValue:
100 -
integrationBookingsPageSizeMaxnumberRequiredValue:
100 -
integrationBookingsRangeDaysMaxnumberRequiredValue:
31 -
additionalPropertiesno value allowedSchema rule
-
-
capabilitiesallOf (object & unspecified)RequiredAll of these schema rules apply together.
View nested fields
-
allOf 1objectSchema branchSupported API contracts, not authorization or tenant activation. Missing flags in an older additive-v1 response mean unknown. Current credentials and business configuration are still checked for every action.
View branch fields and rules
-
bookingActionAvailabilitybooleanRequired -
customerChangesFeedbooleanRequired -
customerSyncCheckpointsbooleanRequired -
managementSchedulesbooleanRequired -
managementBlocksbooleanRequired -
externalWebhooksbooleanRequired -
paymentsbooleanRequired -
temporaryHoldsbooleanRequired -
groupBookingsbooleanRequired -
overnightHoursbooleanRequired -
dateSpecificOpeningbooleanRequired -
bookingChangesFeedbooleanOptionalSupports durable polling of this integration's bookings; still requires its explicit read scope.
-
customerBookingHistorybooleanOptionalHistory limited to mapped customer and same integration, not every business channel.
-
sharedCustomerFieldsbooleanOptionalInstalled support for explicitly shared fields on an active customer-verified mapping. Access still requires the appropriate integration scopes and current owner grants for each field. This does not imply sharing every field, deployed readiness or a shared-field change feed.
-
allChannelCustomerHistorybooleanOptionalInstalled support for read-only all-channel history of one active customer-verified mapping, with separate owner approval and customer/booking read scopes. It is not whole-business calendar access, a change feed or authority to modify the returned history records.
-
sharedCustomerFieldsChangeFeedbooleanOptionalFalse means shared values require current authorized reads and are not copied into the retained basic customer feed.
-
additionalPropertiesno value allowedSchema rule
-
-
allOf 2unspecifiedSchema branchSupported installed contracts, separate from current scopes, status and live readiness. Management support does not give this integration credential a management grant.
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"contractVersion": {
"const": 1
},
"environment": {
"const": "unknown",
"description": "No trusted environment attestation is configured. Not a sandbox/production readiness or provider claim."
},
"credentialId": {
"type": "string",
"format": "uuid"
},
"audience": {
"const": "integration"
},
"siteId": {
"type": "string",
"format": "uuid"
},
"siteStatus": {
"enum": [
"draft",
"enabled",
"paused"
]
},
"siteVersion": {
"type": "integer",
"minimum": 1
},
"integrationId": {
"type": "string",
"format": "uuid"
},
"integrationKind": {
"enum": [
"hosted",
"embed",
"headless"
]
},
"integrationStatus": {
"enum": [
"draft",
"enabled",
"paused"
]
},
"integrationVersion": {
"type": "integer",
"minimum": 1
},
"scopes": {
"type": "array",
"minItems": 1,
"maxItems": 5,
"uniqueItems": true,
"items": {
"enum": [
"bookings:write:customer",
"bookings:read:integration",
"customers:read",
"customers:write",
"customer-changes:read"
]
}
},
"expiresAt": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "Credential expiration time; null means no expiration date. Update older timestamp-only clients before installing a no-expiry credential. Revocation and current authorization still apply."
},
"resources": {
"type": "object",
"additionalProperties": false,
"properties": {
"providerIds": {
"type": "array",
"maxItems": 0,
"items": {
"type": "string",
"format": "uuid"
}
},
"businessSchedule": {
"const": false
}
},
"required": [
"providerIds",
"businessSchedule"
]
},
"limits": {
"type": "object",
"additionalProperties": false,
"properties": {
"credentialRequestsPerMinute": {
"const": 120,
"description": "Machine integration endpoints only; separate customer session and operation budgets still apply."
},
"siteRequestsPerMinute": {
"const": 2000,
"description": "Shared site ceiling for customer and machine endpoints; not a remaining balance."
},
"integrationSnapshotsPerHour": {
"const": 10
},
"customerChangesPageSizeMax": {
"const": 100
},
"integrationBookingsPageSizeMax": {
"const": 100
},
"integrationBookingsRangeDaysMax": {
"const": 31
}
},
"required": [
"credentialRequestsPerMinute",
"siteRequestsPerMinute",
"integrationSnapshotsPerHour",
"customerChangesPageSizeMax",
"integrationBookingsPageSizeMax",
"integrationBookingsRangeDaysMax"
]
},
"capabilities": {
"allOf": [
{
"type": "object",
"additionalProperties": false,
"description": "Supported API contracts, not authorization or tenant activation. Missing flags in an older additive-v1 response mean unknown. Current credentials and business configuration are still checked for every action.",
"properties": {
"bookingActionAvailability": {
"type": "boolean"
},
"customerChangesFeed": {
"type": "boolean"
},
"customerSyncCheckpoints": {
"type": "boolean"
},
"managementSchedules": {
"type": "boolean"
},
"managementBlocks": {
"type": "boolean"
},
"externalWebhooks": {
"type": "boolean"
},
"payments": {
"type": "boolean"
},
"temporaryHolds": {
"type": "boolean"
},
"groupBookings": {
"type": "boolean"
},
"overnightHours": {
"type": "boolean"
},
"dateSpecificOpening": {
"type": "boolean"
},
"bookingChangesFeed": {
"type": "boolean",
"description": "Supports durable polling of this integration's bookings; still requires its explicit read scope."
},
"customerBookingHistory": {
"type": "boolean",
"description": "History limited to mapped customer and same integration, not every business channel."
},
"sharedCustomerFields": {
"type": "boolean",
"description": "Installed support for explicitly shared fields on an active customer-verified mapping. Access still requires the appropriate integration scopes and current owner grants for each field. This does not imply sharing every field, deployed readiness or a shared-field change feed."
},
"allChannelCustomerHistory": {
"type": "boolean",
"description": "Installed support for read-only all-channel history of one active customer-verified mapping, with separate owner approval and customer/booking read scopes. It is not whole-business calendar access, a change feed or authority to modify the returned history records."
},
"sharedCustomerFieldsChangeFeed": {
"type": "boolean",
"description": "False means shared values require current authorized reads and are not copied into the retained basic customer feed."
}
},
"required": [
"bookingActionAvailability",
"customerChangesFeed",
"customerSyncCheckpoints",
"managementSchedules",
"managementBlocks",
"externalWebhooks",
"payments",
"temporaryHolds",
"groupBookings",
"overnightHours",
"dateSpecificOpening"
]
},
{
"description": "Supported installed contracts, separate from current scopes, status and live readiness. Management support does not give this integration credential a management grant."
}
]
}
},
"required": [
"contractVersion",
"environment",
"credentialId",
"audience",
"siteId",
"siteStatus",
"siteVersion",
"integrationId",
"integrationKind",
"integrationStatus",
"integrationVersion",
"scopes",
"expiresAt",
"resources",
"limits",
"capabilities"
]
} Errors and recovery
Error responses declared in the contract (6)
The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Missing/malformed integration credential
X-Request-Id
{
"type": "string",
"format": "uuid"
} Cache-Control
{
"const": "no-store"
} 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 · Browser Origin, revoked/expired credential or current authority refused
X-Request-Id
{
"type": "string",
"format": "uuid"
} Cache-Control
{
"const": "no-store"
} 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 · Unsupported method/route
X-Request-Id
{
"type": "string",
"format": "uuid"
} Cache-Control
{
"const": "no-store"
} 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 · Unrecognized query parameters
X-Request-Id
{
"type": "string",
"format": "uuid"
} Cache-Control
{
"const": "no-store"
} 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 · Bounded machine/site request quota
Retry-After
{
"type": "integer",
"minimum": 1
} 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 · Unavailable or uncertain server metadata
X-Request-Id
{
"type": "string",
"format": "uuid"
} Cache-Control
{
"const": "no-store"
} 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"
]
}