Generate Hotspot Vouchers
unifi_generate_vouchersGenerate guest WiFi hotspot voucher codes with optional time, data, and bandwidth limits; returns codes to share with guests for access.
Instructions
Generate new guest hotspot voucher codes with optional time/data/bandwidth limits. Returns the generated codes — share them with guests to grant WiFi access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "unifi_generate_vouchers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label for this batch of vouchers, e.g. 'Weekend guests'. Must not contain the text "[redacted]" (the placeholder reads show for credentials): a label containing it is refused. | |
| count | No | How many voucher codes to generate (default 1) | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| rxRateLimitKbps | No | Download rate limit in Kbps (omit for unlimited) | |
| txRateLimitKbps | No | Upload rate limit in Kbps (omit for unlimited) | |
| timeLimitMinutes | No | Minutes each voucher grants access for (default 1440 = 24h) | |
| authorizedGuestLimit | No | How many guests may redeem one voucher (omit for unlimited) | |
| dataUsageLimitMBytes | No | Data cap per guest in megabytes (omit for unlimited) |