Visit
vis_A Visit is one Person or Guest at one Place on one day, in the Place's timezone. It holds every arrival and departure recorded that day, so leaving for lunch and coming back is one Visit. status, first_arrived_at and last_departed_at are worked out from the entries. A Guest's Visit names a host.
The Visit object
#fieldsidVisitIdvis_).created_atInstantcreated_byActordateLocalDateentriesarray of VisitEntryoccurred_at. Never empty.objectvisitvisit.organisationOrganisationIdorg_).placePlaceIdplace_). Can't be changed.statusstringon_siteleftLifecycle statuses
#statusesEvery described status value for visit.
leftThe latest entry is a departure.
on_siteThe latest entry is an arrival.
Entries Kind values
#entries-kind-valuesEvery described entries.[].kind value for visit.
arrivalThe person arrived at the Place.
departureThe person left the Place.
Entries Source values
#entries-source-valuesEvery described entries.[].source value for visit.
automaticOfficely signed the person out at the Place's sign-out time, or at the end of the day.
badgeA badge or door access system.
booking_check_inSomeone checked in to a Booking at the Place.
kioskA sign-in kiosk at the Place.
manualSomeone recorded it by hand.
qr_codeSomeone scanned a QR code.
wifiA device joined the Place's Wi-Fi.
{
"created_at": "2026-08-11T09:30:00Z",
"created_by": {
"id": "per_009zyr6x",
"type": "person"
},
"date": "2026-08-11",
"entries": [
{
"kind": "arrival",
"occurred_at": "2026-08-11T09:30:00Z",
"recorded_at": "2026-08-11T09:30:00Z",
"recorded_by": {
"id": "per_01vt15my",
"type": "person"
},
"source": "automatic"
}
],
"id": "vis_01jhjq6y",
"object": "visit",
"organisation": "org_019lxa85",
"place": "place_01nlsp9i",
"status": "on_site"
}Operations
#operationsMethods that change state.
/visits/record-arrival200Record that a Person or Guest arrived at a Place. Adds the arrival to their Visit for that day at the Place, creating the Visit if it's the first entry.
visit.manageidempotency_keystringOptionalgst_). Must belong to the Place's Organisation. Give person or guest, not both.per_). Required with guest for the Guest's first entry of the day, and not allowed with person. A Guest's Visit keeps the host it was first recorded with.occurred_at when signal is given, otherwise now. Can be up to 5 minutes ahead of now, for devices whose clocks run fast.per_). Give person or guest, not both.place_).sig_). The entry happens at the Signal's occurred_at, and the Signal's person and place, when set, must match. Recording a Signal that's already on the Visit changes nothing.sourcestringbadgebooking_check_inkioskmanualqr_codewifiRequiredcurl -X POST https://api.officely.app/visits/record-arrival \
-H "Authorization: Bearer $OFFICELY_TOKEN" \
-H "Officely-Version: 2026-08-11" \
-d '{
"place": "place_01r174a4",
"source": "badge"
}'/visits/record-departure200Record that a Person or Guest left a Place. Adds the departure to their Visit for that day at the Place, creating the Visit if no arrival was recorded. A departure from an existing Visit is recorded even if the Place, Person, Guest or host has since been archived or removed.
visit.manageidempotency_keystringOptionalgst_). Must belong to the Place's Organisation. Give person or guest, not both.per_). Required with guest for the Guest's first entry of the day, and not allowed with person. A Guest's Visit keeps the host it was first recorded with.occurred_at when signal is given, otherwise now. Can be up to 5 minutes ahead of now, for devices whose clocks run fast.per_). Give person or guest, not both.place_).sig_). The entry happens at the Signal's occurred_at, and the Signal's person and place, when set, must match. Recording a Signal that's already on the Visit changes nothing.sourcestringbadgebooking_check_inkioskmanualqr_codewifiRequiredcurl -X POST https://api.officely.app/visits/record-departure \
-H "Authorization: Bearer $OFFICELY_TOKEN" \
-H "Officely-Version: 2026-08-11" \
-d '{
"place": "place_014s80ct",
"source": "badge"
}'Queries
#queriesRead methods. Kept apart from operations because only operations change state.
vis_).curl https://api.officely.app/visits/vis_00qk1xg2 \
-H "Authorization: Bearer $OFFICELY_TOKEN" \
-H "Officely-Version: 2026-08-11"/visits200List a Place's Visits on one day. With on_site set to true, this is who's at the Place now. Results are ordered by ID, which isn't chronological.
visit.readvis_). Pass the previous page's next_after.limitintegerOptionalon_sitebooleanOptionaltrue returns only Visits whose latest entry is an arrival, false only those whose latest entry is a departure. Omit for both.place_).data array is a result rather than a refusal.curl "https://api.officely.app/visits?date=2026-08-11&place=place_00l2qzc7" \
-H "Authorization: Bearer $OFFICELY_TOKEN" \
-H "Officely-Version: 2026-08-11"Events
#eventsRecorded when something happens to a Visit. The payload is the Event's data.
Occurs when an arrival is added to a Visit. data is the whole Visit, so status reflects every entry. The new arrival is the entry with the latest recorded_at.
dataVisit{
"actor": {
"id": "per_01yn0o4c",
"type": "person"
},
"created": "2026-08-11T09:30:00Z",
"id": "evt_01e7hnv6",
"name": "visit.arrived",
"object": "event",
"sequence": 1,
"data": {
"created_at": "2026-08-11T09:30:00Z",
"created_by": {
"id": "per_009zyr6x",
"type": "person"
},
"date": "2026-08-11",
"entries": [
{
"kind": "arrival",
"occurred_at": "2026-08-11T09:30:00Z",
"recorded_at": "2026-08-11T09:30:00Z",
"recorded_by": {
"id": "per_01vt15my",
"type": "person"
},
"source": "automatic"
}
],
"first_arrived_at": "2026-08-11T09:30:00Z",
"id": "vis_01jhjq6y",
"object": "visit",
"organisation": "org_019lxa85",
"person": "per_006ts7h6",
"place": "place_01nlsp9i",
"status": "on_site"
}
}Occurs when a departure is added to a Visit. data is the whole Visit, so status reflects every entry. The new departure is the entry with the latest recorded_at.
dataVisitRefusal reasons
#refusal-reasonsEvery refusal reason defined by visit. The reason is the machine-readable key a caller receives.
| Code | Category | Returned when |
|---|---|---|
guest_not_found | not_found | No active Guest matches guest. Archived Guests can't visit. |
guest_organisation_mismatch | rule | guest belongs to a different Organisation from place. |
host_not_allowed | validation | host was given with person. Only a Guest's Visit has a host. |
host_not_found | not_found | No active Person in the Account matches host. |
host_required | validation | guest was given without host. |
occurred_in_future | validation | occurred_at is more than 5 minutes later than now. |
person_not_found | not_found | No active Person in the Account matches person. |
place_not_found | not_found | No active Place matches place. |
signal_mismatch | rule | The Signal's person, place or occurred_at differs from the person, place or occurred_at given. |
signal_not_found | not_found | No Signal matches signal. |
visit_not_found | not_found | No Visit matches visit. |
visitor_required | validation | Neither or both of person and guest were given. Give exactly one. |
{
"error": {
"category": "not_found",
"code": "guest_not_found",
"message": "No active Guest matches guest.",
"retryable": false
}
}The code is the machine-readable refusal reason. Every code in this table is a permanent URL you can link from error toasts and logs.
Value types
#value-typesPublished value types owned by Visit, referenced from its fields and inputs.
VisitEntry#visit-entryPublished value type: VisitEntry.
kindstringarrivaldepartureoccurred_atInstantrecorded_atInstantrecorded_byActorsig_), if any.REST examples use https://api.officely.app. See Officely-Version for endpoint versioning.

