/v1/management/template-requestsأبلغوا عميلًا واحدًا بأن مستنده جاهز
اطلبوا القالب مرة واحدة باستخدام Idempotency-Key محفوظ. تابعوا receipt.request.requestId عبر /template-requests/{requestId}؛ واستعيدوا الرد المفقود عبر /template-request-operations/{savedUuid}. تعني حالة done أن الفريق عالج الطلب، وليس أن Meta وافقت على القالب.
اختاروا الاسم واللغة الفعليين من /campaign-templates فقط عندما تكون الحالة APPROVED وقيمة supported هي true. أرسلوا رابط الدخول إلى بوابة تتطلب تسجيل الدخول كمعامل؛ لا تضعوا تفاصيل طبية أو محتوى المستند أو رموز الوصول وتسجيل الدخول في الرسالة أو الرابط. احصلوا على إذن مستقل لإشعارات المستندات: الموافقة على تحديثات الموعد ليست إذنًا عامًا للمستندات. احترموا طلبات إيقاف الرسائل.
صلاحيات هذه الخطوة
template-requests:read
Behavior
List current requests for this business, newest first. status defaults to open; choose done or all explicitly. Follow nextCursor until null. A row can change status between pages, so this is not a snapshot or change feed. A cursor from a removed or other-business row is refused with INVALID_CURSOR.
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
template-requests:read
Request
statusquery · stringOptionalFormat and constraints
{ "type": "string", "enum": [ "open", "done", "all" ], "default": "open" }limitquery · integerOptionalFormat and constraints
{ "type": "integer", "minimum": 1, "maximum": 100, "default": 50 }cursorquery · stringOptionalThe previous page’s nextCursor; omit on the first page.
Format and constraints
{ "type": "string", "format": "uuid" }
Successful responses
200 · BusinessTemplateRequestList
Current authorized page.
Cache-Control
{
"const": "no-store"
} application/json · BusinessTemplateRequestList
-
itemsarrayRequiredmaxItems:100View nested fields
-
[]object; allOf (unspecified)Array itemAll of these schema rules apply together.
View nested fields
-
requestIdstring · uuidRequired -
purposestringRequiredminLength:1maxLength:300 -
exampleTextstring | nullRequiredmaxLength:1024 -
languagesarrayRequiredHistorical requests may contain no languages or repeated languages; those values are preserved.
maxItems:3View nested fields
-
[]stringArray itemAllowed values:
["he","ar","en"]
-
-
statusstringRequiredCRAD request handling only. done does not attest Meta approval or permission to send.
Allowed values:
["open","done"] -
createdAtstring · date-timeRequired -
completedAtanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1string · date-timeSchema branch -
anyOf 2nullSchema branch
-
-
sourcestringRequiredNative CRAD account or delegated integration. Actor and credential identities are not disclosed.
Allowed values:
["native","integration"] -
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
statusstringCondition predicateValue:
"open"
-
-
thenobjectSchema ruleView branch fields and rules
-
completedAtnullOptional in this branch
-
-
elseobjectSchema ruleView branch fields and rules
-
completedAtstring · date-timeOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
nextCursoranyOf (string | null)RequiredLast returned request ID when another page exists. Reuse the same status and page size; this is a directory cursor, not a synchronization checkpoint.
At least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"required": [
"items",
"nextCursor"
],
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"requestId",
"purpose",
"exampleText",
"languages",
"status",
"createdAt",
"completedAt",
"source"
],
"properties": {
"requestId": {
"type": "string",
"format": "uuid"
},
"purpose": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"exampleText": {
"type": [
"string",
"null"
],
"maxLength": 1024
},
"languages": {
"type": "array",
"maxItems": 3,
"items": {
"type": "string",
"enum": [
"he",
"ar",
"en"
]
},
"description": "Historical requests may contain no languages or repeated languages; those values are preserved."
},
"status": {
"type": "string",
"enum": [
"open",
"done"
],
"description": "CRAD request handling only. done does not attest Meta approval or permission to send."
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"completedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"source": {
"type": "string",
"enum": [
"native",
"integration"
],
"description": "Native CRAD account or delegated integration. Actor and credential identities are not disclosed."
}
},
"allOf": [
{
"if": {
"properties": {
"status": {
"const": "open"
}
}
},
"then": {
"properties": {
"completedAt": {
"type": "null"
}
}
},
"else": {
"properties": {
"completedAt": {
"type": "string",
"format": "date-time"
}
}
}
}
]
}
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"description": "Last returned request ID when another page exists. Reuse the same status and page size; this is a directory cursor, not a synchronization checkpoint."
}
}
} Errors and recovery
Error responses declared in the contract (6)
The pinned contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Invalid or missing Management credential.
Cache-Control
{
"const": "no-store"
} 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 key/integration/scope authority denied, platform suspension, or browser Origin refused.
Cache-Control
{
"const": "no-store"
} 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.
Cache-Control
{
"const": "no-store"
} 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 input, query or UUID. INVALID_CURSOR means the cursor request is absent from this business; restart listing.
Cache-Control
{
"const": "no-store"
} 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 quota reached; honor Retry-After.
Cache-Control
{
"const": "no-store"
} Retry-After · When supplied, seconds to wait before checking again; not permission to create another command.
{
"type": "integer",
"minimum": 1
} 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 · Temporary read or persistence failure. Retry this read after any supplied Retry-After; this operation does not submit a request.
Cache-Control
{
"const": "no-store"
} Retry-After · When supplied, seconds to wait before retrying this read.
{
"type": "integer",
"minimum": 1
} 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"
]
}