/v1/management/conversation-uploads/{operationId}Behavior
Pure lookup: never uploads or sends. Only ready supplies a usable mediaId. pending/unknown require checking, not automatic re-upload. The retained receipt does not extend file expiry. If not_found, an explicit retry must preserve the UUID, bytes and metadata. An expired handle requires a separately initiated upload.
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
operationIdpath · stringRequiredFormat and constraints
{ "type": "string", "format": "uuid" }
Successful responses
200 · BusinessConversationUploadOperation
Current authorized result.
Cache-Control
{
"const": "no-store"
} application/json · BusinessConversationUploadOperation
Read-only lookup under current authority for the same integration. not_found is a point-in-time observation, not proof an earlier request cannot finish. Do not replace the original operation UUID.
Exactly one of these variants must match.
-
oneOf 1 · status = "not_found"objectSchema branchView branch fields and rules
-
statusstringRequired in this branchValue:
"not_found" -
additionalPropertiesno value allowedSchema rule
-
-
oneOf 2 · status = "found"object; allOf (unspecified)Schema branchAll of these schema rules apply together.
View branch fields and rules
-
statusstringRequired in this branchValue:
"found" -
receiptobjectRequired in this branchView nested fields
-
operationIdstring · uuidRequired in this branch -
conversationIdstring · uuidRequired in this branch -
fileSha256stringRequired in this branchpattern:"^[a-f0-9]{64}$" -
kindstringRequired in this branchAllowed values:
["image","audio","document","video"] -
mimeTypestringRequired in this branchAllowed values:
["image/jpeg","image/png","audio/aac","audio/amr","audio/mpeg","audio/mp4","audio/ogg","video/mp4","video/3gpp","application/pdf","text/plain","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"] -
filenamestringRequired in this branchminLength:1maxLength:180 -
sizeintegerRequired in this branchminimum:1maximum:16777216 -
voicebooleanRequired in this branch -
externalActorRefanyOf (string | null)Required in this branchOptional audit label from your backend, preserved exactly. CRAD does not verify this external user identity; it grants no permission.
At least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchmaxLength:200minLength:1pattern:"^[^\\u0000-\\u001f\\u007f]*\\S[^\\u0000-\\u001f\\u007f]*$" -
anyOf 2nullSchema branch
-
-
purposestringOptional in this branchPresent exactly when the saved upload used this purpose; part of replay identity.
Value:
"template_header" -
additionalPropertiesno value allowedSchema rule
-
-
currentanyOf (object | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1objectSchema branchView branch fields and rules
-
statestringRequired in this branchAllowed values:
["pending","ready","unknown","failed","expired"] -
mediaIdanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · uuidSchema branch -
anyOf 2nullSchema branch
-
-
expiresAtanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1string · date-timeSchema branch -
anyOf 2nullSchema branch
-
-
errorCodeanyOf (string | null)Required in this branchAt least one of these variants must match.
View nested fields
-
anyOf 1stringSchema branchpattern:"^[a-z][a-z0-9_]{0,79}$" -
anyOf 2nullSchema branch
-
-
additionalPropertiesno value allowedSchema rule
-
-
anyOf 2nullSchema branch
-
-
currentUnavailableReasonstring | nullRequired in this branchAllowed values:
["conversation_not_found",null] -
replayedbooleanRequired in this branch -
allOf 1unspecifiedSchema branchView branch fields and rules
-
ifobjectSchema ruleView branch fields and rules
-
currentnullCondition predicate
-
-
thenobjectSchema ruleView branch fields and rules
-
currentUnavailableReasonstringOptional in this branchValue:
"conversation_not_found"
-
-
elseobjectSchema ruleView branch fields and rules
-
currentUnavailableReasonnullOptional in this branch
-
-
-
additionalPropertiesno value allowedSchema rule
-
Complete schema and nested fields
{
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"const": "not_found"
}
},
"required": [
"status"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"const": "found"
},
"receipt": {
"type": "object",
"additionalProperties": false,
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"conversationId": {
"type": "string",
"format": "uuid"
},
"fileSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"kind": {
"enum": [
"image",
"audio",
"document",
"video"
]
},
"mimeType": {
"enum": [
"image/jpeg",
"image/png",
"audio/aac",
"audio/amr",
"audio/mpeg",
"audio/mp4",
"audio/ogg",
"video/mp4",
"video/3gpp",
"application/pdf",
"text/plain",
"application/msword",
"application/vnd.ms-excel",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
]
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 180
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 16777216
},
"voice": {
"type": "boolean"
},
"externalActorRef": {
"anyOf": [
{
"type": "string",
"maxLength": 200,
"minLength": 1,
"pattern": "^[^\\u0000-\\u001f\\u007f]*\\S[^\\u0000-\\u001f\\u007f]*$"
},
{
"type": "null"
}
],
"description": "Optional audit label from your backend, preserved exactly. CRAD does not verify this external user identity; it grants no permission."
},
"purpose": {
"const": "template_header",
"description": "Present exactly when the saved upload used this purpose; part of replay identity."
}
},
"required": [
"operationId",
"conversationId",
"fileSha256",
"kind",
"mimeType",
"filename",
"size",
"voice",
"externalActorRef"
]
},
"current": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"state": {
"enum": [
"pending",
"ready",
"unknown",
"failed",
"expired"
]
},
"mediaId": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
]
},
"expiresAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"errorCode": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,79}$"
},
{
"type": "null"
}
]
}
},
"required": [
"state",
"mediaId",
"expiresAt",
"errorCode"
]
},
{
"type": "null"
}
]
},
"currentUnavailableReason": {
"enum": [
"conversation_not_found",
null
]
},
"replayed": {
"type": "boolean"
}
},
"required": [
"status",
"receipt",
"current",
"currentUnavailableReason",
"replayed"
],
"allOf": [
{
"if": {
"properties": {
"current": {
"type": "null"
}
}
},
"then": {
"properties": {
"currentUnavailableReason": {
"const": "conversation_not_found"
}
}
},
"else": {
"properties": {
"currentUnavailableReason": {
"type": "null"
}
}
}
}
]
}
],
"description": "Read-only lookup under current authority for the same integration. not_found is a point-in-time observation, not proof an earlier request cannot finish. Do not replace the original operation UUID."
} 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"
]
}