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

Retrieve capabilities

Published capabilities

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

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

GET/v1/sites/{siteId}/capabilities

Behavior

If bookingEnabled becomes false after the business changes its native booking mode, its previously enrolled public policy may no longer match. An enabled integration, issued session or available verification transport does not override this refusal. Keep new booking actions disabled and ask the owner and CRAD to review the public configuration; do not recreate enrollment or reinterpret existing bookings through client code.

Authentication

No authentication required

Credential rules

X-CRAD-Integration-Key (optional header): Optional companion backend credential for the same integration, server requests only; never send from a browser. Required to bind an externalCustomerId on registration.

Anonymous reads show site-wide intake. A valid customer session scopes bookingEnabled to that session’s integration. Capabilities do not grant permissions or reserve an appointment. If this customer session was created with a companion integration credential, that bound credential must still grant bookings:write:customer. Its current expiry/revocation is checked as well; an unrelated key sent later does not repair the session.

Request

  • siteIdpath · stringRequired
    Format and constraints
    siteId schema
    {
      "type": "string",
      "format": "uuid"
    }
  • X-CRAD-Integration-Keyheader · stringOptional

    Optional companion backend credential for the same integration, server requests only; never send from a browser. Required to bind an externalCustomerId on registration.

    Format and constraints
    X-CRAD-Integration-Key schema
    {
      "type": "string",
      "pattern": "^(?:wbi|wbm)_[a-f0-9]{64}$"
    }

Successful responses

200 · Capabilities

