GET /instance/fetchInstances
Retrieve detailed information about your WhatsApp instances. You can fetch all instances, filter by specific instance name, or query by instance ID or phone number.Authentication
This endpoint requires authentication via theapikey header.
If you use a global API key, you’ll see all instances. If you use an instance-specific token (the
hash returned when creating an instance), you’ll only see instances associated with that token.Query Parameters
string
Filter results to a specific instance by name. Optional.
string
Filter results by instance UUID. Optional.
string
Filter results by WhatsApp phone number. Optional.
Response
Returns an array of instance objects with detailed information:string
Name of the instance
string
Unique instance identifier (UUID)
string
Owner phone number in WhatsApp format (e.g.,
5511999999999@s.whatsapp.net)string
WhatsApp profile name
string
URL to profile picture
string
WhatsApp status message
string
Instance status:
online, offline, connectingobject
string
Integration type:
WHATSAPP-BAILEYS, WHATSAPP-BUSINESSstring
Server URL for this instance
string
Instance-specific API key (hash)
string
Instance creation timestamp (ISO 8601)
string
Last update timestamp (ISO 8601)
Examples
Response Example
Success Response - Multiple Instances
Success Response - Single Instance
Error Response - Unauthorized
Empty Response - No Instances Found
Connection Status States
TheconnectionStatus.state field indicates the current connection state:
open- Instance is connected and ready to send/receive messagesclose- Instance is disconnected from WhatsAppconnecting- Instance is attempting to connect to WhatsApp
Error Handling
The API returns standard HTTP status codes:200- Success (returns array, empty if no instances found)401- Unauthorized (invalid API key or no permission to view instances)500- Internal server error
Use Cases
Monitoring Dashboard: Use this endpoint to build a real-time dashboard showing the status of all your WhatsApp instances.
Health Checks: Poll this endpoint periodically to monitor instance connectivity and trigger alerts when instances go offline.
Instance Discovery: When you only have an instance name, use this endpoint to retrieve the full instance details including ID and API key.