curl --location -g --request GET 'https://api.green-api.com/v3/waInstance<Ваш idInstance из личного кабинета Green API>/getMessagesCount/<Ваш apiTokenInstance из личного кабинета Green API>'
{ "count": 0 }