Directory
List employees
/api/v1/employeesemployees:readThe directory, the people visitors come to see: by name, department, site or status, 50 a page.
Query parameters
| Name | Type | Description |
|---|---|---|
q | string, at most 120 characters | Search: name, email or department, ignoring case. |
department | string, at most 120 characters | Only this department (the exact name). |
siteId | string (uuid) | Only employees at this site. |
status | string, default "active" | Active employees (the default), deactivated ones, or all.activeinactiveall |
page | integer, at least 1, default 1 | The page, from 1; 50 employees a page. |
Responses
| Name | Type | Description |
|---|---|---|
employees | array of objects | This page of employees, by name. |
employees[].id | string | The employee’s id. |
employees[].name | string | Their name. |
employees[].email | string or null | Their work email, in lower case. |
employees[].phone | string or null | Their phone number, in international (E.164) form. |
employees[].department | string or null | Their department. |
employees[].title | string or null | Their job title. |
employees[].siteId | string or null | The site they work at, or null. |
employees[].active | boolean | Whether visitors can be invited to see them; a deactivated employee stays in the directory. |
employees[].notifyBy | array of strings | How they are told their visitors have arrived.EMAILSMSWHATSAPP |
employees[].delegates | array of objects | Colleagues told about their visitors too. |
employees[].delegates[].id | string | The colleague’s employee id. |
employees[].delegates[].name | string | Their name. |
employees[].delegates[].title | string or null | Their job title. |
employees[].delegates[].email | string or null | Their work email. |
employees[].createdAt | string | When they were added (ISO 8601). |
total | integer | How many employees match, on every page. |
page | integer | This page’s number. |
pageSize | integer | Employees a page (50). |
departments | array of strings | Every department in the directory. |
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 employees:read. |
| 422 | validation | A field is missing or not valid: errors lists each one with its path. |
| 429 | rate-limited | The key has made its requests for this minute (Retry-After says when). |
Directory
List employees
/api/v1/employeesemployees:readThe directory, the people visitors come to see: by name, department, site or status, 50 a page.
Example request
curl "https://api.gbalejo.com/api/v1/employees?department=Finance" \
-H "Authorization: Bearer $GBALEJO_API_KEY"const query = new URLSearchParams({
department: 'Finance',
});
const response = await fetch(`https://api.gbalejo.com/api/v1/employees?${query}`, {
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{
"employees": [
{
"id": "9e7b3f2a-1d5c-4e8b-a4f7-3b6d2c9e1a74",
"name": "Chiamaka Eze",
"email": "chiamaka.eze@lagoonpoint.com",
"phone": "+2348025550147",
"department": "Finance",
"title": "Head of Finance",
"siteId": "1c4f6a3e-9d2b-4e7a-8f1c-5a3b7d9e2c61",
"active": true,
"notifyBy": [
"EMAIL",
"SMS"
],
"delegates": [
{
"id": "6f1c2e0a-8d4b-4a7e-9c3f-5e2b7d1a9c16",
"name": "Femi Johnson",
"title": "Executive assistant",
"email": "femi.johnson@lagoonpoint.com"
}
],
"createdAt": "2026-12-04T14:20:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 50,
"departments": [
"Finance",
"Operations"
]
}Query parameters
qstring, at most 120 characters
Search: name, email or department, ignoring case.
departmentstring, at most 120 characters
Only this department (the exact name).
siteIdstring (uuid)
Only employees at this site.
statusstring, default "active"
Active employees (the default), deactivated ones, or all.
pageinteger, at least 1, default 1
The page, from 1; 50 employees a page.
Responses
A page of the directory.
employeesarray of objects
This page of employees, by name.
employees[].idstring
The employee’s id.
employees[].namestring
Their name.
employees[].emailstring or null
Their work email, in lower case.
employees[].phonestring or null
Their phone number, in international (E.164) form.
employees[].departmentstring or null
Their department.
employees[].titlestring or null
Their job title.
employees[].siteIdstring or null
The site they work at, or null.
employees[].activeboolean
Whether visitors can be invited to see them; a deactivated employee stays in the directory.
employees[].notifyByarray of strings
How they are told their visitors have arrived.
employees[].delegatesarray of objects
Colleagues told about their visitors too.
employees[].delegates[].idstring
The colleague’s employee id.
employees[].delegates[].namestring
Their name.
employees[].delegates[].titlestring or null
Their job title.
employees[].delegates[].emailstring or null
Their work email.
employees[].createdAtstring
When they were added (ISO 8601).
totalinteger
How many employees match, on every page.
pageinteger
This page’s number.
pageSizeinteger
Employees a page (50).
departmentsarray of strings
Every department in the directory.
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 employees:read.
A field is missing or not valid: errors lists each one with its path.
The key has made its requests for this minute (Retry-After says when).