Limpiar un número
Sirve para limpiar la sesión de WhatsApp de un número: después hay que volver a escanear el código QR. Es irreversible y requiere accounts:operate.
"Desconectar" (whatsapp-preverified-number-assignment D60; spec device-connection-actions):
never erases the number information and never frees the place, QR and Meta, both modes.
- QR: provider logout of the WhatsApp session; the instance (
uid,token) stays so the user scans again; alias, color, image, app name, identity and history are kept. - Meta: the QR sibling's one-to-one is turned back on FIRST (synchronously, while the row
still has its number, D60.7); then only the access token is cleared (no provider call,
status()answerspending_login, D60.10);uid(phone_number_id),waba_id, identity andis_coexistenceare kept, so the same number reconnects with Embedded Signup on the same row (also at or over the pool: D59 S1 / D20 rule 4).numbergoes NULL as before (the card showsnumber_key). 409device_retiredon a retired row; 409operation_in_progresswhile a Meta signup holds a number reservation. 200{data: DeviceResource, numbers_capacity}(numbers_capacityomitted when it cannot be computed, D59.12)
Escritura · requiere el permiso accounts:operate.
⚠️ Operación irreversible. No hay papelera ni deshacer: resetear o limpiar un número mata su sesión de WhatsApp (hay que volver a escanear el código), purgar la cola descarta los mensajes encolados sin dejar registro de lo descartado, y los borrados eliminan el recurso.
httpAuthorizationBearer <clave>device*integerThe device ID
application/json- response
data*array<unknown>numbers_capacity*string|nullcurl -X POST "https://example.com/devices/0/clean"{ "data": [ null ], "numbers_capacity": "string"}Configurar el webhook de recibidos y entregas PUT
Sirve para configurar en un número los avisos de mensajes recibidos y de confirmaciones de entrega que usa Funnelchat.
Listar los chats de un número GET
Usalo para listar los chats que tiene un número en WhatsApp según el proveedor, con búsqueda por teléfono y filtro por tipo.