CRADالمطوّرون
العربية

Retrieve integration access

Read current installer identity, grants and bounded API limits

قبل الاستخدام الفعلي — افحص القدرات المنشورة والصلاحيات وجاهزية ربطك.

تحقّق من القدرات المنشورة وصلاحيات المفتاح وجاهزية النشاط في بيئتك. أمثلة HTTP مسجّلة من اختبارات معزولة؛ وصفها local-unreleased لا يعني أن API غير عامل ولا يُثبت جاهزية ربطك. في مسار العميل يُتحقق من الهاتف بقالب واتساب أعدّه النشاط؛ SMS غير مدعوم. التسجيل بواسطة مسؤول مخوّل عملية منفصلة دون رمز.

GET/v1/integration

Behavior

Server-only integration credential. Current authority is checked again after the tenant lock. No query tenant override, customer data or secrets; browser Origin is denied. Environment remains unknown without a trusted deployment attestation. Supported capabilities do not authorize operations or promise provider readiness.

Authentication

IntegrationCredential OR ManagementCredential

Credential rules

Use the same server-only wbm_ API key as business management, with explicitly approved integration scopes; legacy wbi_ integration-only keys remain supported. No Origin request header. GET /v1/integration returns the integration-scoped view of the same credential/site/integration. Customer phone proof is still required for self-service.

One server-only owner-issued wbm_ API key can carry both management and integration permissions. Additional permissions require an explicit owner-issued grant. GET /v1/management returns the management discovery view, which may be empty for a booking-only key. For credentials with appointments:read, this discovery view omits whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write to preserve calendar-client compatibility. Discover these grants through GET /v1/management/messaging-capabilities. Template/profile command authorization still uses the stored grants. Server-only owner-issued Management authority with explicit application permissions. Calling this API does not expand a credential's grants. contacts:read/write/block/sync/fields:read/fields:write are separate approvals for canonical business contacts; fields also require current typed owner grants. contacts:record remains contact recording/recovery only. These grants create no customer phone proof, booking authority, messaging consent or automatic synchronization. Hours/blocks retain their independent resource grants. booking-policy:read/write separately delegate whole-business booking settings, without schedule/provider grants; write requires read. They preserve existing appointments and create no duration-rewrite authority. Provider duration policy additionally requires explicit provider-booking-policy:read/write and exact current providerIds; booking-duration:rewrite is separately approved and does not itself grant policy read/write. Service catalogue requires explicit services:read/write, independent of provider/calendar/schedule resources; write requires read. These operations do not expand an existing credential's grants. Public presentation and reviewed service selection require explicit website-content:read/write; write requires read, independently from services:* and provider resources. Existing provider metadata/activity/assignment additionally requires providers:read/write and a nonempty explicit current providerIds grant; write requires read. This grants no provider creation, deletion, login, invitation or schedule authority. WhatsApp template/profile management requires separate whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write application scopes. Write requires its matching read scope. These grants require explicit owner approval; Meta OAuth permissions remain separate.

Request

No query parameters or request body. Use the credentials described above.

Successful responses

200 · IntegrationMetadata

Current safe credential-derived metadata

