Skip to main content

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 the apikey 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, connecting
object
Detailed connection status
string
Connection state: open, close, connecting
number
Numeric status reason code (when applicable)
string
Integration type: WHATSAPP-BAILEYS, WHATSAPP-BUSINESS
string
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

The connectionStatus.state field indicates the current connection state:
  • open - Instance is connected and ready to send/receive messages
  • close - Instance is disconnected from WhatsApp
  • connecting - 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:
Keep your API keys secure. The instance-specific token (apikey in response) grants full control over that instance.