Frequent visitors

Each employee can maintain a frequent visitor list in OnLocation. Use the frequent visitor API to retrieve all frequent visitors, add a new frequent visitor, or update or delete a frequent visitor.

Learn more about frequent visitors in the OnLocation Help Center.

List all frequent visitors

Returns a list of all frequent visitors added by employees.

A comma separated list of tag:value search parameters, a colon separator performs an exact match, a percent separator performs a starts-with search and greater/less than search number/date ranges.

Responses
200

List of registered visitors

403

Access denied to this resource

404

Resource not found

500

Internal server error

get/visitor/person
Request samples
curl -i -X GET \
  https://api.whosonlocation.com/v1/visitor/person
Response samples
[
  • {
    }
]

Retrieve a frequent visitor

Retrieves a single frequent visitor, filtering with the provided ID.

Request
path Parameters
id
required
integer <int32>

ID of the registered visitor to retrieve

Responses
200

A visitor's details

403

Access denied to resource

404

Resource not found

500

Internal server error

get/visitor/person/{id}
Request samples
curl -i -X GET \
  https://api.whosonlocation.com/v1/visitor/person/:id
Response samples
{
  • "id": 293,
  • "created": "2021-11-29T11:10:44+13:00",
  • "modified": "2021-11-30T11:10:44+13:00",
  • "location_id": 301,
  • "created_staff_id": 823431,
  • "staff_id": 823431,
  • "name": "Frequent Visitor name",
  • "email": "frequent.visitor@whosonlocation.com",
  • "from": "Another Organisation",
  • "phone": "+1 206 555 0123",
  • "mobile": "+1 206 555 0123",
  • "title": "Mr",
  • "assistance": false,
  • "type": "frequent",
  • "groups": [
    ]
}

Delete a frequent visitor

Deletes a frequent visitor using with the provided ID.

Request
path Parameters
id
required
integer <int32>

ID of the registered visitor to delete

Responses
204

Frequent visitor deleted

403

Access denied to resource

404

Resource not found

500

Internal server error

delete/visitor/person/{id}
Request samples
curl -i -X DELETE \
  https://api.whosonlocation.com/v1/visitor/person/:id