CRADמפתחים
עברית

Check WhatsApp connection health

לפני שימוש חי — בדקו יכולות פרוסות, הרשאות ומוכנות של החיבור שלכם.

בדקו את היכולות הפרוסות, הרשאות המפתח ומוכנות העסק בסביבה שלכם. דוגמאות HTTP נלכדו בבדיקות מבודדות; הסימון local-unreleased שלהן אינו אומר שה־API אינו פועל, ואינו מאשר את החיבור שלכם. במסלול הלקוח מאמתים טלפון בתבנית WhatsApp שהעסק הגדיר; SMS אינו נתמך. רישום בידי אדמין מורשה הוא פעולה נפרדת ללא קוד.

POST/v1/management/whatsapp-connection/health-checks

Behavior

One GET-only provider observation; no subscribe, send, OAuth, activation or token renewal. HTTP 200 may be pending, committed or expired. Only committed has an immutable receipt; current can have changed. Respect the shared manual-check lease/cooldown and returned action flags.

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

whatsapp-connection:readwhatsapp-connection:check

Request

Idempotency and recovery

Persist one UUID, the original quoted wc ETag and exact request before POST. One UUID dispatches once; pending or expired replay never repeats the provider observation. Recover with GET operations/{operationId}, including after runtime configuration changes.

  • Idempotency-Keyheader · stringRequired

    Reserve a fresh UUID for one explicit observation. Persist it with the exact request before sending.

    Format and constraints
    Idempotency-Key schema
    {
      "type": "string",
      "format": "uuid"
    }
  • If-Matchheader · stringRequired

    Original quoted ETag from the saved status. Preserve on exact replay.

    Format and constraints
    If-Match schema
    {
      "type": "string",
      "pattern": "^\"wc[a-f0-9]{64}\"$"
    }

Request body · required

application/json · BusinessWhatsappConnectionCheckInput

  • externalActorRefanyOf (string | null)Optional

    At least one of these variants must match.

    View nested fields
    • anyOf 1stringSchema branch

      Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery.

      maxLength: 200minLength: 1pattern: "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$"

    • anyOf 2nullSchema branch
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "externalActorRef": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200,
          "minLength": 1,
          "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$",
          "description": "Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": []
}

Successful responses

200 · BusinessWhatsappConnectionResult

Durable pending, committed or expired state. Only committed has accepted evidence.

Cache-Control
Cache-Control schema
{
  "const": "no-store"
}
ETag · Quoted current connection version. Use this complete header for a new explicit check. An uncertain original command keeps its original If-Match. Absent on not_found.
ETag schema
{
  "type": "string",
  "pattern": "^\"wc[a-f0-9]{64}\"$"
}

application/json · BusinessWhatsappConnectionResult

HTTP 200 is a durable operation state, not necessarily completion. Only committed has a receipt. current is freshly authorized saved state and can differ from the immutable receipt. pending/expired never redispatch the original UUID.

