Create Instance
Create a new WhatsApp instance from an external application. The created instance is saved to your Wachat account and appears automatically in Settings > Instance. WhatsApp Baileys instances return a QR code in the same response.
instance.instanceName is the display name shown in Wachat. Use instance.apiInstanceName for future API calls such as sending messages, checking state, logout, and delete.Displaying the QR Code
Use theqrcode.base64 value as an image source in your application.
qrcode.imageUrl to render the QR code through an image endpoint:
qrcode.liveUrl:
GET /instance/qr.
Return QR Image Directly
If you want the create request to return the QR code as an image instead of JSON, addresponse=image to the URL:
X-Instance-Name. Use X-Api-Instance-Name for future API calls.Authorizations
Authenticate your integration payloads by injecting your premium secure Wachat Account API Private Secret Key inside standard Authorization Bearer header vectors.
Query Parameters
Set to image to return the QR code directly as image/png instead of JSON.
json, image Body
Friendly instance name. Wachat will add a unique prefix before saving the final instance name.
"jakarta_store"
Optional WhatsApp phone number with country code.
"628123456789"
Instance integration type.
WHATSAPP-BAILEYS, WHATSAPP-BUSINESS "WHATSAPP-BAILEYS"
Reject incoming WhatsApp calls automatically.
false
Ignore group messages for this instance.
false
Keep the instance online when possible.
true
Mark incoming messages as read.
false
Read status updates.
false
Required only for WHATSAPP-BUSINESS integrations.
Required only for WHATSAPP-BUSINESS integrations.
Required only for WHATSAPP-BUSINESS integrations.
Response
Instance created successfully. For WhatsApp Baileys, the QR code is returned immediately.
The response is of type file.
