CRADDevelopers
English

Preview an exact campaign

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

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

POST/v1/management/campaign-previews

Review one recipient and preserve one send intent

For a document, first confirm that it is ready for the intended customer. A staff-created appointment must already be CONFIRMED and still match the reviewed booking. Approval of a PENDING customer request uses CRAD’s automatic confirmation instead of this separate send.

Preview one real CRAD profile, require exactly that recipient and no skipped recipients, and show the rendered message before explicit staff confirmation. Before POST /campaigns, persist the exact draft, quoted cp ETag and one send UUID in an outbox event unique to that send intent. An initial staff-booking confirmation is unique per clinic, purpose and appointment; a document send also includes its explicit sendIntentId.

A later deliberate Send again for a document, after the previous outcome is known, creates a new sendIntentId and UUID after reviewing the saved report version and recipient. sendIntentId belongs to your outbox, not the CRAD request body. Concurrent clicks and retries of the same action keep the original intent and UUID. A queued, timed-out, not_found or unknown result is not a reason to create a new intent.

On timeout use /campaign-operations/{savedUuid}. not_found does not cancel an in-flight request: recover or explicitly retry the same UUID/body/ETag, never invent a new send UUID or automatically resend an unknown outcome. Track /campaigns/{campaignId}/recipients; sent means provider acceptance, not delivery. A suppressed or failed message does not undo the saved appointment or document.

Permissions for this step

campaigns:read

Continue with the clinic notification workflow

Request illustration — construct it for your backend; this is not a recorded HTTP exchange. post() uses the Management base and returns {data, etag}. Keep the key on your server.

Review and send one document-ready notice
const draft = {
  providerId: null, audience: { kind: "contacts" },
  recipientProfileIds: [cradProfileId],
  template: { name: approvedName, language: approvedLanguage },
  parameters: [authenticatedPortalEntryUrl],
  matchLanguage: false, externalActorRef: documentReadyEventRef
};
const preview = await post("/campaign-previews", draft);
if (preview.data.recipientCount !== 1 || preview.data.recipients.length !== 1 ||
    preview.data.recipients[0].profileId.toLowerCase() !== cradProfileId.toLowerCase() ||
    preview.data.skipped.length !== 0 || !/^"cp[0-9a-f]{64}"$/.test(preview.etag ?? "")) {
  throw new Error("Review the intended recipient and preview");
}
// Require a ready document, its notice permission and explicit staff approval.
// Persist one outbox event with this exact draft, ETag and savedSendUuid first.
await post("/campaigns", { draft, confirm: true }, {
  "If-Match": preview.etag, "Idempotency-Key": savedSendUuid
});
// On timeout recover /campaign-operations/{savedSendUuid}; do not invent a new UUID.

Behavior

Read-only preview of selected recipients and the complete supported template snapshots. Snapshots retain raw BODY placeholders: parameters[0] fills {{1}}, parameters[1] fills {{2}}; static header, footer and buttons are unchanged. Show rendered content for every returned variant and skipped recipients before confirmation. The Campaigns workflow explains language selection, fallback and supported components. The version covers material recipient, template and connection facts; it does not reserve capacity or expire merely because observedAt changes. Changed facts require another review.

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

campaigns:read

An owner must separately grant campaign access to the whole business or selected active providers. Calendar and customer grants do not imply campaign access. A provider-scoped campaign uses one granted provider and appointment customers. Keep this Management key on your backend.

Request

Request body · required

