GET
/
instance
/
fetchInstances
curl --request GET \
  --url https://api.l2msg.com/whatsapp/instance/fetchInstances \
  --header 'apikey: <api-key>'
[
  {
    "instance": {
      "instanceName": "example-name",
      "instanceId": "421a4121-a3d9-40cc-a8db-c3a1df353126",
      "owner": "553198296801@s.whatsapp.net",
      "profileName": "Guilherme Gomes",
      "profilePictureUrl": null,
      "profileStatus": "This is the profile status.",
      "status": "open",
      "serverUrl": "https://api.l2msg.com",
      "apikey": "B3844804-481D-47A4-B69C-F14B4206EB56",
      "integration": {
        "integration": "WHATSAPP-BAILEYS",
        "webhook_wa_business": "https://api.l2msg.com/webhook/whatsapp/db5e11d3-ded5-4d91-b3fb-48272688f206"
      }
    }
  },
  {
    "instance": {
      "instanceName": "teste-docs",
      "instanceId": "af6c5b7c-ee27-4f94-9ea8-192393746ddd",
      "status": "close",
      "serverUrl": "https://api.l2msg.com",
      "apikey": "123456",
      "integration": {
        "token": "123456",
        "webhook_wa_business": "https://api.l2msg.com/webhook/whatsapp/teste-docs"
      }
    }
  }
]

Authorizations

apikey
string
header
required

Your authorization key header

Query Parameters

instanceName
string

Name of the instance to be fetched

instanceId
string

ID of the instance to be fetched

Response

200 - application/json
Ok
status
integer

The HTTP status of the response

error
string

The error message indicating the type of error

response
object