List Hotspot Vouchers
unifi_list_vouchersList guest hotspot vouchers on a site, including voucher codes, usage counts, and expiry status, to audit or manage captive-portal access codes.
Instructions
List guest hotspot vouchers on a site, including the voucher codes, usage counts, and expiry status. Vouchers are access codes guests redeem on the captive portal.
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": "unifi_list_vouchers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (1-200, default 50) | |
| filter | No | Optional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here. | |
| offset | No | Number of results to skip, for pagination (default 0) | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| responseFormat | No | 'markdown' for a compact human-readable summary (default), 'json' for full raw API data | markdown |