X-Request-Id
X-Request-Id schema
{
  "type": "string",
  "format": "uuid"
}
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json · IntegrationMetadata

  • contractVersionnumberRequired

    Value: 1

  • environmentstringRequired

    No trusted environment attestation is configured. Not a sandbox/production readiness or provider claim.

    Value: "unknown"

  • credentialIdstring · uuidRequired
  • audiencestringRequired

    Value: "integration"

  • siteIdstring · uuidRequired
  • siteStatusstringRequired

    Allowed values: ["draft","enabled","paused"]

  • siteVersionintegerRequired

    minimum: 1

  • integrationIdstring · uuidRequired
  • integrationKindstringRequired

    Allowed values: ["hosted","embed","headless"]

  • integrationStatusstringRequired

    Allowed values: ["draft","enabled","paused"]

  • integrationVersionintegerRequired

    minimum: 1

  • scopesarrayRequired

    minItems: 1maxItems: 5uniqueItems: true

    View nested fields
    • []stringArray item

      Allowed values: ["bookings:write:customer","bookings:read:integration","customers:read","customers:write","customer-changes:read"]

  • expiresAtstring | null · date-timeRequired

    Credential expiration time; null means no expiration date. Update older timestamp-only clients before installing a no-expiry credential. Revocation and current authorization still apply.

  • resourcesobjectRequired
    View nested fields
    • providerIdsarrayRequired

      maxItems: 0

      View nested fields
      • []string · uuidArray item
    • businessSchedulebooleanRequired

      Value: false

    • additionalPropertiesno value allowedSchema rule
  • limitsobjectRequired
    View nested fields
    • credentialRequestsPerMinutenumberRequired

      Machine integration endpoints only; separate customer session and operation budgets still apply.

      Value: 120

    • siteRequestsPerMinutenumberRequired

      Shared site ceiling for customer and machine endpoints; not a remaining balance.

      Value: 2000

    • integrationSnapshotsPerHournumberRequired

      Value: 10

    • customerChangesPageSizeMaxnumberRequired

      Value: 100

    • integrationBookingsPageSizeMaxnumberRequired

      Value: 100

    • integrationBookingsRangeDaysMaxnumberRequired

      Value: 31

    • additionalPropertiesno value allowedSchema rule
  • capabilitiesallOf (object & unspecified)Required

    All of these schema rules apply together.

    View nested fields
    • allOf 1objectSchema branch

      Supported API contracts, not authorization or tenant activation. Missing flags in an older additive-v1 response mean unknown. Current credentials and business configuration are still checked for every action.

      View branch fields and rules
      • bookingActionAvailabilitybooleanRequired
      • customerChangesFeedbooleanRequired
      • customerSyncCheckpointsbooleanRequired
      • managementSchedulesbooleanRequired
      • managementBlocksbooleanRequired
      • externalWebhooksbooleanRequired
      • paymentsbooleanRequired
      • temporaryHoldsbooleanRequired
      • groupBookingsbooleanRequired
      • overnightHoursbooleanRequired
      • dateSpecificOpeningbooleanRequired
      • bookingChangesFeedbooleanOptional

        Supports durable polling of this integration's bookings; still requires its explicit read scope.

      • customerBookingHistorybooleanOptional

        History limited to mapped customer and same integration, not every business channel.

      • sharedCustomerFieldsbooleanOptional

        Installed support for explicitly shared fields on an active customer-verified mapping. Access still requires the appropriate integration scopes and current owner grants for each field. This does not imply sharing every field, deployed readiness or a shared-field change feed.

      • allChannelCustomerHistorybooleanOptional

        Installed support for read-only all-channel history of one active customer-verified mapping, with separate owner approval and customer/booking read scopes. It is not whole-business calendar access, a change feed or authority to modify the returned history records.

      • sharedCustomerFieldsChangeFeedbooleanOptional

        False means shared values require current authorized reads and are not copied into the retained basic customer feed.

      • additionalPropertiesno value allowedSchema rule
    • allOf 2unspecifiedSchema branch

      Supported installed contracts, separate from current scopes, status and live readiness. Management support does not give this integration credential a management grant.

  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "contractVersion": {
      "const": 1
    },
    "environment": {
      "const": "unknown",
      "description": "No trusted environment attestation is configured. Not a sandbox/production readiness or provider claim."
    },
    "credentialId": {
      "type": "string",
      "format": "uuid"
    },
    "audience": {
      "const": "integration"
    },
    "siteId": {
      "type": "string",
      "format": "uuid"
    },
    "siteStatus": {
      "enum": [
        "draft",
        "enabled",
        "paused"
      ]
    },
    "siteVersion": {
      "type": "integer",
      "minimum": 1
    },
    "integrationId": {
      "type": "string",
      "format": "uuid"
    },
    "integrationKind": {
      "enum": [
        "hosted",
        "embed",
        "headless"
      ]
    },
    "integrationStatus": {
      "enum": [
        "draft",
        "enabled",
        "paused"
      ]
    },
    "integrationVersion": {
      "type": "integer",
      "minimum": 1
    },
    "scopes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5,
      "uniqueItems": true,
      "items": {
        "enum": [
          "bookings:write:customer",
          "bookings:read:integration",
          "customers:read",
          "customers:write",
          "customer-changes:read"
        ]
      }
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Credential expiration time; null means no expiration date. Update older timestamp-only clients before installing a no-expiry credential. Revocation and current authorization still apply."
    },
    "resources": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "providerIds": {
          "type": "array",
          "maxItems": 0,
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "businessSchedule": {
          "const": false
        }
      },
      "required": [
        "providerIds",
        "businessSchedule"
      ]
    },
    "limits": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "credentialRequestsPerMinute": {
          "const": 120,
          "description": "Machine integration endpoints only; separate customer session and operation budgets still apply."
        },
        "siteRequestsPerMinute": {
          "const": 2000,
          "description": "Shared site ceiling for customer and machine endpoints; not a remaining balance."
        },
        "integrationSnapshotsPerHour": {
          "const": 10
        },
        "customerChangesPageSizeMax": {
          "const": 100
        },
        "integrationBookingsPageSizeMax": {
          "const": 100
        },
        "integrationBookingsRangeDaysMax": {
          "const": 31
        }
      },
      "required": [
        "credentialRequestsPerMinute",
        "siteRequestsPerMinute",
        "integrationSnapshotsPerHour",
        "customerChangesPageSizeMax",
        "integrationBookingsPageSizeMax",
        "integrationBookingsRangeDaysMax"
      ]
    },
    "capabilities": {
      "allOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "description": "Supported API contracts, not authorization or tenant activation. Missing flags in an older additive-v1 response mean unknown. Current credentials and business configuration are still checked for every action.",
          "properties": {
            "bookingActionAvailability": {
              "type": "boolean"
            },
            "customerChangesFeed": {
              "type": "boolean"
            },
            "customerSyncCheckpoints": {
              "type": "boolean"
            },
            "managementSchedules": {
              "type": "boolean"
            },
            "managementBlocks": {
              "type": "boolean"
            },
            "externalWebhooks": {
              "type": "boolean"
            },
            "payments": {
              "type": "boolean"
            },
            "temporaryHolds": {
              "type": "boolean"
            },
            "groupBookings": {
              "type": "boolean"
            },
            "overnightHours": {
              "type": "boolean"
            },
            "dateSpecificOpening": {
              "type": "boolean"
            },
            "bookingChangesFeed": {
              "type": "boolean",
              "description": "Supports durable polling of this integration's bookings; still requires its explicit read scope."
            },
            "customerBookingHistory": {
              "type": "boolean",
              "description": "History limited to mapped customer and same integration, not every business channel."
            },
            "sharedCustomerFields": {
              "type": "boolean",
              "description": "Installed support for explicitly shared fields on an active customer-verified mapping. Access still requires the appropriate integration scopes and current owner grants for each field. This does not imply sharing every field, deployed readiness or a shared-field change feed."
            },
            "allChannelCustomerHistory": {
              "type": "boolean",
              "description": "Installed support for read-only all-channel history of one active customer-verified mapping, with separate owner approval and customer/booking read scopes. It is not whole-business calendar access, a change feed or authority to modify the returned history records."
            },
            "sharedCustomerFieldsChangeFeed": {
              "type": "boolean",
              "description": "False means shared values require current authorized reads and are not copied into the retained basic customer feed."
            }
          },
          "required": [
            "bookingActionAvailability",
            "customerChangesFeed",
            "customerSyncCheckpoints",
            "managementSchedules",
            "managementBlocks",
            "externalWebhooks",
            "payments",
            "temporaryHolds",
            "groupBookings",
            "overnightHours",
            "dateSpecificOpening"
          ]
        },
        {
          "description": "Supported installed contracts, separate from current scopes, status and live readiness. Management support does not give this integration credential a management grant."
        }
      ]
    }
  },
  "required": [
    "contractVersion",
    "environment",
    "credentialId",
    "audience",
    "siteId",
    "siteStatus",
    "siteVersion",
    "integrationId",
    "integrationKind",
    "integrationStatus",
    "integrationVersion",
    "scopes",
    "expiresAt",
    "resources",
    "limits",
    "capabilities"
  ]
}

Errors and recovery

Error responses declared in the contract (6)

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

401 · Missing/malformed integration credential
X-Request-Id
X-Request-Id schema
{
  "type": "string",
  "format": "uuid"
}
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Browser Origin, revoked/expired credential or current authority refused
X-Request-Id
X-Request-Id schema
{
  "type": "string",
  "format": "uuid"
}
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Unsupported method/route
X-Request-Id
X-Request-Id schema
{
  "type": "string",
  "format": "uuid"
}
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Unrecognized query parameters
X-Request-Id
X-Request-Id schema
{
  "type": "string",
  "format": "uuid"
}
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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 · Bounded machine/site request quota
Retry-After
Retry-After schema
{
  "type": "integer",
  "minimum": 1
}

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 · Unavailable or uncertain server metadata
X-Request-Id
X-Request-Id schema
{
  "type": "string",
  "format": "uuid"
}
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

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