/v1/management/campaign-previewsבדקו נמען יחיד ושמרו כוונת שליחה אחת
למסמך, ודאו תחילה שהוא מוכן עבור הלקוח המיועד. תור שנוצר בידי הצוות חייב כבר להיות CONFIRMED ועדיין להתאים לתור שנבדק. אישור בקשת לקוח במצב PENDING משתמש באישור האוטומטי של CRAD במקום בשליחה הנפרדת הזאת.
הציגו תצוגה מקדימה לפרופיל CRAD אמיתי יחיד, דרשו בדיוק את הנמען הזה וללא נמענים שדולגו, והציגו את נוסח ההודעה לפני אישור מפורש של הצוות. לפני POST /campaigns שמרו את ה־draft המדויק, ETag מסוג cp עם מירכאות ו־UUID אחד באירוע outbox ייחודי לכוונת השליחה. אישור ראשוני לתור צוות ייחודי לפי מרפאה, מטרה ותור; לשליחת מסמך מוסיפים גם sendIntentId מפורש.
פעולת ״שליחה חוזרת״ מכוונת של מסמך, אחרי שתוצאת השליחה הקודמת ידועה, יוצרת sendIntentId ו־UUID חדשים לאחר בדיקת גרסת הדוח השמורה והנמען. sendIntentId שייך ל־outbox של האתר, ולא לגוף בקשת CRAD. לחיצות מקבילות וניסיונות חוזרים של אותה פעולה שומרים את הכוונה וה־UUID המקוריים. מצב queued, פסק זמן, not_found או unknown אינם סיבה ליצור כוונה חדשה.
אחרי timeout השתמשו ב־/campaign-operations/{savedUuid}. תוצאת not_found אינה מבטלת בקשה שעדיין מתבצעת: שחזרו, או חזרו במפורש על אותו UUID/body/ETag; אל תייצרו UUID שליחה חדש ואל תשלחו שוב אוטומטית כשמצב השליחה unknown. עקבו אחר /campaigns/{campaignId}/recipients; מצב sent מציין קבלת ספק, ולא מסירה. הודעה שנכשלה או דוכאה אינה מבטלת תור או מסמך שנשמרו.
הרשאות לשלב הזה
campaigns:read
המשך לתהליך ההודעות של הקליניקה
דוגמת בקשה להרכבה בשרת שלכם; זו אינה תעבורת HTTP שנמדדה. post() משתמש בכתובת הבסיס של Management ומחזיר {data, etag}. המפתח נשאר בשרת.
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)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
templateobjectRequiredView nested fields
-
namestringRequiredpattern:"^[a-z0-9_]{1,512}$" -
languagestringRequiredpattern:"^[a-z]{2,3}(_[A-Za-z0-9]{2,4})?$" -
additionalPropertiesno value allowedSchema rule
-
-
parametersarrayRequiredmaxItems:1000View nested fields
-
[]stringArray itemTrimmed, 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)RequiredExactly one of these variants must match.
View nested fields
-
oneOf 1 · kind = "contacts"objectSchema branchView branch fields and rules
-
kindstringRequired in this branchValue:
"contacts" -
additionalPropertiesno value allowedSchema rule
-
-
oneOf 2 · kind = "appointments"objectSchema branchView branch fields and rules
-
kindstringRequired in this branchValue:
"appointments" -
fromstring · date-timeRequired in this branch -
tostring · date-timeRequired in this branch -
statusesarrayOptional in this branchDefaults to PENDING, CONFIRMED and NOW. Instants must satisfy from < to.
maxItems:3minItems:1View nested fields
-
[]stringArray itemAllowed values:
["PENDING","CONFIRMED","NOW"]
-
-
additionalPropertiesno value allowedSchema rule
-
-
oneOf 3 · kind = "segment"objectSchema branchView branch fields and rules
-
kindstringRequired in this branchValue:
"segment" -
filtersobjectRequired in this branchdependentRequired:{"visitedFrom":["visitedTo"],"visitedTo":["visitedFrom"]}View nested fields
-
awaystringOptional in this branchAllowed values:
["3w","1m","2m","3m"] -
visitsstringOptional in this branchAllowed values:
["none","one","recentRegular","regular"] -
backToBackstringOptional in this branchAllowed values:
["once","repeated"] -
lateRegularbooleanOptional in this branchValue:
true -
noUpcomingbooleanOptional in this branchValue:
true -
recentMissedbooleanOptional in this branchValue:
true -
newCustomersbooleanOptional in this branchValue:
true -
languagestringOptional in this branchAllowed values:
["he","ar","en"] -
notSentBeforebooleanOptional in this branchValue:
true -
lastVisitstringOptional in this branchAllowed values:
["within30","notSince60","notSince90"] -
overduebooleanOptional in this branchValue:
true -
missedbooleanOptional in this branchValue:
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 branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchAt 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
-
-
-
recipientProfileIdsarrayRequiredExplicit 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:1View nested fields
-
[]string · uuidArray item
-
-
externalActorRefanyOf (string | null)OptionalAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchOptional 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
{
"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
{
"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.
{
"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.
-
versionstringRequiredpattern:"^cp[a-f0-9]{64}$" -
observedAtstring · date-timeRequired -
recipientCountintegerRequiredminimum:0maximum:300 -
recipientsarrayRequiredmaxItems:300View nested fields
-
[]objectArray itemView nested fields
-
profileIdstring · uuidRequired -
fullNameanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:1024 -
anyOf 2nullSchema branch
-
-
phoneNumberstringRequiredmaxLength:64 -
languagestringRequiredmaxLength:16 -
additionalPropertiesno value allowedSchema rule
-
-
-
skippedarrayRequiredmaxItems:1000View nested fields
-
[]objectArray itemView nested fields
-
profileIdstring · uuidRequired -
reasonstringRequiredAllowed values:
["blocked","not_found","not_yours","opted_out","duplicate","invalid_phone"] -
additionalPropertiesno value allowedSchema rule
-
-
-
templateSnapshotarrayRequiredmaxItems:4minItems:1View nested fields
-
[]objectArray itemView nested fields
-
namestringRequiredpattern:"^[a-z0-9_]{1,512}$" -
languagestringRequiredpattern:"^[a-z]{2,3}(_[A-Za-z0-9]{2,4})?$" -
statusstringRequiredValue:
"APPROVED" -
categorystringRequiredmaxLength:50 -
componentsarrayRequiredmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
typestringRequiredmaxLength:50 -
formatstringOptionalmaxLength:50 -
textstringOptionalmaxLength:16384 -
buttonsarrayOptionalmaxItems:10View nested fields
-
[]objectArray itemView nested fields
-
typestringRequiredmaxLength:50 -
textstringOptionalmaxLength:1024 -
urlstringOptionalmaxLength:4096 -
phone_numberstringOptionalmaxLength:64 -
additionalPropertiesno value allowedSchema rule
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
bodystringRequiredmaxLength:16384 -
placeholdersintegerRequiredminimum:0maximum:1000 -
fingerprintstringRequiredpattern:"^[a-f0-9]{64}$" -
bodyFingerprintstringRequiredpattern:"^[a-f0-9]{64}$" -
additionalPropertiesno value allowedSchema rule
-
-
-
bindingHashstringRequiredpattern:"^[a-f0-9]{64}$" -
capacityobjectRequiredShared 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
-
limitnumberRequiredValue:
300 -
remainingintegerRequiredminimum:0maximum:300 -
resetsAtanyOf (string | null)RequiredAt 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
{
"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_LARGEThe JSON request body exceeds 65,536 bytes.
415JSON_REQUIREDSend 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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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
-
errorobjectRequiredView nested fields
-
codestringRequired -
requestIdstring · uuidRequired -
retryAfterintegerOptionalminimum:1 -
additionalPropertiesno value allowedSchema rule
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"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"
]
}