I'm new to Gather and need help figuring out how to retrieve all users and their statuses. I'm using Zoho Deluge Script. How can I do this?

The following is code BUT it is not working.
apiKey = “XXXXXXXXXXXXXXXXXXXXXXXXXX”;
spaceId = “XXXXXXXXXXXXXXXXXXXXXXXX”;
// spaceId = “xxxxxxxxxxxxxxxxxxxxxx”;

url12 = “https://api.gather.town/api/getEmailGuestlist?spaceId=” + encodeUrl(spaceId);

headers = Map();
headers.put(“apiKey”, apiKey);

response = invokeurl [
url :url12
type :GET
headers :headers
];
info "API Response => "+response;