/v1/management/conversationsBehavior
Read retained conversations, newest first. Search customer name/phone and select all, unread, human or window_open. The last filter means a verified live customer arrival within 24 hours, not guaranteed sendability. Keep search/filter fixed while following nextCursor. Reading does not mark messages read; these pages are not a synchronization feed.
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
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
searchquery · stringOptionalOptional name/phone search; surrounding whitespace is trimmed.
Format and constraints
{ "type": "string", "maxLength": 160 }filterquery · stringOptionalChoose one inbox filter.
Format and constraints
{ "enum": [ "all", "unread", "human", "window_open" ], "default": "all" }limitquery · integerOptionalMaximum page size.
Format and constraints
{ "type": "integer", "minimum": 1, "maximum": 100, "default": 40 }cursorquery · stringOptionalOpaque nextCursor from this same query; omit initially.
Format and constraints
{ "type": "string", "minLength": 1, "maxLength": 2048, "pattern": "^[A-Za-z0-9_-]+$" }
Successful responses
200 · BusinessConversationList
Current authorized result.
Cache-Control
{
"const": "no-store"
} application/json · BusinessConversationList
-
itemsarrayRequiredmaxItems:100View nested fields
-
[]objectArray itemView nested fields
-
idstring · uuidRequired -
customerIdanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
customerNameanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:1000 -
anyOf 2nullSchema branch
-
-
customerPhonestringRequiredpattern:"^[0-9]{5,20}$" -
lastMessageAtanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1string · date-timeSchema branch -
anyOf 2nullSchema branch
-
-
lastMessageTextanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:16384 -
anyOf 2nullSchema branch
-
-
lastMessageKindanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:64 -
anyOf 2nullSchema branch
-
-
unreadCountintegerRequiredminimum:0maximum:2147483647 -
botModestringRequiredAllowed values:
["human","bot"] -
controlVersionintegerRequiredminimum:0maximum:9007199254740991 -
versionstringRequiredOpaque control version returned by this API. Send it quoted in If-Match when changing control.
pattern:"^cv(?:0|[1-9][0-9]*)$" -
isBlockedbooleanRequired -
attentionReasonanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:1000 -
anyOf 2nullSchema branch
-
-
serviceWindowobject; oneOf (object | object)OptionalComputed from a verified live incoming customer message. History import, opening a conversation, a staff reply or taking control does not open or extend the window. This is separate from connection readiness and permission to send.
Exactly one of these variants must match.
View nested fields
-
openbooleanRequired -
expiresAtanyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1string · date-timeSchema branch -
anyOf 2nullSchema branch
-
-
oneOf 1 · open = trueobjectSchema branchView branch fields and rules
-
openbooleanOptional in this branchValue:
true -
expiresAtstring · date-timeOptional in this branch
-
-
oneOf 2 · open = falseobjectSchema branchView branch fields and rules
-
openbooleanOptional in this branchValue:
false -
expiresAtnullOptional in this branch
-
-
additionalPropertiesno value allowedSchema rule
-
-
nextAppointmentanyOf (object | null)OptionalOptional context, disclosed only with current appointments:read and a calendar grant covering that appointment. Null can mean absent, withheld or unavailable; it is not proof that no booking exists. Use the authorized calendar API for appointment details.
At least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
idstring · uuidRequired in this branch -
startTimestring · date-timeRequired in this branch -
statusstringRequired in this branchmaxLength:64 -
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
-
-
-
nextCursoranyOf (string | null)RequiredAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchminLength:1maxLength:2048pattern:"^[A-Za-z0-9_-]+$" -
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
{
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"customerId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"customerName": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
},
"customerPhone": {
"type": "string",
"pattern": "^[0-9]{5,20}$"
},
"lastMessageAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"lastMessageText": {
"anyOf": [
{
"type": "string",
"maxLength": 16384
},
{
"type": "null"
}
]
},
"lastMessageKind": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
]
},
"unreadCount": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"botMode": {
"type": "string",
"enum": [
"human",
"bot"
]
},
"controlVersion": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"version": {
"type": "string",
"pattern": "^cv(?:0|[1-9][0-9]*)$",
"description": "Opaque control version returned by this API. Send it quoted in If-Match when changing control."
},
"isBlocked": {
"type": "boolean"
},
"attentionReason": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
},
"serviceWindow": {
"type": "object",
"additionalProperties": false,
"properties": {
"open": {
"type": "boolean"
},
"expiresAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
}
},
"required": [
"open",
"expiresAt"
],
"description": "Computed from a verified live incoming customer message. History import, opening a conversation, a staff reply or taking control does not open or extend the window. This is separate from connection readiness and permission to send.",
"oneOf": [
{
"properties": {
"open": {
"const": true
},
"expiresAt": {
"type": "string",
"format": "date-time"
}
}
},
{
"properties": {
"open": {
"const": false
},
"expiresAt": {
"type": "null"
}
}
}
]
},
"nextAppointment": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"startTime": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"maxLength": 64
}
},
"required": [
"id",
"startTime",
"status"
]
},
{
"type": "null"
}
],
"description": "Optional context, disclosed only with current appointments:read and a calendar grant covering that appointment. Null can mean absent, withheld or unavailable; it is not proof that no booking exists. Use the authorized calendar API for appointment details."
}
},
"required": [
"id",
"customerId",
"customerName",
"customerPhone",
"lastMessageAt",
"lastMessageText",
"lastMessageKind",
"unreadCount",
"botMode",
"controlVersion",
"version",
"isBlocked",
"attentionReason"
]
}
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "^[A-Za-z0-9_-]+$"
},
{
"type": "null"
}
]
}
},
"required": [
"items",
"nextCursor"
]
} Errors and recovery
Error responses declared in the contract (6)
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 scope, integration or business authority denied; browser Origin refused; INBOX_DISABLED when a required inbox gate is off.
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 body, duplicate/unknown query parameter, UUID, page size or cursor. Unknown body fields are 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"
]
} 429 · Request quota exceeded; honor Retry-After.
Cache-Control
{
"const": "no-store"
} Retry-After · If present, wait this many seconds before the next read/check. This does not authorize a new 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 failure; retry this read after any Retry-After.
Cache-Control
{
"const": "no-store"
} Retry-After · If present, wait this many seconds before the next read/check. This does not authorize a new 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"
]
}