What is an instance?
An instance represents a WhatsApp phone number connected to Cawme. Each instance:- Has a unique
idprefixed withinst_ - Belongs to one user account
- Maintains an independent call queue
- Goes through a lifecycle of statuses
Instance lifecycle
| Status | Description |
|---|---|
CREATED | Instance registered but no WhatsApp number paired yet |
CONFIGURED | QR code scanned, WhatsApp number linked |
ACTIVE | Instance is live and able to make calls |
DELETED | Soft-deleted; no longer accessible (not physically removed) |
Pairing a WhatsApp number
After creating an instance, call the configure endpoint to get a QR code:qrCodeBase64 value into an image and scan it with WhatsApp on your phone.
Call queue
When you fetch an instance, the response includes its activecallQueue — all calls currently in QUEUED, RINGING, or IN_PROGRESS state.
Idempotency
If you submit a call for an instance that already has an active call (same instance inQUEUED, RINGING, or IN_PROGRESS), the API returns the existing call instead of creating a duplicate. This protects against double-submissions from network retries or client re-renders.