application/json · Capabilities

  • contractVersionnumberRequired

    Value: 1

  • siteIdstring · uuidRequired
  • integrationIdanyOf (string | null)Required

    At least one of these variants must match.

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

    Optional default hosted integration for existing appointment management and known-request recovery. May identify a paused hosted integration; never use it to admit a new booking. Explicit integration IDs retain priority and every session/proof remains bound to its exact integration.

    At least one of these variants must match.

    View nested fields
    • anyOf 1string · uuidSchema branch
    • anyOf 2nullSchema branch
  • businessNameobjectRequired
    View nested fields
    • hestringOptional
    • arstringOptional
    • enstringOptional
    • additionalPropertiesno value allowedSchema rule
  • defaultLanguagestringRequired

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

  • bookingPolicystringRequired

    Allowed values: ["legacy_fixed_slot_v1","service_duration_v1"]

  • bookingHorizonDaysintegerRequired
  • providerSelectionbooleanRequired
  • removalbooleanRequired
  • timezonestringRequired
  • minCancellationNoticeMinutesintegerRequired
  • bookingEnabledbooleanRequired

    New intake readiness for the authenticated session's integration, or site-wide readiness through at least one enabled integration for an anonymous catalog. An anonymous integrationId is the default hosted integration and may be null for an API-only site; supply the known headless integration ID when creating its session. This flag does not reserve a slot or prevent management of accepted bookings.

  • verificationobjectRequired
    View nested fields
    • availablebooleanRequired

      The configured code verifier can validate an issued code. This stays available when the WhatsApp sender disconnects; it does not assert provider delivery or permission to issue another code.

    • newChallengeAvailablebooleanOptional

      Optional current advice for new verification through the business's WhatsApp Authentication template. False does not invalidate an already issued code, verified proof or exact challenge replay. The send action explicitly requests this code only; it does not change reminder consent. Meta approval, sender binding, policy and abuse quotas are checked before dispatch. No SMS fallback.

    • channelstringRequired

      Value: "whatsapp"

    • modestringRequired

      Allowed values: ["disabled","sandbox","live"]

    • languagesarrayOptional

      Optional current languages configured for new WhatsApp verification codes. Use the visitor's selected language only when included; never silently switch to another language. An empty array prevents new issuance. This field does not invalidate checking an existing code. Older v1 responses may omit it; the server remains authoritative.

      maxItems: 3uniqueItems: true

      View nested fields
      • []stringArray item

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

    • additionalPropertiesno value allowedSchema rule
  • communicationNoticeVersionstringRequired
  • configRevisionstringOptional
  • catalogRevisionstringOptional
  • businessDetailsobjectOptional
    View nested fields
    • locationobjectRequired
      View nested fields
      • hestringOptional
      • arstringOptional
      • enstringOptional
      • additionalPropertiesno value allowedSchema rule
    • contactPhoneanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1stringSchema branch

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

      • anyOf 2nullSchema branch
    • websiteUrlanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uriSchema branch

        pattern: "^https://"

      • anyOf 2nullSchema branch
    • imageUrlanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · uriSchema branch

        pattern: "^https://"

      • anyOf 2nullSchema branch
    • additionalPropertiesno value allowedSchema rule
  • featuresobjectOptional

    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 nested fields
    • 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
  • languagesarrayOptional

    Optional additive v1 supported contract languages. Default language alone does not enumerate support.

    minItems: 1maxItems: 3uniqueItems: true

    View nested fields
    • []stringArray item

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

  • customerFieldsarray; allOf (unspecified & unspecified)Optional

    Optional additive v1 fixed required fields and localized labels. Absence in an older v1 response is unknown discovery, not permission for unsupported fields.

    All of these schema rules apply together.

    minItems: 2maxItems: 2

    View nested fields
    • allOf 1unspecifiedSchema branch

      minContains: 1maxContains: 1

      View branch fields and rules
      • containsobjectSchema rule
        View branch fields and rules
        • keystringRequired

          Value: "customerName"

    • allOf 2unspecifiedSchema branch

      minContains: 1maxContains: 1

      View branch fields and rules
      • containsobjectSchema rule
        View branch fields and rules
        • keystringRequired

          Value: "phone"

    • []oneOf (object | object)Array item

      First-release customer fields. Phone is entered for WhatsApp verification, not accepted as a booking identity override; names are nonblank and trimmed. No custom scripts or arbitrary fields.

      Exactly one of these variants must match.

      View nested fields
      • oneOf 1 · key = "customerName"objectSchema branch
        View branch fields and rules
        • keystringRequired in this branch

          Value: "customerName"

        • typestringRequired in this branch

          Value: "text"

        • stagestringRequired in this branch

          Value: "booking"

        • requiredbooleanRequired in this branch

          Value: true

        • minLengthnumberRequired in this branch

          Value: 1

        • maxLengthnumberRequired in this branch

          Value: 100

        • labelobjectRequired in this branch
          View nested fields
          • hestringOptional in this branch
          • arstringOptional in this branch
          • enstringOptional in this branch
          • additionalPropertiesno value allowedSchema rule
        • additionalPropertiesno value allowedSchema rule
      • oneOf 2 · key = "phone"objectSchema branch
        View branch fields and rules
        • keystringRequired in this branch

          Value: "phone"

        • typestringRequired in this branch

          Value: "phone"

        • stagestringRequired in this branch

          Value: "verification"

        • requiredbooleanRequired in this branch

          Value: true

        • minLengthnumberRequired in this branch

          Value: 9

        • maxLengthnumberRequired in this branch

          Value: 16

        • formatstringRequired in this branch

          Value: "e164"

        • verificationRequiredbooleanRequired in this branch

          Value: true

        • labelobjectRequired in this branch
          View nested fields
          • hestringOptional in this branch
          • arstringOptional in this branch
          • enstringOptional in this branch
          • additionalPropertiesno value allowedSchema rule
        • additionalPropertiesno value allowedSchema rule
  • approvalRequiredbooleanOptional

    New customer bookings await clinic approval. Show Send request and request-received copy. Omission in older v1 means unknown; always honor the committed receipt status.

  • customerAppointmentChangesstringOptional

    Current customer change/cancel policy. In contact_business mode direct customers to capabilities.businessDetails.contactPhone; owners can still manage appointments and customers can respond to explicit alternative-time offers.

    Allowed values: ["self_service","contact_business"]

  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "contractVersion": {
      "const": 1
    },
    "siteId": {
      "type": "string",
      "format": "uuid"
    },
    "integrationId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "recoveryIntegrationId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional default hosted integration for existing appointment management and known-request recovery. May identify a paused hosted integration; never use it to admit a new booking. Explicit integration IDs retain priority and every session/proof remains bound to its exact integration."
    },
    "businessName": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "he": {
          "type": "string"
        },
        "ar": {
          "type": "string"
        },
        "en": {
          "type": "string"
        }
      }
    },
    "defaultLanguage": {
      "type": "string",
      "enum": [
        "he",
        "ar",
        "en"
      ]
    },
    "bookingPolicy": {
      "enum": [
        "legacy_fixed_slot_v1",
        "service_duration_v1"
      ]
    },
    "bookingHorizonDays": {
      "type": "integer"
    },
    "providerSelection": {
      "type": "boolean"
    },
    "removal": {
      "type": "boolean"
    },
    "timezone": {
      "type": "string"
    },
    "minCancellationNoticeMinutes": {
      "type": "integer"
    },
    "bookingEnabled": {
      "type": "boolean",
      "description": "New intake readiness for the authenticated session's integration, or site-wide readiness through at least one enabled integration for an anonymous catalog. An anonymous integrationId is the default hosted integration and may be null for an API-only site; supply the known headless integration ID when creating its session. This flag does not reserve a slot or prevent management of accepted bookings."
    },
    "verification": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "available": {
          "type": "boolean",
          "description": "The configured code verifier can validate an issued code. This stays available when the WhatsApp sender disconnects; it does not assert provider delivery or permission to issue another code."
        },
        "newChallengeAvailable": {
          "type": "boolean",
          "description": "Optional current advice for new verification through the business's WhatsApp Authentication template. False does not invalidate an already issued code, verified proof or exact challenge replay. The send action explicitly requests this code only; it does not change reminder consent. Meta approval, sender binding, policy and abuse quotas are checked before dispatch. No SMS fallback."
        },
        "channel": {
          "const": "whatsapp"
        },
        "mode": {
          "enum": [
            "disabled",
            "sandbox",
            "live"
          ]
        },
        "languages": {
          "type": "array",
          "maxItems": 3,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "he",
              "ar",
              "en"
            ]
          },
          "description": "Optional current languages configured for new WhatsApp verification codes. Use the visitor's selected language only when included; never silently switch to another language. An empty array prevents new issuance. This field does not invalidate checking an existing code. Older v1 responses may omit it; the server remains authoritative."
        }
      },
      "required": [
        "available",
        "channel",
        "mode"
      ]
    },
    "communicationNoticeVersion": {
      "type": "string"
    },
    "configRevision": {
      "type": "string"
    },
    "catalogRevision": {
      "type": "string"
    },
    "businessDetails": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "location": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "he": {
              "type": "string"
            },
            "ar": {
              "type": "string"
            },
            "en": {
              "type": "string"
            }
          }
        },
        "contactPhone": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\+[1-9][0-9]{7,14}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "websiteUrl": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri",
              "pattern": "^https://"
            },
            {
              "type": "null"
            }
          ]
        },
        "imageUrl": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri",
              "pattern": "^https://"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "location",
        "contactPhone",
        "websiteUrl",
        "imageUrl"
      ]
    },
    "features": {
      "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"
      ]
    },
    "languages": {
      "type": "array",
      "minItems": 1,
      "maxItems": 3,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "he",
          "ar",
          "en"
        ]
      },
      "description": "Optional additive v1 supported contract languages. Default language alone does not enumerate support."
    },
    "customerFields": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "key": {
                "const": "customerName"
              },
              "type": {
                "const": "text"
              },
              "stage": {
                "const": "booking"
              },
              "required": {
                "const": true
              },
              "minLength": {
                "const": 1
              },
              "maxLength": {
                "const": 100
              },
              "label": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "he": {
                    "type": "string"
                  },
                  "ar": {
                    "type": "string"
                  },
                  "en": {
                    "type": "string"
                  }
                }
              }
            },
            "required": [
              "key",
              "type",
              "stage",
              "required",
              "minLength",
              "maxLength",
              "label"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "key": {
                "const": "phone"
              },
              "type": {
                "const": "phone"
              },
              "stage": {
                "const": "verification"
              },
              "required": {
                "const": true
              },
              "minLength": {
                "const": 9
              },
              "maxLength": {
                "const": 16
              },
              "format": {
                "const": "e164"
              },
              "verificationRequired": {
                "const": true
              },
              "label": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "he": {
                    "type": "string"
                  },
                  "ar": {
                    "type": "string"
                  },
                  "en": {
                    "type": "string"
                  }
                }
              }
            },
            "required": [
              "key",
              "type",
              "stage",
              "required",
              "minLength",
              "maxLength",
              "format",
              "verificationRequired",
              "label"
            ]
          }
        ],
        "description": "First-release customer fields. Phone is entered for WhatsApp verification, not accepted as a booking identity override; names are nonblank and trimmed. No custom scripts or arbitrary fields."
      },
      "allOf": [
        {
          "contains": {
            "type": "object",
            "properties": {
              "key": {
                "const": "customerName"
              }
            },
            "required": [
              "key"
            ]
          },
          "minContains": 1,
          "maxContains": 1
        },
        {
          "contains": {
            "type": "object",
            "properties": {
              "key": {
                "const": "phone"
              }
            },
            "required": [
              "key"
            ]
          },
          "minContains": 1,
          "maxContains": 1
        }
      ],
      "description": "Optional additive v1 fixed required fields and localized labels. Absence in an older v1 response is unknown discovery, not permission for unsupported fields."
    },
    "approvalRequired": {
      "type": "boolean",
      "description": "New customer bookings await clinic approval. Show Send request and request-received copy. Omission in older v1 means unknown; always honor the committed receipt status."
    },
    "customerAppointmentChanges": {
      "enum": [
        "self_service",
        "contact_business"
      ],
      "description": "Current customer change/cancel policy. In contact_business mode direct customers to capabilities.businessDetails.contactPhone; owners can still manage appointments and customers can respond to explicit alternative-time offers."
    }
  },
  "required": [
    "contractVersion",
    "siteId",
    "integrationId",
    "businessName",
    "defaultLanguage",
    "bookingPolicy",
    "bookingHorizonDays",
    "providerSelection",
    "removal",
    "timezone",
    "minCancellationNoticeMinutes",
    "bookingEnabled",
    "verification",
    "communicationNoticeVersion"
  ]
}

Errors and recovery

Error responses declared in the contract (10)

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

401 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
403 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
404 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
409 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
410 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
412 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
422 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
428 · Structured error.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
429 · Rate limit; honor Retry-After.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
503 · Outcome may be unknown. Keep operation key and reconcile.

application/json · Error

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

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}