Fixa (pin) ou desfixa um chat no topo da lista
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 ou TokenInstance • Rate-limit: Global (100/min) • Idempotente: sim
pin: true) ou remove a fixação (pin: false).
pin: true, o chat é movido para o topo da lista. Lembre que o WhatsApp permite no máximo 3 chats fixados ao mesmo tempo, tentar um quarto retorna erro.
pin: false, remove a fixação e o chat volta a ordenar normalmente por atividade. Libera espaço no limite de 3 fixados.
chat_jid (JID resolvido a partir do number) e pinned refletindo o estado final. A message muda conforme o valor de pin: "Chat pinned successfully" ou "Chat unpinned successfully".
| Nome | Obrigatório | Exemplo | Descrição |
|---|---|---|---|
Content-Type | sim | application/json | — |
token | sim (ou Authorization) | a1b2c3d4-... | TokenAccount ou TokenInstance. |
...@s.whatsapp.net ou ...@lid), JID de grupo (...@g.us) ou newsletter.true fixa, false desfixa.| HTTP | error.message | Quando ocorre |
|---|---|---|
| 400 | Instance name is required | — |
| 400 | Invalid request body: <...> | JSON malformado. |
| 400 | Number is required | — |
| 401 | Invalid token | — |
| 404 | Instance not found | — |
| 503 | Instance is not connected to WhatsApp | — |
POST /api/chat/archive/:instancePOST /api/chat/favorite/:instance