All of these schema rules apply together.

  • operationIdstring · uuidRequired
  • requestobject; allOf (unspecified)Required

    All of these schema rules apply together.

    View nested fields
    • expectedVersionstringRequired

      Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery.

      pattern: "^wc[a-f0-9]{64}$"

    • actionstringRequired

      Allowed values: ["health_check","reconcile_subscription"]

    • attemptIdanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uuidSchema branch
      • anyOf 2nullSchema branch
    • externalActorRefanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1stringSchema branch

        Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery.

        maxLength: 200minLength: 1pattern: "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$"

      • anyOf 2nullSchema branch
    • allOf 1unspecifiedSchema branch
      View branch fields and rules
      • ifobjectSchema rule
        View branch fields and rules
        • actionstringCondition predicate

          Value: "health_check"

      • thenobjectSchema rule
        View branch fields and rules
        • attemptIdnullOptional in this branch
      • elseobjectSchema rule
        View branch fields and rules
        • attemptIdstring · uuidOptional in this branch
    • additionalPropertiesno value allowedSchema rule
  • statestringRequired

    Allowed values: ["pending","committed","expired"]

  • startedAtstring · date-timeRequired
  • expiresAtstring · date-timeRequired
  • receiptanyOf (object | null)Required

    At least one of these variants must match.

    View nested fields
    • anyOf 1objectSchema branch

      Immutable accepted observation for the original exact request. settledSubscription=true only confirms that an eligible unknown subscription was observed present and its saved state settled. It never means a new subscription was sent.

      View branch fields and rules
      • operationIdstring · uuidRequired in this branch
      • requestobject; allOf (unspecified)Required in this branch

        All of these schema rules apply together.

        View nested fields
        • expectedVersionstringRequired in this branch

          Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery.

          pattern: "^wc[a-f0-9]{64}$"

        • actionstringRequired in this branch

          Allowed values: ["health_check","reconcile_subscription"]

        • attemptIdanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1string · uuidSchema branch
          • anyOf 2nullSchema branch
        • externalActorRefanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch

            Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery.

            maxLength: 200minLength: 1pattern: "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$"

          • anyOf 2nullSchema branch
        • allOf 1unspecifiedSchema branch
          View branch fields and rules
          • ifobjectSchema rule
            View branch fields and rules
            • actionstringCondition predicate

              Value: "health_check"

          • thenobjectSchema rule
            View branch fields and rules
            • attemptIdnullOptional in this branch
          • elseobjectSchema rule
            View branch fields and rules
            • attemptIdstring · uuidOptional in this branch
        • additionalPropertiesno value allowedSchema rule
      • checkedAtstring · date-timeRequired in this branch
      • healthobject; allOf (unspecified)Required in this branch

        Finite facts from a GET-only Meta observation. Healthy requires all four checks to pass; this does not prove delivery, activate the bot or extend token expiry.

        All of these schema rules apply together.

        View nested fields
        • resultstringRequired in this branch

          Allowed values: ["healthy","action_required","unknown"]

        • reasonanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch

            Allowed values: ["token_invalid","token_expired","app_mismatch","permissions_missing","asset_unavailable","not_coexistence","subscription_missing","provider_unavailable","provider_response_invalid","provider_rate_limited"]

          • anyOf 2nullSchema branch
        • checksobjectRequired in this branch
          View nested fields
          • tokenstringRequired in this branch

            Allowed values: ["passed","failed","unknown"]

          • membershipstringRequired in this branch

            Allowed values: ["passed","failed","unknown"]

          • coexistencestringRequired in this branch

            Allowed values: ["passed","failed","unknown"]

          • subscriptionstringRequired in this branch

            Allowed values: ["passed","failed","unknown"]

          • additionalPropertiesno value allowedSchema rule
        • tokenExpiresAtanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1string · date-timeSchema branch
          • anyOf 2nullSchema branch
        • dataAccessExpiresAtanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1string · date-timeSchema branch
          • anyOf 2nullSchema branch
        • allOf 1unspecifiedSchema branch
          View branch fields and rules
          • ifobjectSchema rule
            View branch fields and rules
            • resultstringCondition predicate

              Value: "healthy"

          • thenobjectSchema rule
            View branch fields and rules
            • reasonnullOptional in this branch
            • checksobjectOptional in this branch
              View nested fields
              • tokenstringOptional in this branch

                Value: "passed"

              • membershipstringOptional in this branch

                Value: "passed"

              • coexistencestringOptional in this branch

                Value: "passed"

              • subscriptionstringOptional in this branch

                Value: "passed"

          • elseobjectSchema rule
            View branch fields and rules
            • reasonstringOptional in this branch

              Allowed values: ["token_invalid","token_expired","app_mismatch","permissions_missing","asset_unavailable","not_coexistence","subscription_missing","provider_unavailable","provider_response_invalid","provider_rate_limited"]

        • additionalPropertiesno value allowedSchema rule
      • settledSubscriptionbooleanRequired in this branch
      • additionalPropertiesno value allowedSchema rule
    • anyOf 2nullSchema branch
  • currentobjectRequired

    Credential-bound whole-business saved connection view. A null connection means no supported saved Coexistence connection; it does not prove absence of a legacy WhatsApp channel. configured reflects manual-check runtime configuration, not business verification. No credentials, raw asset IDs or provider errors are exposed.

    View nested fields
    • versionstringRequired

      Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery.

      pattern: "^wc[a-f0-9]{64}$"

    • configuredbooleanRequired
    • botActivebooleanRequired
    • reconciliationAttemptIdanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uuidSchema branch
      • anyOf 2nullSchema branch
    • connectionanyOf (object | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1objectSchema branch
        View branch fields and rules
        • statestringRequired in this branch

          Allowed values: ["prepared","verified","ready","disconnected","blocked"]

        • displayPhoneNumberanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch

            maxLength: 64

          • anyOf 2nullSchema branch
        • verifiedAtanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1string · date-timeSchema branch
          • anyOf 2nullSchema branch
        • generationintegerRequired in this branch

          minimum: 0maximum: 9007199254740991

        • currentBindingbooleanRequired in this branch
        • outboundAllowedbooleanRequired in this branch
        • lifecycleobjectRequired in this branch
          View nested fields
          • eventanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["PARTNER_REMOVED","ACCOUNT_OFFBOARDED","ACCOUNT_RECONNECTED"]

            • anyOf 2nullSchema branch
          • occurredAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • receivedAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • requiresVerificationbooleanRequired in this branch
          • additionalPropertiesno value allowedSchema rule
        • stagesobjectRequired in this branch
          View nested fields
          • subscribestringRequired in this branch

            Allowed values: ["pending","running","succeeded","failed","unknown","not_requested"]

          • contactsstringRequired in this branch

            Allowed values: ["pending","running","succeeded","failed","unknown","not_requested"]

          • historystringRequired in this branch

            Allowed values: ["pending","running","succeeded","failed","unknown","not_requested"]

          • additionalPropertiesno value allowedSchema rule
        • eventsReceivedintegerRequired in this branch

          minimum: 0maximum: 9007199254740991

        • historySharingStatusstringRequired in this branch

          Allowed values: ["unknown","declined","receiving","complete"]

        • healthobjectRequired in this branch

          Saved health evidence and current action availability. Display checkedAt; current does not mean a new live observation was made by this GET. retryAt is nullable. Unknown is not healthy.

          View nested fields
          • resultanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["healthy","action_required","unknown"]

            • anyOf 2nullSchema branch
          • reasonanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["token_invalid","token_expired","app_mismatch","permissions_missing","asset_unavailable","not_coexistence","subscription_missing","provider_unavailable","provider_response_invalid","provider_rate_limited"]

            • anyOf 2nullSchema branch
          • checksobjectRequired in this branch
            View nested fields
            • tokenstringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • membershipstringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • coexistencestringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • subscriptionstringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • additionalPropertiesno value allowedSchema rule
          • tokenExpiresAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • dataAccessExpiresAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • checkedAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • lastHealthyAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • currentbooleanRequired in this branch
          • canCheckbooleanRequired in this branch
          • checkBlockReasonanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["connection_unverified","connection_changed","check_in_progress","check_rate_limited","connection_paused","attempt_unavailable","operation_not_unknown","configuration_missing","tenant_not_enabled","scope_required"]

            • anyOf 2nullSchema branch
          • retryAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • canReconcileSubscriptionbooleanRequired in this branch
          • reconciliationBlockReasonanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["connection_unverified","connection_changed","check_in_progress","check_rate_limited","connection_paused","attempt_unavailable","operation_not_unknown","configuration_missing","tenant_not_enabled","scope_required"]

            • anyOf 2nullSchema branch
          • subscriptionReconciledAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • additionalPropertiesno value allowedSchema rule
        • reminderReadinessobjectOptional in this branch

          Saved reminder-template approval observation. Not a new provider check or a guarantee that a reminder can be sent or delivered.

          View nested fields
          • schemaVersionnumberRequired in this branch

            Value: 1

          • checkedAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • configurationMatchesbooleanRequired in this branch
          • currentbooleanRequired in this branch
          • readOutcomestringRequired in this branch

            Allowed values: ["complete","unavailable","unknown"]

          • approvedLanguagesarrayRequired in this branch

            uniqueItems: truemaxItems: 3

            View nested fields
            • []stringArray item

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

          • languagesobjectRequired in this branch
            View nested fields
            • heobjectRequired in this branch
              View nested fields
              • availableanyOf (boolean | null)Required in this branch

                At least one of these variants must match.

                View nested fields
                • anyOf 1booleanSchema branch
                • anyOf 2nullSchema branch
              • actualLanguageanyOf (string | null)Required 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
              • languageCodeanyOf (string | null)Required in this branch

                At least one of these variants must match.

                View nested fields
                • anyOf 1stringSchema branch

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

                • anyOf 2nullSchema branch
              • additionalPropertiesno value allowedSchema rule
            • arobjectRequired in this branch
              View nested fields
              • availableanyOf (boolean | null)Required in this branch

                At least one of these variants must match.

                View nested fields
                • anyOf 1booleanSchema branch
                • anyOf 2nullSchema branch
              • actualLanguageanyOf (string | null)Required 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
              • languageCodeanyOf (string | null)Required in this branch

                At least one of these variants must match.

                View nested fields
                • anyOf 1stringSchema branch

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

                • anyOf 2nullSchema branch
              • additionalPropertiesno value allowedSchema rule
            • enobjectRequired in this branch
              View nested fields
              • availableanyOf (boolean | null)Required in this branch

                At least one of these variants must match.

                View nested fields
                • anyOf 1booleanSchema branch
                • anyOf 2nullSchema branch
              • actualLanguageanyOf (string | null)Required 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
              • languageCodeanyOf (string | null)Required in this branch

                At least one of these variants must match.

                View nested fields
                • anyOf 1stringSchema branch

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

                • anyOf 2nullSchema branch
              • additionalPropertiesno value allowedSchema rule
            • additionalPropertiesno value allowedSchema rule
          • additionalPropertiesno value allowedSchema rule
        • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • billingEvidenceallOf (object; allOf (unspecified) & unspecified)Optional

      All of these schema rules apply together.

      View nested fields
      • allOf 1object; allOf (unspecified)Schema branch

        Saved signature-verified failed-delivery evidence, independent of connection readiness. observed is within 24 hours; stale is older than 24 hours and within 7 days. Unknown or absence is not proof of recovery. No Graph billing probe, provider retry or billing mutation is performed.

        All of these schema rules apply together.

        View branch fields and rules
        • statestringRequired

          Allowed values: ["observed","stale","unknown"]

        • reasonstring | nullRequired

          Allowed values: ["currency_missing","payment_issue",null]

        • observedAtstring | null · date-timeRequired
        • wabaIdstring | nullRequired

          Current Messaging account (legacy WABA) scope; no phone number or payment credential.

          pattern: "^[0-9]{5,32}$"

        • allOf 1unspecifiedSchema branch
          View branch fields and rules
          • ifobjectSchema rule
            View branch fields and rules
            • statestringCondition predicate

              Value: "unknown"

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

              Value: null

            • observedAtnullOptional in this branch

              Value: null

          • elseobjectSchema rule
            View branch fields and rules
            • reasonstringOptional in this branch

              Allowed values: ["currency_missing","payment_issue"]

            • observedAtstring · date-timeOptional in this branch
            • wabaIdstringOptional in this branch

              pattern: "^[0-9]{5,32}$"

        • additionalPropertiesno value allowedSchema rule
      • allOf 2unspecifiedSchema branch

        Optional additive evidence under the existing connection-read scope. Older servers may omit it; treat absence as unknown. Shared Messaging accounts can share the observation across businesses.

    • additionalPropertiesno value allowedSchema rule
  • replayedbooleanRequired
  • allOf 1unspecifiedSchema branch
    View branch fields and rules
    • ifobjectSchema rule
      View branch fields and rules
      • statestringCondition predicate

        Value: "committed"

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

        Immutable accepted observation for the original exact request. settledSubscription=true only confirms that an eligible unknown subscription was observed present and its saved state settled. It never means a new subscription was sent.

        View nested fields
        • operationIdstring · uuidRequired in this branch
        • requestobject; allOf (unspecified)Required in this branch

          All of these schema rules apply together.

          View nested fields
          • expectedVersionstringRequired in this branch

            Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery.

            pattern: "^wc[a-f0-9]{64}$"

          • actionstringRequired in this branch

            Allowed values: ["health_check","reconcile_subscription"]

          • attemptIdanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · uuidSchema branch
            • anyOf 2nullSchema branch
          • externalActorRefanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery.

              maxLength: 200minLength: 1pattern: "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$"

            • anyOf 2nullSchema branch
          • allOf 1unspecifiedSchema branch
            View branch fields and rules
            • ifobjectSchema rule
              View branch fields and rules
              • actionstringCondition predicate

                Value: "health_check"

            • thenobjectSchema rule
              View branch fields and rules
              • attemptIdnullOptional in this branch
            • elseobjectSchema rule
              View branch fields and rules
              • attemptIdstring · uuidOptional in this branch
          • additionalPropertiesno value allowedSchema rule
        • checkedAtstring · date-timeRequired in this branch
        • healthobject; allOf (unspecified)Required in this branch

          Finite facts from a GET-only Meta observation. Healthy requires all four checks to pass; this does not prove delivery, activate the bot or extend token expiry.

          All of these schema rules apply together.

          View nested fields
          • resultstringRequired in this branch

            Allowed values: ["healthy","action_required","unknown"]

          • reasonanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1stringSchema branch

              Allowed values: ["token_invalid","token_expired","app_mismatch","permissions_missing","asset_unavailable","not_coexistence","subscription_missing","provider_unavailable","provider_response_invalid","provider_rate_limited"]

            • anyOf 2nullSchema branch
          • checksobjectRequired in this branch
            View nested fields
            • tokenstringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • membershipstringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • coexistencestringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • subscriptionstringRequired in this branch

              Allowed values: ["passed","failed","unknown"]

            • additionalPropertiesno value allowedSchema rule
          • tokenExpiresAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • dataAccessExpiresAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • allOf 1unspecifiedSchema branch
            View branch fields and rules
            • ifobjectSchema rule
              View branch fields and rules
              • resultstringCondition predicate

                Value: "healthy"

            • thenobjectSchema rule
              View branch fields and rules
              • reasonnullOptional in this branch
              • checksobjectOptional in this branch
                View nested fields
                • tokenstringOptional in this branch

                  Value: "passed"

                • membershipstringOptional in this branch

                  Value: "passed"

                • coexistencestringOptional in this branch

                  Value: "passed"

                • subscriptionstringOptional in this branch

                  Value: "passed"

            • elseobjectSchema rule
              View branch fields and rules
              • reasonstringOptional in this branch

                Allowed values: ["token_invalid","token_expired","app_mismatch","permissions_missing","asset_unavailable","not_coexistence","subscription_missing","provider_unavailable","provider_response_invalid","provider_rate_limited"]

          • additionalPropertiesno value allowedSchema rule
        • settledSubscriptionbooleanRequired in this branch
        • additionalPropertiesno value allowedSchema rule
    • elseobjectSchema rule
      View branch fields and rules
      • receiptnullOptional in this branch
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "operationId": {
      "type": "string",
      "format": "uuid"
    },
    "request": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "type": "string",
          "pattern": "^wc[a-f0-9]{64}$",
          "description": "Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery."
        },
        "action": {
          "type": "string",
          "enum": [
            "health_check",
            "reconcile_subscription"
          ]
        },
        "attemptId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "externalActorRef": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$",
              "description": "Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery."
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "expectedVersion",
        "action",
        "attemptId",
        "externalActorRef"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "action": {
                "const": "health_check"
              }
            }
          },
          "then": {
            "properties": {
              "attemptId": {
                "type": "null"
              }
            }
          },
          "else": {
            "properties": {
              "attemptId": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        }
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "pending",
        "committed",
        "expired"
      ]
    },
    "startedAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "receipt": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "operationId": {
              "type": "string",
              "format": "uuid"
            },
            "request": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "expectedVersion": {
                  "type": "string",
                  "pattern": "^wc[a-f0-9]{64}$",
                  "description": "Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery."
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "health_check",
                    "reconcile_subscription"
                  ]
                },
                "attemptId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "externalActorRef": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$",
                      "description": "Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "expectedVersion",
                "action",
                "attemptId",
                "externalActorRef"
              ],
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "action": {
                        "const": "health_check"
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "attemptId": {
                        "type": "null"
                      }
                    }
                  },
                  "else": {
                    "properties": {
                      "attemptId": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  }
                }
              ]
            },
            "checkedAt": {
              "type": "string",
              "format": "date-time"
            },
            "health": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "result": {
                  "type": "string",
                  "enum": [
                    "healthy",
                    "action_required",
                    "unknown"
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "token_invalid",
                        "token_expired",
                        "app_mismatch",
                        "permissions_missing",
                        "asset_unavailable",
                        "not_coexistence",
                        "subscription_missing",
                        "provider_unavailable",
                        "provider_response_invalid",
                        "provider_rate_limited"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "checks": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "token": {
                      "type": "string",
                      "enum": [
                        "passed",
                        "failed",
                        "unknown"
                      ]
                    },
                    "membership": {
                      "type": "string",
                      "enum": [
                        "passed",
                        "failed",
                        "unknown"
                      ]
                    },
                    "coexistence": {
                      "type": "string",
                      "enum": [
                        "passed",
                        "failed",
                        "unknown"
                      ]
                    },
                    "subscription": {
                      "type": "string",
                      "enum": [
                        "passed",
                        "failed",
                        "unknown"
                      ]
                    }
                  },
                  "required": [
                    "token",
                    "membership",
                    "coexistence",
                    "subscription"
                  ]
                },
                "tokenExpiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dataAccessExpiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "result",
                "reason",
                "checks",
                "tokenExpiresAt",
                "dataAccessExpiresAt"
              ],
              "description": "Finite facts from a GET-only Meta observation. Healthy requires all four checks to pass; this does not prove delivery, activate the bot or extend token expiry.",
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "result": {
                        "const": "healthy"
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "reason": {
                        "type": "null"
                      },
                      "checks": {
                        "properties": {
                          "token": {
                            "const": "passed"
                          },
                          "membership": {
                            "const": "passed"
                          },
                          "coexistence": {
                            "const": "passed"
                          },
                          "subscription": {
                            "const": "passed"
                          }
                        }
                      }
                    }
                  },
                  "else": {
                    "properties": {
                      "reason": {
                        "type": "string",
                        "enum": [
                          "token_invalid",
                          "token_expired",
                          "app_mismatch",
                          "permissions_missing",
                          "asset_unavailable",
                          "not_coexistence",
                          "subscription_missing",
                          "provider_unavailable",
                          "provider_response_invalid",
                          "provider_rate_limited"
                        ]
                      }
                    }
                  }
                }
              ]
            },
            "settledSubscription": {
              "type": "boolean"
            }
          },
          "required": [
            "operationId",
            "request",
            "checkedAt",
            "health",
            "settledSubscription"
          ],
          "description": "Immutable accepted observation for the original exact request. settledSubscription=true only confirms that an eligible unknown subscription was observed present and its saved state settled. It never means a new subscription was sent."
        },
        {
          "type": "null"
        }
      ]
    },
    "current": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "version": {
          "type": "string",
          "pattern": "^wc[a-f0-9]{64}$",
          "description": "Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery."
        },
        "configured": {
          "type": "boolean"
        },
        "botActive": {
          "type": "boolean"
        },
        "reconciliationAttemptId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "connection": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "prepared",
                    "verified",
                    "ready",
                    "disconnected",
                    "blocked"
                  ]
                },
                "displayPhoneNumber": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 64
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "verifiedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "generation": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currentBinding": {
                  "type": "boolean"
                },
                "outboundAllowed": {
                  "type": "boolean"
                },
                "lifecycle": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "event": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "PARTNER_REMOVED",
                            "ACCOUNT_OFFBOARDED",
                            "ACCOUNT_RECONNECTED"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "occurredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "receivedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "requiresVerification": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "event",
                    "occurredAt",
                    "receivedAt",
                    "requiresVerification"
                  ]
                },
                "stages": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "subscribe": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "running",
                        "succeeded",
                        "failed",
                        "unknown",
                        "not_requested"
                      ]
                    },
                    "contacts": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "running",
                        "succeeded",
                        "failed",
                        "unknown",
                        "not_requested"
                      ]
                    },
                    "history": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "running",
                        "succeeded",
                        "failed",
                        "unknown",
                        "not_requested"
                      ]
                    }
                  },
                  "required": [
                    "subscribe",
                    "contacts",
                    "history"
                  ]
                },
                "eventsReceived": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "historySharingStatus": {
                  "type": "string",
                  "enum": [
                    "unknown",
                    "declined",
                    "receiving",
                    "complete"
                  ]
                },
                "health": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "result": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "healthy",
                            "action_required",
                            "unknown"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "token_invalid",
                            "token_expired",
                            "app_mismatch",
                            "permissions_missing",
                            "asset_unavailable",
                            "not_coexistence",
                            "subscription_missing",
                            "provider_unavailable",
                            "provider_response_invalid",
                            "provider_rate_limited"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checks": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "token": {
                          "type": "string",
                          "enum": [
                            "passed",
                            "failed",
                            "unknown"
                          ]
                        },
                        "membership": {
                          "type": "string",
                          "enum": [
                            "passed",
                            "failed",
                            "unknown"
                          ]
                        },
                        "coexistence": {
                          "type": "string",
                          "enum": [
                            "passed",
                            "failed",
                            "unknown"
                          ]
                        },
                        "subscription": {
                          "type": "string",
                          "enum": [
                            "passed",
                            "failed",
                            "unknown"
                          ]
                        }
                      },
                      "required": [
                        "token",
                        "membership",
                        "coexistence",
                        "subscription"
                      ]
                    },
                    "tokenExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataAccessExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastHealthyAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current": {
                      "type": "boolean"
                    },
                    "canCheck": {
                      "type": "boolean"
                    },
                    "checkBlockReason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "connection_unverified",
                            "connection_changed",
                            "check_in_progress",
                            "check_rate_limited",
                            "connection_paused",
                            "attempt_unavailable",
                            "operation_not_unknown",
                            "configuration_missing",
                            "tenant_not_enabled",
                            "scope_required"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retryAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "canReconcileSubscription": {
                      "type": "boolean"
                    },
                    "reconciliationBlockReason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "connection_unverified",
                            "connection_changed",
                            "check_in_progress",
                            "check_rate_limited",
                            "connection_paused",
                            "attempt_unavailable",
                            "operation_not_unknown",
                            "configuration_missing",
                            "tenant_not_enabled",
                            "scope_required"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "subscriptionReconciledAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "result",
                    "reason",
                    "checks",
                    "tokenExpiresAt",
                    "dataAccessExpiresAt",
                    "checkedAt",
                    "lastHealthyAt",
                    "current",
                    "canCheck",
                    "checkBlockReason",
                    "retryAt",
                    "canReconcileSubscription",
                    "reconciliationBlockReason",
                    "subscriptionReconciledAt"
                  ],
                  "description": "Saved health evidence and current action availability. Display checkedAt; current does not mean a new live observation was made by this GET. retryAt is nullable. Unknown is not healthy."
                },
                "reminderReadiness": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "schemaVersion": {
                      "const": 1
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "configurationMatches": {
                      "type": "boolean"
                    },
                    "current": {
                      "type": "boolean"
                    },
                    "readOutcome": {
                      "type": "string",
                      "enum": [
                        "complete",
                        "unavailable",
                        "unknown"
                      ]
                    },
                    "approvedLanguages": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "he",
                          "ar",
                          "en"
                        ]
                      },
                      "uniqueItems": true,
                      "maxItems": 3
                    },
                    "languages": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "he": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "available": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "actualLanguage": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "he",
                                    "ar",
                                    "en"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "languageCode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "he",
                                    "ar",
                                    "en",
                                    "en_US"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "available",
                            "actualLanguage",
                            "languageCode"
                          ]
                        },
                        "ar": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "available": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "actualLanguage": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "he",
                                    "ar",
                                    "en"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "languageCode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "he",
                                    "ar",
                                    "en",
                                    "en_US"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "available",
                            "actualLanguage",
                            "languageCode"
                          ]
                        },
                        "en": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "available": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "actualLanguage": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "he",
                                    "ar",
                                    "en"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "languageCode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "he",
                                    "ar",
                                    "en",
                                    "en_US"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "available",
                            "actualLanguage",
                            "languageCode"
                          ]
                        }
                      },
                      "required": [
                        "he",
                        "ar",
                        "en"
                      ]
                    }
                  },
                  "required": [
                    "schemaVersion",
                    "checkedAt",
                    "configurationMatches",
                    "current",
                    "readOutcome",
                    "approvedLanguages",
                    "languages"
                  ],
                  "description": "Saved reminder-template approval observation. Not a new provider check or a guarantee that a reminder can be sent or delivered."
                }
              },
              "required": [
                "state",
                "displayPhoneNumber",
                "verifiedAt",
                "generation",
                "currentBinding",
                "outboundAllowed",
                "lifecycle",
                "stages",
                "eventsReceived",
                "historySharingStatus",
                "health"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "billingEvidence": {
          "allOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "state",
                "reason",
                "observedAt",
                "wabaId"
              ],
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "observed",
                    "stale",
                    "unknown"
                  ]
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "currency_missing",
                    "payment_issue",
                    null
                  ]
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "wabaId": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "pattern": "^[0-9]{5,32}$",
                  "description": "Current Messaging account (legacy WABA) scope; no phone number or payment credential."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "state": {
                        "const": "unknown"
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "reason": {
                        "const": null
                      },
                      "observedAt": {
                        "const": null
                      }
                    }
                  },
                  "else": {
                    "properties": {
                      "reason": {
                        "type": "string",
                        "enum": [
                          "currency_missing",
                          "payment_issue"
                        ]
                      },
                      "observedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "wabaId": {
                        "type": "string",
                        "pattern": "^[0-9]{5,32}$"
                      }
                    }
                  }
                }
              ],
              "description": "Saved signature-verified failed-delivery evidence, independent of connection readiness. observed is within 24 hours; stale is older than 24 hours and within 7 days. Unknown or absence is not proof of recovery. No Graph billing probe, provider retry or billing mutation is performed."
            },
            {
              "description": "Optional additive evidence under the existing connection-read scope. Older servers may omit it; treat absence as unknown. Shared Messaging accounts can share the observation across businesses."
            }
          ]
        }
      },
      "required": [
        "version",
        "configured",
        "botActive",
        "reconciliationAttemptId",
        "connection"
      ],
      "description": "Credential-bound whole-business saved connection view. A null connection means no supported saved Coexistence connection; it does not prove absence of a legacy WhatsApp channel. configured reflects manual-check runtime configuration, not business verification. No credentials, raw asset IDs or provider errors are exposed."
    },
    "replayed": {
      "type": "boolean"
    }
  },
  "required": [
    "operationId",
    "request",
    "state",
    "startedAt",
    "expiresAt",
    "receipt",
    "current",
    "replayed"
  ],
  "description": "HTTP 200 is a durable operation state, not necessarily completion. Only committed has a receipt. current is freshly authorized saved state and can differ from the immutable receipt. pending/expired never redispatch the original UUID.",
  "allOf": [
    {
      "if": {
        "properties": {
          "state": {
            "const": "committed"
          }
        }
      },
      "then": {
        "properties": {
          "receipt": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "operationId": {
                "type": "string",
                "format": "uuid"
              },
              "request": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "expectedVersion": {
                    "type": "string",
                    "pattern": "^wc[a-f0-9]{64}$",
                    "description": "Opaque current connection version. Preserve the quoted ETag as If-Match. Do not construct, increment or substitute it on recovery."
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "health_check",
                      "reconcile_subscription"
                    ]
                  },
                  "attemptId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalActorRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200,
                        "minLength": 1,
                        "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$",
                        "description": "Optional external staff reference; no CRAD owner identity is asserted. Keep the exact supplied value during recovery."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "expectedVersion",
                  "action",
                  "attemptId",
                  "externalActorRef"
                ],
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "action": {
                          "const": "health_check"
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "attemptId": {
                          "type": "null"
                        }
                      }
                    },
                    "else": {
                      "properties": {
                        "attemptId": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                ]
              },
              "checkedAt": {
                "type": "string",
                "format": "date-time"
              },
              "health": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "result": {
                    "type": "string",
                    "enum": [
                      "healthy",
                      "action_required",
                      "unknown"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "token_invalid",
                          "token_expired",
                          "app_mismatch",
                          "permissions_missing",
                          "asset_unavailable",
                          "not_coexistence",
                          "subscription_missing",
                          "provider_unavailable",
                          "provider_response_invalid",
                          "provider_rate_limited"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checks": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "token": {
                        "type": "string",
                        "enum": [
                          "passed",
                          "failed",
                          "unknown"
                        ]
                      },
                      "membership": {
                        "type": "string",
                        "enum": [
                          "passed",
                          "failed",
                          "unknown"
                        ]
                      },
                      "coexistence": {
                        "type": "string",
                        "enum": [
                          "passed",
                          "failed",
                          "unknown"
                        ]
                      },
                      "subscription": {
                        "type": "string",
                        "enum": [
                          "passed",
                          "failed",
                          "unknown"
                        ]
                      }
                    },
                    "required": [
                      "token",
                      "membership",
                      "coexistence",
                      "subscription"
                    ]
                  },
                  "tokenExpiresAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataAccessExpiresAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "result",
                  "reason",
                  "checks",
                  "tokenExpiresAt",
                  "dataAccessExpiresAt"
                ],
                "description": "Finite facts from a GET-only Meta observation. Healthy requires all four checks to pass; this does not prove delivery, activate the bot or extend token expiry.",
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "result": {
                          "const": "healthy"
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "reason": {
                          "type": "null"
                        },
                        "checks": {
                          "properties": {
                            "token": {
                              "const": "passed"
                            },
                            "membership": {
                              "const": "passed"
                            },
                            "coexistence": {
                              "const": "passed"
                            },
                            "subscription": {
                              "const": "passed"
                            }
                          }
                        }
                      }
                    },
                    "else": {
                      "properties": {
                        "reason": {
                          "type": "string",
                          "enum": [
                            "token_invalid",
                            "token_expired",
                            "app_mismatch",
                            "permissions_missing",
                            "asset_unavailable",
                            "not_coexistence",
                            "subscription_missing",
                            "provider_unavailable",
                            "provider_response_invalid",
                            "provider_rate_limited"
                          ]
                        }
                      }
                    }
                  }
                ]
              },
              "settledSubscription": {
                "type": "boolean"
              }
            },
            "required": [
              "operationId",
              "request",
              "checkedAt",
              "health",
              "settledSubscription"
            ],
            "description": "Immutable accepted observation for the original exact request. settledSubscription=true only confirms that an eligible unknown subscription was observed present and its saved state settled. It never means a new subscription was sent."
          }
        }
      },
      "else": {
        "properties": {
          "receipt": {
            "type": "null"
          }
        }
      }
    }
  ]
}

