Forces a WhatsApp logout and disconnects the device, while keeping the instance record
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 or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
connect (with a new QR).
DELETE to the logout path to unlink the device from WhatsApp and close the WebSocket. The instance record is preserved, so the same token can be reused on a future call to connect.
| HTTP | error.message | When |
|---|---|---|
| 401 | Invalid token | Token missing or invalid. |
| 404 | Instance not found | Name does not exist. |
| 429 | Rate limit exceeded. Try again later. | More than 100 req/min. |
| 500 | Failed to logout instance | Internal failure. |
reconnect no longer works, the whatsmeow session is wiped. Use connect to generate a new QR.