application/json · BusinessCampaignDraft

  • providerIdanyOf (string | null)Optional

    At least one of these variants must match.

    View nested fields
    • anyOf 1string · uuidSchema branch
    • anyOf 2nullSchema branch
  • templateobjectRequired
    View nested fields
    • namestringRequired

      pattern: "^[a-z0-9_]{1,512}$"

    • languagestringRequired

      pattern: "^[a-z]{2,3}(_[A-Za-z0-9]{2,4})?$"

    • additionalPropertiesno value allowedSchema rule
  • parametersarrayRequired

    maxItems: 1000

    View nested fields
    • []stringArray item

      Trimmed, nonempty. No tab/newline or five consecutive spaces. Lengths use JavaScript UTF-16 units; rendered body is at most 1,024 units.

      maxLength: 200minLength: 1

  • matchLanguagebooleanRequired
  • audienceoneOf (object | object | object)Required

    Exactly one of these variants must match.

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

        Value: "contacts"

      • additionalPropertiesno value allowedSchema rule
    • oneOf 2 · kind = "appointments"objectSchema branch
      View branch fields and rules
      • kindstringRequired in this branch

        Value: "appointments"

      • fromstring · date-timeRequired in this branch
      • tostring · date-timeRequired in this branch
      • statusesarrayOptional in this branch

        Defaults to PENDING, CONFIRMED and NOW. Instants must satisfy from < to.

        maxItems: 3minItems: 1

        View nested fields
        • []stringArray item

          Allowed values: ["PENDING","CONFIRMED","NOW"]

      • additionalPropertiesno value allowedSchema rule
    • oneOf 3 · kind = "segment"objectSchema branch
      View branch fields and rules
      • kindstringRequired in this branch

        Value: "segment"

      • filtersobjectRequired in this branch

        dependentRequired: {"visitedFrom":["visitedTo"],"visitedTo":["visitedFrom"]}

        View nested fields
        • awaystringOptional in this branch

          Allowed values: ["3w","1m","2m","3m"]

        • visitsstringOptional in this branch

          Allowed values: ["none","one","recentRegular","regular"]

        • backToBackstringOptional in this branch

          Allowed values: ["once","repeated"]

        • lateRegularbooleanOptional in this branch

          Value: true

        • noUpcomingbooleanOptional in this branch

          Value: true

        • recentMissedbooleanOptional in this branch

          Value: true

        • newCustomersbooleanOptional in this branch

          Value: true

        • languagestringOptional in this branch

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

        • notSentBeforebooleanOptional in this branch

          Value: true

        • lastVisitstringOptional in this branch

          Allowed values: ["within30","notSince60","notSince90"]

        • overduebooleanOptional in this branch

          Value: true

        • missedbooleanOptional in this branch

          Value: true

        • providerIdstring · uuidOptional in this branch
        • visitedFromstring · dateOptional in this branch
        • visitedTostring · dateOptional in this branch
        • additionalPropertiesno value allowedSchema rule
      • providerNameanyOf (string | null)Optional in this branch

        At least one of these variants must match.

        View nested fields
        • anyOf 1stringSchema branch

          At most 160 JavaScript UTF-16 units in the submitted value and 80 Unicode codepoints after trimming. Blank becomes null.

          maxLength: 160pattern: "^\\s*[\\s\\S]{0,80}\\s*$"

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

    Explicit selected contact profile IDs, in reviewed order. Repeated IDs are removed preserving first occurrence; one recipient per normalized number. At most 300 eligible recipients.

    maxItems: 1000minItems: 1

    View nested fields
    • []string · uuidArray item
  • externalActorRefanyOf (string | null)Optional

    At least one of these variants must match.

    View nested fields
    • anyOf 1stringSchema branch

      Optional nonblank external audit reference. At most 200 JavaScript UTF-16 units; original spacing is retained. This never grants identity or authority.

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

    • anyOf 2nullSchema branch
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "providerId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "template": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "pattern": "^[a-z0-9_]{1,512}$"
        },
        "language": {
          "type": "string",
          "pattern": "^[a-z]{2,3}(_[A-Za-z0-9]{2,4})?$"
        }
      },
      "required": [
        "name",
        "language"
      ]
    },
    "parameters": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 200,
        "minLength": 1,
        "description": "Trimmed, nonempty. No tab/newline or five consecutive spaces. Lengths use JavaScript UTF-16 units; rendered body is at most 1,024 units."
      },
      "maxItems": 1000
    },
    "matchLanguage": {
      "type": "boolean"
    },
    "audience": {
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "contacts"
            }
          },
          "required": [
            "kind"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "appointments"
            },
            "from": {
              "type": "string",
              "format": "date-time"
            },
            "to": {
              "type": "string",
              "format": "date-time"
            },
            "statuses": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "PENDING",
                  "CONFIRMED",
                  "NOW"
                ]
              },
              "maxItems": 3,
              "minItems": 1,
              "description": "Defaults to PENDING, CONFIRMED and NOW. Instants must satisfy from < to."
            }
          },
          "required": [
            "kind",
            "from",
            "to"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "segment"
            },
            "filters": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "away": {
                  "type": "string",
                  "enum": [
                    "3w",
                    "1m",
                    "2m",
                    "3m"
                  ]
                },
                "visits": {
                  "type": "string",
                  "enum": [
                    "none",
                    "one",
                    "recentRegular",
                    "regular"
                  ]
                },
                "backToBack": {
                  "type": "string",
                  "enum": [
                    "once",
                    "repeated"
                  ]
                },
                "lateRegular": {
                  "const": true
                },
                "noUpcoming": {
                  "const": true
                },
                "recentMissed": {
                  "const": true
                },
                "newCustomers": {
                  "const": true
                },
                "language": {
                  "type": "string",
                  "enum": [
                    "he",
                    "ar",
                    "en"
                  ]
                },
                "notSentBefore": {
                  "const": true
                },
                "lastVisit": {
                  "type": "string",
                  "enum": [
                    "within30",
                    "notSince60",
                    "notSince90"
                  ]
                },
                "overdue": {
                  "const": true
                },
                "missed": {
                  "const": true
                },
                "providerId": {
                  "type": "string",
                  "format": "uuid"
                },
                "visitedFrom": {
                  "type": "string",
                  "format": "date"
                },
                "visitedTo": {
                  "type": "string",
                  "format": "date"
                }
              },
              "required": [],
              "dependentRequired": {
                "visitedFrom": [
                  "visitedTo"
                ],
                "visitedTo": [
                  "visitedFrom"
                ]
              }
            },
            "providerName": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 160,
                  "pattern": "^\\s*[\\s\\S]{0,80}\\s*$",
                  "description": "At most 160 JavaScript UTF-16 units in the submitted value and 80 Unicode codepoints after trimming. Blank becomes null."
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "kind",
            "filters"
          ]
        }
      ]
    },
    "recipientProfileIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 1000,
      "minItems": 1,
      "description": "Explicit selected contact profile IDs, in reviewed order. Repeated IDs are removed preserving first occurrence; one recipient per normalized number. At most 300 eligible recipients."
    },
    "externalActorRef": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200,
          "minLength": 1,
          "pattern": "^(?=[\\s\\S]*\\S)[^\\u0000-\\u001f\\u007f]+$",
          "description": "Optional nonblank external audit reference. At most 200 JavaScript UTF-16 units; original spacing is retained. This never grants identity or authority."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "template",
    "parameters",
    "matchLanguage",
    "audience",
    "recipientProfileIds"
  ]
}

