OnLocation sends email, SMS, and OnLocation Mobile push notifications. Use the notification API to retrieve a list of all notifications and provide a notification ID to retrieve a single notification.
Returns a list of all notification records.
Filter by any notification element. 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 notification records
Access denied to this resource
Resource not found
curl -i -X GET \ 'https://api.whosonlocation.com/v1/notification?q=string'
[- {
- "id": 192,
- "created": "2021-11-25T15:01:31+13:00",
- "modified": "2021-11-25T15:01:33+13:00",
- "location_id": 301,
- "visitor_id": 139,
- "for_staff_id": 82,
- "to_staff_id": 431,
- "method": "sms",
- "type": "signin",
- "recipient": "64 212143775",
- "messageid": "18f007ae1767d54b6654bae703d472808634a123@yoursite.whosonlocation.com",
- "to_staff_name": "Great Scott",
- "for_staff_name": "Great Scott",
- "status": [
- {
- "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": [
- [
- 197,
- 198
]
]
}
]
}
]
Retrieves a single notification, filtering with the provided ID.
Notification returned
Access denied to resource
Resource not found
curl -i -X GET \ https://api.whosonlocation.com/v1/notification/:id
{- "id": 192,
- "created": "2021-11-25T15:01:31+13:00",
- "modified": "2021-11-25T15:01:33+13:00",
- "location_id": 301,
- "visitor_id": 139,
- "for_staff_id": 82,
- "to_staff_id": 431,
- "method": "sms",
- "type": "signin",
- "recipient": "64 212143775",
- "messageid": "18f007ae1767d54b6654bae703d472808634a123@yoursite.whosonlocation.com",
- "to_staff_name": "Great Scott",
- "for_staff_name": "Great Scott",
- "status": [
- {
- "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": [
- [
- 197,
- 198
]
]
}
]
}