/v1/management/messaging-webhook/deliveriesBehavior
Inspect metadata for this integration, oldest first. Defaults: state=failed, limit=50; limit is 1–100. States are pending, leased, delivered, failed and expired. more:true means additional matching rows exist; there is no cursor. This is neither a complete history export nor message content. Expired payloads cannot be resent.
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:read
Request
statequery · stringOptionalFormat and constraints
{ "type": "string", "enum": [ "pending", "leased", "delivered", "failed", "expired" ], "default": "failed" }limitquery · integerOptionalFormat and constraints
{ "type": "integer", "minimum": 1, "maximum": 100, "default": 50 }
Successful responses
200 · MessagingWebhookDeliveryList
Current authorized result.
Cache-Control
{
"const": "no-store"
} application/json · MessagingWebhookDeliveryList
Oldest matching events first. more indicates additional matching records beyond this bounded result; this endpoint has no cursor. No message content or signing secret is included.
-
deliveriesarrayRequiredmaxItems:100View nested fields
-
[]objectArray itemView nested fields
-
eventIdstring · uuidRequired -
typestringRequiredAllowed values:
["message.received","message.status"] -
statestringRequiredAllowed values:
["pending","leased","delivered","failed","expired"] -
attemptsintegerRequiredminimum:0 -
occurredAtstring · date-timeRequired -
lastStatusinteger | nullRequiredminimum:100maximum:599 -
lastErrorstring | nullRequiredmaxLength:80 -
nextAttemptAtstring | null · date-timeRequired -
additionalPropertiesno value allowedSchema rule
-
-
-
morebooleanRequired -
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"deliveries": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"eventId": {
"type": "string",
"format": "uuid"
},
"type": {
"enum": [
"message.received",
"message.status"
]
},
"state": {
"enum": [
"pending",
"leased",
"delivered",
"failed",
"expired"
]
},
"attempts": {
"type": "integer",
"minimum": 0
},
"occurredAt": {
"type": "string",
"format": "date-time"
},
"lastStatus": {
"type": [
"integer",
"null"
],
"minimum": 100,
"maximum": 599
},
"lastError": {
"type": [
"string",
"null"
],
"maxLength": 80
},
"nextAttemptAt": {
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"required": [
"eventId",
"type",
"state",
"attempts",
"occurredAt",
"lastStatus",
"lastError",
"nextAttemptAt"
]
},
"maxItems": 100
},
"more": {
"type": "boolean"
}
},
"required": [
"deliveries",
"more"
],
"description": "Oldest matching events first. more indicates additional matching records beyond this bounded result; this endpoint has no cursor. No message content or signing secret is included."
} 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 · UNAUTHENTICATED: invalid or unavailable 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 · SCOPE_REQUIRED, SERVER_CREDENTIAL_REQUIRED or FORBIDDEN. Configuration requires the exact URL previously approved by CRAD.
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 · ROUTE_UNAVAILABLE or NOT_FOUND. Unknown event IDs are not disclosed across integrations.
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 · METHOD_NOT_ALLOWED.
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. Malformed/extra input, forbidden If-Match, invalid query, or a retry that is not currently eligible.
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 limited; respect Retry-After when present.
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 · Persistence or timeout failure. A write outcome may be uncertain; preserve and retry the exact original command identity.
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"
]
}