Disconnects the instance from WhatsApp, ending the current session. This operation:
Closes the active connection
Requires a new QR code to reconnect
Differences between disconnect and hibernate:
Disconnect: Closes the session completely, requiring new login
Hibernate: Keeps the session active, only pauses the connection
Use this endpoint for:
Completely end a session
Force a new authentication
Clear instance credentials
Restart the connection process
Possible states after disconnect:
disconnected: Disconnected from WhatsApp
connecting: In the process of reconnecting (after using /instance/connect)
Success
Representa uma instância do WhatsApp
{
"id": "i91011ijkl",
"token": "abc123xyz",
"status": "connected",
"paircode": "1234-5678",
"qrcode": "data:image/png;base64,iVBORw0KGg...",
"name": "Instância Principal",
"profileName": "Loja ABC",
"profilePicUrl": "https://example.com/profile.jpg",
"isBusiness": true,
"plataform": "Android",
"systemName": "WppFy",
"owner": "user@example.com",
"lastDisconnect": "2025-01-24T14:00:00Z",
"lastDisconnectReason": "Network error",
"adminField01": "custom_data",
"openai_apikey": "sk-...xyz",
"chatbot_enabled": true,
"chatbot_ignoreGroups": true,
"chatbot_stopConversation": "parar",
"chatbot_stopMinutes": 60,
"created": "2025-01-24T14:00:00Z",
"updated": "2025-01-24T14:30:00Z",
"delayMin": 2,
"delayMax": 4
}"Disconnected"
"The device has been successfully disconnected from WhatsApp. A new QR code will be required for the next connection."