Silencia las notificaciones de un chat por un periodo definido o indefinido
Auth:Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
TokenAccount o TokenInstance • Rate-limit: Global (100/min) • Idempotente: sí
mute: true) o reactiva (mute: false) un chat. El parámetro duration acepta varios formatos legibles para definir la ventana.
duration: "8h". Al final del periodo las notificaciones vuelven automáticamente, no se necesita otra llamada.
duration: "always" (también acepta "forever" y "permanent"), el chat queda silenciado por tiempo indefinido hasta que envíes otra llamada con mute: false.
mute: false, quita cualquier silencio activo del chat y las notificaciones se reanudan normalmente. El campo duration es ignorado en esta variante.
muted indica el estado final y duration viene en segundos (28800 = 8h, 604800 = 1 semana, 0 = permanente o sin silencio). El message cambia por operación: "Chat muted permanently", "Chat muted for 8 hours", "Chat muted for 1 week" o "Chat notifications unmuted successfully".
| Nombre | Requerido | Ejemplo | Descripción |
|---|---|---|---|
Content-Type | sí | application/json | — |
token | sí (o Authorization) | a1b2c3d4-... | TokenAccount o TokenInstance. |
...@s.whatsapp.net o ...@lid), JID de grupo (...@g.us) o newsletter.true silencia, false reactiva.mute=false.duration| Valor | Significado |
|---|---|
"8h" o "8 hours" | 8 horas |
"1w", "7d" o "1 week" | 1 semana |
"always", "forever", "permanent" | Sin expiración |
| (vacío) | Sin expiración |
| HTTP | error.message | Cuándo ocurre |
|---|---|---|
| 400 | Instance name is required | — |
| 400 | Invalid request body: <...> | JSON malformado. |
| 400 | Number is required | — |
| 400 | Invalid duration: <...> | Formato no reconocido. |
| 401 | Invalid token | — |
| 404 | Instance not found | — |
| 503 | Instance is not connected to WhatsApp | — |
POST /api/chat/archive/:instancePOST /api/chat/block/:instance