Successful responses

200 · BusinessCampaignPreview

Current authorized result.

Cache-Control
Cache-Control schema
{
  "const": "no-store"
}
ETag · Strong current version. Keep the original If-Match with an uncertain command; only a new deliberate command uses a fresh current version.
ETag schema
{
  "type": "string",
  "pattern": "^\"cp[a-f0-9]{64}\"$"
}

application/json · BusinessCampaignPreview

Read-only evaluation of this exact draft. version binds material recipient, template and connection facts; observedAt and capacity do not expire/reserve it. Confirmation re-evaluates current facts and requires a new preview if they changed. It never adds an unselected recipient. bindingHash is opaque, not provider credentials.

  • versionstringRequired

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

  • observedAtstring · date-timeRequired
  • recipientCountintegerRequired

    minimum: 0maximum: 300

  • recipientsarrayRequired

    maxItems: 300

    View nested fields
    • []objectArray item
      View nested fields
      • profileIdstring · uuidRequired
      • fullNameanyOf (string | null)Required

        At least one of these variants must match.

        View nested fields
        • anyOf 1stringSchema branch

          maxLength: 1024

        • anyOf 2nullSchema branch
      • phoneNumberstringRequired

        maxLength: 64

      • languagestringRequired

        maxLength: 16

      • additionalPropertiesno value allowedSchema rule
  • skippedarrayRequired

    maxItems: 1000

    View nested fields
    • []objectArray item
      View nested fields
      • profileIdstring · uuidRequired
      • reasonstringRequired

        Allowed values: ["blocked","not_found","not_yours","opted_out","duplicate","invalid_phone"]

      • additionalPropertiesno value allowedSchema rule
  • templateSnapshotarrayRequired

    maxItems: 4minItems: 1

    View nested fields
    • []objectArray item
      View nested fields
      • namestringRequired

        pattern: "^[a-z0-9_]{1,512}$"

      • languagestringRequired

        pattern: "^[a-z]{2,3}(_[A-Za-z0-9]{2,4})?$"

      • statusstringRequired

        Value: "APPROVED"

      • categorystringRequired

        maxLength: 50

      • componentsarrayRequired

        maxItems: 10

        View nested fields
        • []objectArray item
          View nested fields
          • typestringRequired

            maxLength: 50

          • formatstringOptional

            maxLength: 50

          • textstringOptional

            maxLength: 16384

          • buttonsarrayOptional

            maxItems: 10

            View nested fields
            • []objectArray item
              View nested fields
              • typestringRequired

                maxLength: 50

              • textstringOptional

                maxLength: 1024

              • urlstringOptional

                maxLength: 4096

              • phone_numberstringOptional

                maxLength: 64

              • additionalPropertiesno value allowedSchema rule
          • additionalPropertiesno value allowedSchema rule
      • bodystringRequired

        maxLength: 16384

      • placeholdersintegerRequired

        minimum: 0maximum: 1000

      • fingerprintstringRequired

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

      • bodyFingerprintstringRequired

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

      • additionalPropertiesno value allowedSchema rule
  • bindingHashstringRequired

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

  • capacityobjectRequired

    Shared whole-business rolling 24-hour capacity, also visible to scoped campaign readers. This is current informational capacity, not a recipient reservation or separate provider allowance.

    View nested fields
    • limitnumberRequired

      Value: 300

    • remainingintegerRequired

      minimum: 0maximum: 300

    • resetsAtanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1string · date-timeSchema branch
      • anyOf 2nullSchema branch
    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "version": {
      "type": "string",
      "pattern": "^cp[a-f0-9]{64}$"
    },
    "observedAt": {
      "type": "string",
      "format": "date-time"
    },
    "recipientCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "recipients": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "profileId": {
            "type": "string",
            "format": "uuid"
          },
          "fullName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "type": "string",
            "maxLength": 64
          },
          "language": {
            "type": "string",
            "maxLength": 16
          }
        },
        "required": [
          "profileId",
          "fullName",
          "phoneNumber",
          "language"
        ]
      },
      "maxItems": 300
    },
    "skipped": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "profileId": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "enum": [
              "blocked",
              "not_found",
              "not_yours",
              "opted_out",
              "duplicate",
              "invalid_phone"
            ]
          }
        },
        "required": [
          "profileId",
          "reason"
        ]
      },
      "maxItems": 1000
    },
    "templateSnapshot": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[a-z0-9_]{1,512}$"
          },
          "language": {
            "type": "string",
            "pattern": "^[a-z]{2,3}(_[A-Za-z0-9]{2,4})?$"
          },
          "status": {
            "const": "APPROVED"
          },
          "category": {
            "type": "string",
            "maxLength": 50
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string",
                  "maxLength": 50
                },
                "format": {
                  "type": "string",
                  "maxLength": 50
                },
                "text": {
                  "type": "string",
                  "maxLength": 16384
                },
                "buttons": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "type": {
                        "type": "string",
                        "maxLength": 50
                      },
                      "text": {
                        "type": "string",
                        "maxLength": 1024
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "phone_number": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "maxItems": 10
                }
              },
              "required": [
                "type"
              ]
            },
            "maxItems": 10
          },
          "body": {
            "type": "string",
            "maxLength": 16384
          },
          "placeholders": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "bodyFingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "name",
          "language",
          "status",
          "category",
          "components",
          "body",
          "placeholders",
          "fingerprint",
          "bodyFingerprint"
        ]
      },
      "maxItems": 4,
      "minItems": 1
    },
    "bindingHash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "capacity": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "limit": {
          "const": 300
        },
        "remaining": {
          "type": "integer",
          "minimum": 0,
          "maximum": 300
        },
        "resetsAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "limit",
        "remaining",
        "resetsAt"
      ],
      "description": "Shared whole-business rolling 24-hour capacity, also visible to scoped campaign readers. This is current informational capacity, not a recipient reservation or separate provider allowance."
    }
  },
  "required": [
    "version",
    "observedAt",
    "recipientCount",
    "recipients",
    "skipped",
    "templateSnapshot",
    "bindingHash",
    "capacity"
  ],
  "description": "Read-only evaluation of this exact draft. version binds material recipient, template and connection facts; observedAt and capacity do not expire/reserve it. Confirmation re-evaluates current facts and requires a new preview if they changed. It never adds an unselected recipient. bindingHash is opaque, not provider credentials."
}

Errors and recovery

Input validation

  • 413REQUEST_TOO_LARGE

    The JSON request body exceeds 65,536 bytes.

  • 415JSON_REQUIRED

    Send Content-Type: application/json.

Error responses declared in the contract (9)

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

401 · Missing, invalid or expired Management 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 · Current integration/key/scope/resource authority denied, including a browser Origin. Old keys gain no campaign authority.

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 or reviewed template changed; refresh and review before a new 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"
  ]
}
413 · JSON body exceeds 65,536 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 · application/json is required.

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 request, UUID, query, cursor or precondition format.

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 · Request 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 · Current template catalogue or persistence is unavailable. No send is implied. Recover any uncertain prior command separately.

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