getVisits
List visits. Omit locationRef to list visits across all locations, newest visit date first, or provide it to scope to one location. Call getLocations to list locations, or getLocation to fetch one by locationId. Filter by userRefHost, by userRefVisitor, by date range (when the visit takes place), or by createDate range.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getVisits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Filter by date (date). Provide gt, gte, lt, lte ISO datetimes. | |
| limit | No | Maximum number of visits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| status | No | Filter by status: 'request' a visitor arrived without an invitation and waits for their host to approve, 'scheduled' the visitor has not arrived yet, 'checkedIn' the visitor is on site, 'checkedOut' they left, 'rejected' the host turned the request down, 'canceled' the visit was canceled. Defaults to scheduled, checkedIn, checkedOut. 'request' lists visit requests on their own, by the date they were made, and can't be combined with other statuses. Comma-separated, one or more of: request, scheduled, checkedIn, checkedOut, rejected, canceled. | |
| endDate | No | Filter by end date (endDate). Provide gt, gte, lt, lte ISO datetimes. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| locationRef | No | UUID of the location whose visits to list. Omit to list visits across every location of the network, newest visit date first. | |
| userRefHost | No | UUID of the user hosting the visits to list. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. | |
| userRefVisitor | No | UUID of the visiting user whose visits to list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visits | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |