A pre-registered visitor is someone who has been approved by an employee to visit a location. Each visitor is linked to a visit event. Use the pre-registered visitor API to retrieve your pre-registered visitor events list, add a new pre-registered visitor event, or update or delete a pre-registered visitor event.
Learn more about pre-registered visitors in the OnLocation Help Center.
Returns a list of all pre-registered visitors and groups.
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.
List of pre-registered visitors
Access denied to this resource.
Resource not found
Internal server error
curl -i -X GET \ 'https://api.whosonlocation.com/v1/visitor/register?q=string'
[- {
- "id": 1915,
- "created": "2021-11-29T11:11:25+13:00",
- "modified": "2021-11-29T11:11:56+13:00",
- "location_id": 301,
- "created_staff_id": 823431,
- "visiting_staff_id": 823431,
- "event_start": "2021-11-30T15:00:00+13:00",
- "event_end": "2021-11-30T17:00:00+13:00",
- "name": "Visitor Registor Name",
- "visiting_staff_name": "Jane Doe",
- "location_name": "Head Office",
- "visitors": [
- {
- "id": 2957,
- "name": "Robert Jordan",
- "email": "registered.visitor@whosonlocation.com",
- "from": "ACME Corporation",
- "phone": "+1 206 555 0123",
- "mobile": "+1 206 555 0123",
- "title": "Mr",
- "assistance": false,
- "purpose": "Visiting"
}
], - "type": "preregister"
}
]
Add a new pre-registered visitor event
Pre-registered visitor event created
Access denied to this resource
Internal server error
{- "name": "Robert Jordan",
- "type": "preregister",
- "location_id": 301,
- "staff_id": 264,
- "visiting_staff_id": 264,
- "event_start": "2021-11-30T15:00:00+13:00",
- "event_end": "2021-11-30T17:00:00+13:00",
- "visitors": [
- {
- "name": "Robert Jordan",
- "from": "ACME Corporation",
- "email": "example@example.org",
- "phone": "+1 206 555 0123",
- "mobile": "+1 206 555 0123",
- "title": "Mr",
- "assistance": true,
- "purpose": "visiting"
}
]
}
{- "name": "Robert Jordan",
- "type": "preregister",
- "location_id": 301,
- "staff_id": 264,
- "visiting_staff_id": 264,
- "event_start": "2021-11-30T15:00:00+13:00",
- "event_end": "2021-11-30T17:00:00+13:00",
- "visitors": [
- {
- "name": "Robert Jordan",
- "from": "ACME Corporation",
- "email": "example@example.org",
- "phone": "+1 206 555 0123",
- "mobile": "+1 206 555 0123",
- "title": "Mr",
- "assistance": true,
- "purpose": "visiting"
}
]
}
Retrieves a single pre-registered visitor, filtering with the provided ID
A single pre-registered visitor record
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/visitor/register/:id
{- "id": 1915,
- "created": "2021-11-29T11:11:25+13:00",
- "modified": "2021-11-29T11:11:56+13:00",
- "location_id": 301,
- "created_staff_id": 823431,
- "visiting_staff_id": 823431,
- "event_start": "2021-11-30T15:00:00+13:00",
- "event_end": "2021-11-30T17:00:00+13:00",
- "name": "Visitor Registor Name",
- "visiting_staff_name": "Jane Doe",
- "location_name": "Head Office",
- "visitors": [
- {
- "id": 2957,
- "name": "Robert Jordan",
- "email": "registered.visitor@whosonlocation.com",
- "from": "ACME Corporation",
- "phone": "+1 206 555 0123",
- "mobile": "+1 206 555 0123",
- "title": "Mr",
- "assistance": false,
- "purpose": "Visiting"
}
], - "type": "preregister"
}
Updates the specified pre-registered visitor event
Information used to create the pre-registered visitor event record
Updated pre-registered visitor event
Access denied to this resource
Internal server error
{- "name": "Robert Jordan",
- "type": "preregister",
- "location_id": 301,
- "staff_id": 264,
- "visiting_staff_id": 264,
- "event_start": "2021-11-30T15:00:00+13:00",
- "event_end": "2021-11-30T17:00:00+13:00",
- "visitors": [
- {
- "name": "Robert Jordan",
- "from": "ACME Corporation",
- "email": "example@example.org",
- "phone": "+1 206 555 0123",
- "mobile": "+1 206 555 0123",
- "title": "Mr",
- "assistance": true,
- "purpose": "visiting"
}
]
}
Removes the specified pre-registered visitor event.
Pre-registered visitor event deleted
Access denied to resource
Resource not found
Internal server error
curl -i -X DELETE \ https://api.whosonlocation.com/v1/visitor/register/:id