Skip to content
GbàlejòDocs

Visits

Get a visit

GET/api/v1/visits/{visitId}
Scope: visits:read

One visit, with its visitor, host, type and times.

Example request

curl
curl https://api.gbalejo.com/api/v1/visits/8b0e7c1a-4f2d-4b9e-a6c3-2d1f5e9a7b40 \
  -H "Authorization: Bearer $GBALEJO_API_KEY"
JavaScript
const response = await fetch('https://api.gbalejo.com/api/v1/visits/8b0e7c1a-4f2d-4b9e-a6c3-2d1f5e9a7b40', {
  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
{
  "id": "8b0e7c1a-4f2d-4b9e-a6c3-2d1f5e9a7b40",
  "status": "INVITED",
  "source": "INVITE",
  "siteId": "1c4f6a3e-9d2b-4e7a-8f1c-5a3b7d9e2c61",
  "entranceId": "2e7d9b4c-6a1f-4c3e-9b8d-7f2a5c1e3d82",
  "visitor": {
    "id": "3d9a1e7f-5b2c-4f6d-8a3e-1c7b9f4d2e95",
    "name": "Tunde Bakare",
    "email": "tunde.bakare@koralogistics.com",
    "phone": "+2348031234567",
    "company": "Kora Logistics"
  },
  "host": {
    "id": "9e7b3f2a-1d5c-4e8b-a4f7-3b6d2c9e1a74",
    "name": "Chiamaka Eze",
    "department": "Finance"
  },
  "visitorType": {
    "id": "5a2d8e1f-3c7b-4a9d-b6e2-9c4f1a7d3e53",
    "name": "Guest",
    "colour": "blue"
  },
  "expectedStart": "2027-01-14T09:00:00.000Z",
  "expectedEnd": "2027-01-14T11:00:00.000Z",
  "purpose": "Quarterly supplier review",
  "notes": null,
  "groupId": null,
  "seriesId": null,
  "sendEmail": true,
  "includeWifi": false,
  "checkedInAt": null,
  "checkedOutAt": null,
  "createdAt": "2026-12-04T14:20:00.000Z",
  "badgeNumber": null
}

Path parameters

visitIdrequired

string (uuid)

The visit’s id.

Responses

200 OK

The visit.

id

string

The visit’s id.

status

string

Where the visit is: INVITED (a later day), EXPECTED (today), PENDING_APPROVAL (waiting for approval at check-in), CHECKED_IN, CHECKED_OUT, AUTO_CHECKED_OUT (at the site’s end of day), CANCELLED, NO_SHOW or DENIED (refused at check-in).

INVITEDEXPECTEDPENDING_APPROVALCHECKED_INCHECKED_OUTDENIEDCANCELLEDNO_SHOWAUTO_CHECKED_OUT
source

string

How it was made: INVITE (one invite, in the app or here), BULK (a list), RECURRING (a visit that repeats) or WALK_IN (at the kiosk or the desk).

INVITEBULKRECURRINGWALK_IN
siteId

string

The site visited.

entranceId

string or null

The entrance the visitor was asked to use, or null.

visitor

object

The visitor.

visitor.id

string

The visitor’s id, the same on each of their visits.

visitor.name

string

Their name.

visitor.email

string or null

Their email address.

visitor.phone

string or null

Their phone number, in international (E.164) form.

visitor.company

string or null

Their company.

host

object or null

The employee visited, or null.

host.id

string

The employee’s id.

host.name

string

Their name.

host.department

string or null

Their department.

visitorType

object

The visitor type.

visitorType.id

string

The visitor type’s id.

visitorType.name

string

Its name (Guest, Contractor…).

visitorType.colour

string

Its colour key on badges and in the app (blue, orange, teal…).

expectedStart

string

When the visit is due to start (ISO 8601, UTC).

expectedEnd

string

When it is due to end (ISO 8601, UTC).

purpose

string or null

What the visit is for.

notes

string or null

Notes for reception.

groupId

string or null

Shared by the visits of one group invite; null for one visitor.

seriesId

string or null

Shared by the visits of one repeating visit; null otherwise.

sendEmail

boolean

Whether the visitor is emailed their invite.

includeWifi

boolean

Whether the invite carries the site’s guest Wi-Fi.

checkedInAt

string or null

When they checked in (ISO 8601), or null.

checkedOutAt

string or null

When they checked out (ISO 8601), or null.

createdAt

string

When the visit was made (ISO 8601).

badgeNumber

string or null

The number on the visitor’s badge ("B-7KQ2") once one is printed.

Errors

The id in the path is not a UUID.

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 visits:read.

There is no such visit in the organisation.

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