Errors and recovery

Input validation

  • 413REQUEST_TOO_LARGE

    The JSON request body exceeds 8,192 bytes.

  • 415JSON_REQUIRED

    Send Content-Type: application/json.

Error responses declared in the contract (12)

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

401 · Missing or invalid current credential.

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 · Origin, current authority, scope or fresh-check enrollment refused.

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 · Unknown route.

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"
  ]
}
405 · Unsupported method.

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 · CONNECTION_CHANGED, CONNECTION_UNVERIFIED, CONNECTION_PAUSED, ATTEMPT_UNAVAILABLE, OPERATION_NOT_UNKNOWN, CONFIGURATION_CHANGED, LEGACY_CONNECTION_UNSUPPORTED or OPERATION_CONFLICT. Preserve original operation identity; use the current saved status to decide a new deliberate action.

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 · VERSION_CONFLICT: the current connection or reconciliation target changed.

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"
  ]
}
413 · REQUEST_TOO_LARGE: JSON body exceeds 8192 bytes.

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"
  ]
}
415 · JSON_REQUIRED: send Content-Type: application/json.

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 · Invalid body, query, identifier or precondition syntax.

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 · Missing original If-Match or Idempotency-Key.

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 · Shared check lease, 60-second cooldown, five starts per 15 minutes, or general credential quota. Inspect saved retryAt when available; do not loop or change UUID to evade a limit.

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 · CONFIGURATION_MISSING, OUTCOME_UNCERTAIN or PERSISTENCE_FAILED. Retain the operation UUID and exact request; lookup is read-only and does not require fresh-check runtime configuration.

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"
  ]
}