Managing Instances
An instance represents a single WhatsApp number connected to Wappfy. Each instance goes through a lifecycle: create, connect, scan QR, use, and eventually disconnect or delete.Instance Types
Wappfy supports two providers:Instance Status Values
Throughout its lifecycle, an instance transitions through these statuses:Lifecycle Overview
Create an Instance
Create a new WhatsApp instance tied to your account.Connect an Instance
Start the WhatsApp session. The instance will transition tostarting and then to scan_qr.
Get the QR Code
Once the instance reachesscan_qr status, retrieve the QR code to scan with your phone.
The QR code expires after approximately 60 seconds. If it expires before you scan it, call the endpoint again to get a fresh code.
connected.
Check Instance Status
Poll the status endpoint to know when the instance is ready.List All Instances
Retrieve all instances for your account.Disconnect an Instance
Stop the WhatsApp session without deleting the instance. You can reconnect later.Restart an Instance
Restart the WhatsApp session. This is useful if the instance is in afailed state or behaving unexpectedly.
Restarting preserves the linked WhatsApp session. You will not need to scan the QR code again.