Skip to content
GbàlejòDocs

Directory

List employees

GET/api/v1/employees
Scope: employees:read

The directory, the people visitors come to see: by name, department, site or status, 50 a page.

Example request

curl
curl "https://api.gbalejo.com/api/v1/employees?department=Finance" \
  -H "Authorization: Bearer $GBALEJO_API_KEY"
JavaScript
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
JSON
{
  "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

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

200 OK

A page of the directory.

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

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).