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

Read a campaign

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

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

GET/v1/management/campaigns/{campaignId}

Behavior

Reads current counters and control state without changing it. sent counts provider acceptance, not delivered or read receipts. legacy_body describes historical body-only confirmation; it is not upgraded to full template approval. Preserve the returned ETag for a new control decision.

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

  • campaignIdpath · stringRequired
    Format and constraints
    campaignId schema
    {
      "type": "string",
      "format": "uuid"
    }

Successful responses

200 · BusinessCampaignState

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": "^\"cc(0|[1-9][0-9]*)\"$"
}

application/json · BusinessCampaignState

Current authorized campaign. version is the control revision, not a revision for every delivery update. Historical legacy_body campaigns retain body-only confirmation and continuation behavior; a snapshot is never fabricated for them. New campaigns use full_template. sent means provider acceptance, not proven delivery/read.

All of these schema rules apply together.

  • campaignIdstring · uuidRequired
  • providerIdanyOf (string | null)Required

    At least one of these variants must match.

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

    Allowed values: ["native","integration"]

  • versionintegerRequired

    minimum: 0maximum: 9007199254740991

  • confirmationstringRequired

    Allowed values: ["legacy_body","full_template"]

  • templateobjectRequired
    View nested fields
    • namestringRequired

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

    • languagestringRequired

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

    • bodyanyOf (string | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1stringSchema branch

        maxLength: 16384

      • anyOf 2nullSchema branch
    • parametersarrayRequired

      maxItems: 1000

      View nested fields
      • []stringArray item

        maxLength: 200

    • matchLanguagebooleanRequired
    • snapshotanyOf (array | null)Required

      At least one of these variants must match.

      View nested fields
      • anyOf 1arraySchema branch

        maxItems: 4minItems: 1

        View branch fields and rules
        • []objectArray item
          View nested fields
          • namestringRequired in this branch

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

          • languagestringRequired in this branch

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

          • statusstringRequired in this branch

            Value: "APPROVED"

          • categorystringRequired in this branch

            maxLength: 50

          • componentsarrayRequired in this branch

            maxItems: 10

            View nested fields
            • []objectArray item
              View nested fields
              • typestringRequired in this branch

                maxLength: 50

              • formatstringOptional in this branch

                maxLength: 50

              • textstringOptional in this branch

                maxLength: 16384

              • buttonsarrayOptional in this branch

                maxItems: 10

                View nested fields
                • []objectArray item
                  View nested fields
                  • typestringRequired in this branch

                    maxLength: 50

                  • textstringOptional in this branch

                    maxLength: 1024

                  • urlstringOptional in this branch

                    maxLength: 4096

                  • phone_numberstringOptional in this branch

                    maxLength: 64

                  • additionalPropertiesno value allowedSchema rule
              • additionalPropertiesno value allowedSchema rule
          • bodystringRequired in this branch

            maxLength: 16384

          • placeholdersintegerRequired in this branch

            minimum: 0maximum: 1000

          • fingerprintstringRequired in this branch

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

          • bodyFingerprintstringRequired in this branch

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

          • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • additionalPropertiesno value allowedSchema rule
  • 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
  • recipientCountintegerRequired

    minimum: 0maximum: 300

  • sentCountintegerRequired

    minimum: 0maximum: 300

  • failedCountintegerRequired

    minimum: 0maximum: 300

  • unknownCountintegerRequired

    minimum: 0maximum: 300

  • pendingCountintegerRequired

    minimum: 0maximum: 300

  • sendingCountintegerRequired

    minimum: 0maximum: 300

  • statestringRequired

    Allowed values: ["sending","done"]

  • createdAtstring · date-timeRequired
  • finishedAtanyOf (string | null)Required

    At least one of these variants must match.

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

    At least one of these variants must match.

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

    At least one of these variants must match.

    View nested fields
    • anyOf 1string · date-timeSchema branch
    • anyOf 2nullSchema branch
  • stopCodeanyOf (integer | null)Required

    At least one of these variants must match.

    View nested fields
    • anyOf 1integerSchema branch

      minimum: -9007199254740991maximum: 9007199254740991

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

        Value: "legacy_body"

    • thenobjectSchema rule
      View branch fields and rules
      • templateobjectOptional in this branch
        View nested fields
        • snapshotnullOptional in this branch
    • elseobjectSchema rule
      View branch fields and rules
      • templateobjectOptional in this branch
        View nested fields
        • snapshotarrayOptional in this branch

          minItems: 1maxItems: 4

          View nested fields
          • []objectArray item
            View nested fields
            • namestringRequired in this branch

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

            • languagestringRequired in this branch

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

            • statusstringRequired in this branch

              Value: "APPROVED"

            • categorystringRequired in this branch

              maxLength: 50

            • componentsarrayRequired in this branch

              maxItems: 10

              View nested fields
              • []objectArray item
                View nested fields
                • typestringRequired in this branch

                  maxLength: 50

                • formatstringOptional in this branch

                  maxLength: 50

                • textstringOptional in this branch

                  maxLength: 16384

                • buttonsarrayOptional in this branch

                  maxItems: 10

                  View nested fields
                  • []objectArray item
                    View nested fields
                    • typestringRequired in this branch

                      maxLength: 50

                    • textstringOptional in this branch

                      maxLength: 1024

                    • urlstringOptional in this branch

                      maxLength: 4096

                    • phone_numberstringOptional in this branch

                      maxLength: 64

                    • additionalPropertiesno value allowedSchema rule
                • additionalPropertiesno value allowedSchema rule
            • bodystringRequired in this branch

              maxLength: 16384

            • placeholdersintegerRequired in this branch

              minimum: 0maximum: 1000

            • fingerprintstringRequired in this branch

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

            • bodyFingerprintstringRequired in this branch

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

            • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "campaignId": {
      "type": "string",
      "format": "uuid"
    },
    "providerId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "type": "string",
      "enum": [
        "native",
        "integration"
      ]
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "confirmation": {
      "type": "string",
      "enum": [
        "legacy_body",
        "full_template"
      ]
    },
    "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})?$"
        },
        "body": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 16384
            },
            {
              "type": "null"
            }
          ]
        },
        "parameters": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 1000
        },
        "matchLanguage": {
          "type": "boolean"
        },
        "snapshot": {
          "anyOf": [
            {
              "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
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "name",
        "language",
        "body",
        "parameters",
        "matchLanguage",
        "snapshot"
      ]
    },
    "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"
          ]
        }
      ]
    },
    "recipientCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "sentCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "failedCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "unknownCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "pendingCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "sendingCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300
    },
    "state": {
      "type": "string",
      "enum": [
        "sending",
        "done"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "finishedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "stoppedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "pausedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "stopCode": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "campaignId",
    "providerId",
    "source",
    "version",
    "confirmation",
    "template",
    "audience",
    "recipientCount",
    "sentCount",
    "failedCount",
    "unknownCount",
    "pendingCount",
    "sendingCount",
    "state",
    "createdAt",
    "finishedAt",
    "stoppedAt",
    "pausedAt",
    "stopCode"
  ],
  "description": "Current authorized campaign. version is the control revision, not a revision for every delivery update. Historical legacy_body campaigns retain body-only confirmation and continuation behavior; a snapshot is never fabricated for them. New campaigns use full_template. sent means provider acceptance, not proven delivery/read.",
  "allOf": [
    {
      "if": {
        "properties": {
          "confirmation": {
            "const": "legacy_body"
          }
        }
      },
      "then": {
        "properties": {
          "template": {
            "properties": {
              "snapshot": {
                "type": "null"
              }
            }
          }
        }
      },
      "else": {
        "properties": {
          "template": {
            "properties": {
              "snapshot": {
                "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"
                  ]
                },
                "minItems": 1,
                "maxItems": 4
              }
            }
          }
        }
      }
    }
  ]
}

Errors and recovery

Error responses declared in the contract (7)

The preview 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"
  ]
}
404 · Campaign or resource is not available under the current grant. A missing operation lookup returns 200 with status:not_found.

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"
  ]
}
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 · Temporary failure. Reads may be retried; for an uncertain command, retain its UUID and exact request and read campaign-operations first.

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