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
Filter results to a specific instance by name. Optional.
Filter results by instance UUID. Optional.
Filter results by WhatsApp phone number. Optional.
Response
Returns an array of instance objects with detailed information:Name of the instance
Unique instance identifier (UUID)
Owner phone number in WhatsApp format (e.g.,
[email protected])WhatsApp profile name
URL to profile picture
WhatsApp status message
Instance status:
online, offline, connectingIntegration type:
WHATSAPP-BAILEYS, WHATSAPP-BUSINESSServer URL for this instance
Instance-specific API key (hash)
Instance creation timestamp (ISO 8601)
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.
Authentication Scopes
The response depends on your authentication level:| API Key Type | Access Level |
|---|---|
| Global API Key | Returns all instances across your account |
| Instance Token (hash) | Returns only instances associated with that token |