Sites
List sites
/api/v1/sitessites:readThe organisation’s sites with their entrances: their ids are what an invite names.
Responses
| Name | Type | Description |
|---|---|---|
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
| Status | Type | When |
|---|---|---|
| 401 | api-key-invalid | No key was sent, or it is mistyped or unknown. |
| 401 | api-key-revoked | The key has been revoked. |
| 401 | api-key-expired | The key has passed its expiry date. |
| 402 | plan-feature | The organisation’s plan does not include the API (feature: "api"). |
| 403 | organisation-suspended | Gbàlejò has suspended the organisation. |
| 403 | api-key-scope | The key does not have sites:read. |
| 429 | rate-limited | The key has made its requests for this minute (Retry-After says when). |
Sites
List sites
/api/v1/sitessites:readThe organisation’s sites with their entrances: their ids are what an invite names.
Example request
curl https://api.gbalejo.com/api/v1/sites \
-H "Authorization: Bearer $GBALEJO_API_KEY"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{
"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
Every site, with its entrances.
sitesarray of objects
Every site of the organisation, oldest first.
sites[].idstring
The site’s id.
sites[].namestring
Its name.
sites[].addressstring or null
Its street address.
sites[].timezonestring
Its time zone (IANA, e.g. Africa/Lagos): invite times are in it.
sites[].autoCheckoutTimestring
When anyone still checked in is checked out, HH:MM in the site’s time zone.
sites[].kioskNameCheckoutboolean
Whether a kiosk here may check a visitor out by name (K17); off requires scanning a pass or badge.
sites[].entrancesarray of objects
Its entrances.
sites[].entrances[].idstring
The entrance’s id.
sites[].entrances[].namestring
Its name ("Main lobby").
sites[].entrances[].descriptionstring or null
A line about where it is.
sites[].entrances[].purposestring
VISITORS (where visitors check in) or DELIVERIES (for couriers and contractors).
sites[].arrivalInstructionsstring or null
What visitors are told on arrival, one instruction a line.
sites[].wifiNetworkstring or null
The guest Wi-Fi’s name.
sites[].wifiPasswordstring or null
The guest Wi-Fi’s password.
sites[].receptionPhonestring or null
Reception’s phone number, in international (E.164) form.
sites[].assemblyPointsarray of strings
Where people gather in an evacuation, the main one first.
sites[].createdAtstring
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).