curl --request GET \
--url https://{server-url}/instance/connectionState/{instance} \
--header 'apikey: <api-key>'
{
"instance": {
"instanceName": "teste-docs",
"state": "open"
}
}
Gets the state of the connection
curl --request GET \
--url https://{server-url}/instance/connectionState/{instance} \
--header 'apikey: <api-key>'
{
"instance": {
"instanceName": "teste-docs",
"state": "open"
}
}
Your authorization key header
ID of the instance to connect
Ok
The response is of type object
.