Get Hotspot Voucher Details
unifi_get_voucherRetrieve a hotspot voucher by ID to view its code, label, usage counts, time limit, and expiry status; use voucher IDs returned by the voucher list tool.
Instructions
Get one hotspot voucher by ID: its code, label, usage counts, time limit, and expiry status. IDs come from unifi_list_vouchers.
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": {
"voucherId": "<voucherId>"
},
"name": "unifi_get_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| voucherId | Yes | Voucher ID (UUID from unifi_list_vouchers) | |
| responseFormat | No | 'markdown' for a compact human-readable summary (default), 'json' for full raw API data | markdown |