Skip to content
GbàlejòDocs

Sites

List sites

GET/api/v1/sites
Scope: sites:read

The organisation’s sites with their entrances: their ids are what an invite names.

Example request

curl
curl https://api.gbalejo.com/api/v1/sites \
  -H "Authorization: Bearer $GBALEJO_API_KEY"
JavaScript
const response = await fetch('https://api.gbalejo.com/api/v1/sites', {
  headers: {
    Authorization: `Bearer ${process.env.GBALEJO_API_KEY}`,
  },
});
// Problems come back as application/problem+json: type, title, status, detail.
if (!response.ok) throw new Error((await response.json()).detail);
const result = await response.json();

Example response

200 OK
JSON
{
  "sites": [
    {
      "id": "1c4f6a3e-9d2b-4e7a-8f1c-5a3b7d9e2c61",
      "name": "Victoria Island HQ",
      "address": "12 Adeola Odeku Street, Victoria Island, Lagos",
      "timezone": "Africa/Lagos",
      "autoCheckoutTime": "20:00",
      "kioskNameCheckout": true,
      "entrances": [
        {
          "id": "2e7d9b4c-6a1f-4c3e-9b8d-7f2a5c1e3d82",
          "name": "Main lobby",
          "description": "Ground floor, Adeola Odeku Street",
          "purpose": "VISITORS"
        }
      ],
      "arrivalInstructions": "Check in at the kiosk in the main lobby.\nTake the lift to the 4th floor.",
      "wifiNetwork": "LPH-Guest",
      "wifiPassword": "welcome-2027",
      "receptionPhone": "+2342012345678",
      "assemblyPoints": [
        "Car park A"
      ],
      "createdAt": "2026-12-04T14:20:00.000Z"
    }
  ]
}

Responses

200 OK

Every site, with its entrances.

sites

array of objects

Every site of the organisation, oldest first.

sites[].id

string

The site’s id.

sites[].name

string

Its name.

sites[].address

string or null

Its street address.

sites[].timezone

string

Its time zone (IANA, e.g. Africa/Lagos): invite times are in it.

sites[].autoCheckoutTime

string

When anyone still checked in is checked out, HH:MM in the site’s time zone.

sites[].kioskNameCheckout

boolean

Whether a kiosk here may check a visitor out by name (K17); off requires scanning a pass or badge.

sites[].entrances

array of objects

Its entrances.

sites[].entrances[].id

string

The entrance’s id.

sites[].entrances[].name

string

Its name ("Main lobby").

sites[].entrances[].description

string or null

A line about where it is.

sites[].entrances[].purpose

string

VISITORS (where visitors check in) or DELIVERIES (for couriers and contractors).

VISITORSDELIVERIES
sites[].arrivalInstructions

string or null

What visitors are told on arrival, one instruction a line.

sites[].wifiNetwork

string or null

The guest Wi-Fi’s name.

sites[].wifiPassword

string or null

The guest Wi-Fi’s password.

sites[].receptionPhone

string or null

Reception’s phone number, in international (E.164) form.

sites[].assemblyPoints

array of strings

Where people gather in an evacuation, the main one first.

sites[].createdAt

string

When the site was added (ISO 8601).

Errors

No key was sent, or it is mistyped or unknown.

The key has been revoked.

The key has passed its expiry date.

The organisation’s plan does not include the API (feature: "api").

Gbàlejò has suspended the organisation.

The key does not have sites:read.

The key has made its requests for this minute (Retry-After says when).