CRADDevelopers
English

Read customer changes

Page snapshot then poll changes from opaque cursor

Before going live — check deployed capabilities, grants and your integration’s readiness.

Check deployed capabilities, key grants and business readiness in your environment. HTTP examples were captured in isolated tests; their local-unreleased provenance neither says the API is offline nor certifies your integration. Customer self-service uses the business-configured WhatsApp authentication template; SMS is not supported. Authorized admin contact recording is a separate action without a code.

GET/v1/integration/customer-changes

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.

Required application permissions

customer-changes:read

Request

  • cursorquery · stringRequired
    Format and constraints
    cursor schema
    {
      "type": "string",
      "format": "uuid"
    }
  • limitquery · integerOptional
    Format and constraints
    limit schema
    {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 50
    }

Successful responses

200 · CustomerPage

application/json · CustomerPage

Exactly one of these variants must match.

  • oneOf 1 · kind = "snapshot"objectSchema branch
    View branch fields and rules
    • kindstringRequired in this branch

      Value: "snapshot"

    • customersarrayRequired in this branch
      View nested fields
      • []object; allOf (unspecified)Array item

        All of these schema rules apply together.

        View nested fields
        • customerIdstring · uuidRequired in this branch
        • externalCustomerIdanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch
          • anyOf 2nullSchema branch
        • statusstringRequired in this branch

          Allowed values: ["active","detached"]

        • versionintegerRequired in this branch

          minimum: 1

        • displayNameanyOf (string | null)Optional in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch
          • anyOf 2nullSchema branch
        • languageanyOf (string | null)Optional in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch

            Allowed values: ["he","ar","en"]

          • anyOf 2nullSchema branch
        • phonestringOptional in this branch

          pattern: "^\\+[1-9][0-9]{7,14}$"

        • fieldSourcesobjectOptional in this branch
          View nested fields
          • additionalPropertiesobjectSchema rule
            View branch fields and rules
            • sourcestringRequired in this branch
            • versionintegerRequired in this branch
            • updated_atstring · date-timeRequired in this branch
            • additionalPropertiesno value allowedSchema rule
        • identityAssurancestringOptional in this branch

          owner_reviewed means an owner-approved administrative or historical contact record, never customer authentication or phone proof.

          Allowed values: ["customer_verified","owner_reviewed"]

        • displayNameUnavailableReasonstringOptional in this branch

          Present only when the active displayName is unavailable (null). Canonical CRAD text is preserved, not truncated or cleared. Do not echo null as a source-field deletion.

          Allowed values: ["not_set","blank","too_long","unsupported_characters"]

        • allOf 1unspecifiedSchema branch
          View branch fields and rules
          • ifunspecifiedSchema rule
            View branch fields and rules
            • displayNameUnavailableReasonunspecifiedCondition predicate

              Presence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.

          • thenobjectSchema rule
            View branch fields and rules
            • statusstringOptional in this branch

              Value: "active"

            • displayNamenullRequired in this branch
        • additionalPropertiesno value allowedSchema rule
    • nextCursorstring · uuidRequired in this branch
    • hasMorebooleanRequired in this branch
    • watermarkintegerRequired in this branch
    • additionalPropertiesno value allowedSchema rule
  • oneOf 2 · kind = "changes"objectSchema branch
    View branch fields and rules
    • kindstringRequired in this branch

      Value: "changes"

    • eventsarrayRequired in this branch
      View nested fields
      • []objectArray item
        View nested fields
        • eventIdstring · uuidRequired in this branch
        • sequenceintegerRequired in this branch
        • typestringRequired in this branch

          Allowed values: ["upsert","detached"]

        • customerobject; allOf (unspecified)Required in this branch

          All of these schema rules apply together.

          View nested fields
          • customerIdstring · uuidRequired in this branch
          • externalCustomerIdanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch
            • anyOf 2nullSchema branch
          • statusstringRequired in this branch

            Allowed values: ["active","detached"]

          • versionintegerRequired in this branch

            minimum: 1

          • displayNameanyOf (string | null)Optional in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch
            • anyOf 2nullSchema branch
          • languageanyOf (string | null)Optional in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["he","ar","en"]

            • anyOf 2nullSchema branch
          • phonestringOptional in this branch

            pattern: "^\\+[1-9][0-9]{7,14}$"

          • fieldSourcesobjectOptional in this branch
            View nested fields
            • additionalPropertiesobjectSchema rule
              View branch fields and rules
              • sourcestringRequired in this branch
              • versionintegerRequired in this branch
              • updated_atstring · date-timeRequired in this branch
              • additionalPropertiesno value allowedSchema rule
          • identityAssurancestringOptional in this branch

            owner_reviewed means an owner-approved administrative or historical contact record, never customer authentication or phone proof.

            Allowed values: ["customer_verified","owner_reviewed"]

          • displayNameUnavailableReasonstringOptional in this branch

            Present only when the active displayName is unavailable (null). Canonical CRAD text is preserved, not truncated or cleared. Do not echo null as a source-field deletion.

            Allowed values: ["not_set","blank","too_long","unsupported_characters"]

          • allOf 1unspecifiedSchema branch
            View branch fields and rules
            • ifunspecifiedSchema rule
              View branch fields and rules
              • displayNameUnavailableReasonunspecifiedCondition predicate

                Presence constraint in this rule; evaluate its enclosing condition or negation. The field’s type may be defined elsewhere.

            • thenobjectSchema rule
              View branch fields and rules
              • statusstringOptional in this branch

                Value: "active"

              • displayNamenullRequired in this branch
          • additionalPropertiesno value allowedSchema rule
        • sourcestringRequired in this branch
        • createdAtstring · date-timeRequired in this branch
        • additionalPropertiesno value allowedSchema rule
    • nextCursorstring · uuidRequired in this branch
    • hasMorebooleanRequired in this branch
    • watermarkintegerRequired in this branch
    • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "snapshot"
        },
        "customers": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "customerId",
              "externalCustomerId",
              "status",
              "version"
            ],
            "properties": {
              "customerId": {
                "type": "string",
                "format": "uuid"
              },
              "externalCustomerId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "enum": [
                  "active",
                  "detached"
                ]
              },
              "version": {
                "type": "integer",
                "minimum": 1
              },
              "displayName": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "language": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "he",
                      "ar",
                      "en"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "type": "string",
                "pattern": "^\\+[1-9][0-9]{7,14}$"
              },
              "fieldSources": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "source": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "source",
                    "version",
                    "updated_at"
                  ]
                }
              },
              "identityAssurance": {
                "enum": [
                  "customer_verified",
                  "owner_reviewed"
                ],
                "description": "owner_reviewed means an owner-approved administrative or historical contact record, never customer authentication or phone proof."
              },
              "displayNameUnavailableReason": {
                "enum": [
                  "not_set",
                  "blank",
                  "too_long",
                  "unsupported_characters"
                ],
                "description": "Present only when the active displayName is unavailable (null). Canonical CRAD text is preserved, not truncated or cleared. Do not echo null as a source-field deletion."
              }
            },
            "allOf": [
              {
                "if": {
                  "required": [
                    "displayNameUnavailableReason"
                  ]
                },
                "then": {
                  "required": [
                    "displayName"
                  ],
                  "properties": {
                    "status": {
                      "const": "active"
                    },
                    "displayName": {
                      "type": "null"
                    }
                  }
                }
              }
            ]
          }
        },
        "nextCursor": {
          "type": "string",
          "format": "uuid"
        },
        "hasMore": {
          "type": "boolean"
        },
        "watermark": {
          "type": "integer"
        }
      },
      "required": [
        "kind",
        "customers",
        "nextCursor",
        "hasMore",
        "watermark"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "changes"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "eventId": {
                "type": "string",
                "format": "uuid"
              },
              "sequence": {
                "type": "integer"
              },
              "type": {
                "enum": [
                  "upsert",
                  "detached"
                ]
              },
              "customer": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "customerId",
                  "externalCustomerId",
                  "status",
                  "version"
                ],
                "properties": {
                  "customerId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "externalCustomerId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "enum": [
                      "active",
                      "detached"
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "displayName": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "he",
                          "ar",
                          "en"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "type": "string",
                    "pattern": "^\\+[1-9][0-9]{7,14}$"
                  },
                  "fieldSources": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "source": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "updated_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "source",
                        "version",
                        "updated_at"
                      ]
                    }
                  },
                  "identityAssurance": {
                    "enum": [
                      "customer_verified",
                      "owner_reviewed"
                    ],
                    "description": "owner_reviewed means an owner-approved administrative or historical contact record, never customer authentication or phone proof."
                  },
                  "displayNameUnavailableReason": {
                    "enum": [
                      "not_set",
                      "blank",
                      "too_long",
                      "unsupported_characters"
                    ],
                    "description": "Present only when the active displayName is unavailable (null). Canonical CRAD text is preserved, not truncated or cleared. Do not echo null as a source-field deletion."
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "required": [
                        "displayNameUnavailableReason"
                      ]
                    },
                    "then": {
                      "required": [
                        "displayName"
                      ],
                      "properties": {
                        "status": {
                          "const": "active"
                        },
                        "displayName": {
                          "type": "null"
                        }
                      }
                    }
                  }
                ]
              },
              "source": {
                "type": "string"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "eventId",
              "sequence",
              "type",
              "customer",
              "source",
              "createdAt"
            ]
          }
        },
        "nextCursor": {
          "type": "string",
          "format": "uuid"
        },
        "hasMore": {
          "type": "boolean"
        },
        "watermark": {
          "type": "integer"
        }
      },
      "required": [
        "kind",
        "events",
        "nextCursor",
        "hasMore",
        "watermark"
      ]
    }
  ]
}

Errors and recovery

Error responses declared in the contract (10)

The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.

401 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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"
  ]
}
410 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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"
  ]
}
412 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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"
  ]
}
428 · Structured error.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Rate limit; honor Retry-After.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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 · Outcome may be unknown. Keep operation key and reconcile.

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "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"
  ]
}