Overview
Enterprise accounts can run multiple WhatsApp numbers and manage them through the API: create an instance for each number, connect it with a QR code, and monitor or restart it. These methods live under client.Enterprise. (learn more about the Enterprise API)
Unlike the other clients, Enterprise methods work across all your instances, so you pass the instance ID on each call instead of setting it in your environment.
Set your Enterprise API key in your .env file (or pass it with hypersender.WithEnterprise(apiKey)):
The examples assume ctx is a context.Context, such as context.Background().
List Instances
List the WhatsApp instances on your account, optionally filtered. (learn more)
opts is optional; pass nil to list all instances. Each field is sent as filter[field].
Create an Instance
Create a new WhatsApp instance. The response includes a QR code to scan with the phone. (learn more)
Check Instance Health
Check whether an instance is connected and working. (learn more)
Request a New QR Code
Get a fresh WhatsApp QR code when the previous one expired or the phone was disconnected. (learn more)
Restart an Instance
Restart an instance that is stuck or not responding. (learn more)
Last modified on November 24, 2026