/v1/management/conversations/{conversationId}/templatesBehavior
Lists currently supported approved templates with positional text parameters, including Authentication COPY_CODE and Utility/Marketing templates with one to three QUICK_REPLY buttons. quickReplyButtons preserves provider index order, type and text; check the actual labels before assigning actions. Labels are distinct, nonblank and at most 25 Unicode code points without controls/placeholders. Image headers expose headerFormat:IMAGE. Other businesses’ managed templates are filtered even on a shared WABA; permitted legacy shared templates remain available. Marketing opt-out removes marketing templates. Unsupported formats are omitted; complete:false means provider enumeration was incomplete. Browsing sends nothing and does not take control. No otpType or codeExpirationMinutes field is exposed.
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
conversations:readconversations:send
Explicit whole-business conversation access. Provider selections do not narrow it; customer, calendar or sending scopes do not grant it. Keep the Management key on your backend. Inbox enablement remains separate.
Request
conversationIdpath · stringRequiredFormat and constraints
{ "type": "string", "format": "uuid" }
Successful responses
200 · BusinessConversationTemplates
Current authorized result.
Cache-Control
{
"const": "no-store"
} application/json · BusinessConversationTemplates
Supported approved positional templates, including IMAGE headers and Utility/Marketing 1..3 quick replies. Unsupported layouts are omitted and counted; complete=false means enumeration is incomplete. Approval/category, current connection, recipient consent and actual send authorization remain required. Authentication COPY_CODE still accepts one 1..15 ASCII alphanumeric code supplied and verified/expired by the integrating application.
-
templatesarrayRequiredView nested fields
-
[]objectArray itemView nested fields
-
namestringRequiredminLength:1maxLength:512 -
languagestringRequiredminLength:1maxLength:16 -
categorystringRequiredAllowed values:
["UTILITY","MARKETING","AUTHENTICATION"] -
bodystringRequiredminLength:1maxLength:16384 -
headerstringOptionalminLength:1maxLength:16384 -
footerstringOptionalminLength:1maxLength:16384 -
parameterCountintegerRequiredminimum:0maximum:30 -
quickReplyButtonsarrayOptionalPresent for supported UTILITY or MARKETING templates with 1..3 QUICK_REPLY buttons. Ordered indexes starting at zero; use the exact count/order and check labels. Snapshot drift is refused near dispatch.
minItems:1maxItems:3View nested fields
-
[]objectArray itemView nested fields
-
typestringRequiredValue:
"QUICK_REPLY" -
indexintegerRequiredAllowed values:
[0,1,2] -
textstringRequiredminLength:1maxLength:25 -
additionalPropertiesno value allowedSchema rule
-
-
-
headerFormatstringOptionalAn image header is required. Mutually exclusive with text header; send with headerImageUploadId from a valid same-conversation JPEG/PNG media upload. Use purpose=template_header only when that asset upload needs the outside-window exception.
Value:
"IMAGE" -
additionalPropertiesno value allowedSchema rule
-
-
-
unavailableCountintegerRequiredminimum:0 -
completebooleanRequired -
marketingOptedOutbooleanRequired -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"templates": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"language": {
"type": "string",
"minLength": 1,
"maxLength": 16
},
"category": {
"enum": [
"UTILITY",
"MARKETING",
"AUTHENTICATION"
]
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 16384
},
"header": {
"type": "string",
"minLength": 1,
"maxLength": 16384
},
"footer": {
"type": "string",
"minLength": 1,
"maxLength": 16384
},
"parameterCount": {
"type": "integer",
"minimum": 0,
"maximum": 30
},
"quickReplyButtons": {
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"const": "QUICK_REPLY"
},
"index": {
"type": "integer",
"enum": [
0,
1,
2
]
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 25
}
},
"required": [
"type",
"index",
"text"
]
},
"description": "Present for supported UTILITY or MARKETING templates with 1..3 QUICK_REPLY buttons. Ordered indexes starting at zero; use the exact count/order and check labels. Snapshot drift is refused near dispatch."
},
"headerFormat": {
"const": "IMAGE",
"description": "An image header is required. Mutually exclusive with text header; send with headerImageUploadId from a valid same-conversation JPEG/PNG media upload. Use purpose=template_header only when that asset upload needs the outside-window exception."
}
},
"required": [
"name",
"language",
"category",
"body",
"parameterCount"
]
}
},
"unavailableCount": {
"type": "integer",
"minimum": 0
},
"complete": {
"type": "boolean"
},
"marketingOptedOut": {
"type": "boolean"
}
},
"required": [
"templates",
"unavailableCount",
"complete",
"marketingOptedOut"
],
"description": "Supported approved positional templates, including IMAGE headers and Utility/Marketing 1..3 quick replies. Unsupported layouts are omitted and counted; complete=false means enumeration is incomplete. Approval/category, current connection, recipient consent and actual send authorization remain required. Authentication COPY_CODE still accepts one 1..15 ASCII alphanumeric code supplied and verified/expired by the integrating application."
} Errors and recovery
Error responses declared in the contract (9)
The preview contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.
401 · Missing or invalid 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 authority or scope denied, browser Origin refused, or inbox not enabled.
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"
]
} 404 · Conversation, retained message or usable media not found. Expired or foreign upload handles cannot be sent.
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 HTTP 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"
]
} 409 · Connection, consent, control ownership or service window prevents this command; OPERATION_CONFLICT means the same UUID was used with different input. Unknown prior sends require review, never automatic redispatch.
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 or ambiguous input, unsupported query parameter, UUID or body field.
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 or send quota exceeded. Honor Retry-After when present.
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"
]
} 502 · Provider templates or media are temporarily unavailable.
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"
]
} 503 · Outcome may be uncertain. Keep the original request identity and use the read-only recovery endpoint; do not create a fresh send.
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"
]
}