UniFi Protect: Request
unifi_protect_requestCall any private UniFi Protect API endpoint directly to reach replacement endpoints when wrapped tools return 404; returns raw GET responses from /proxy/protect/api and blocks writes by default.
Instructions
Escape hatch: call any private Protect API endpoint directly, relative to /proxy/protect/api. This exists because the private API is undocumented and Ubiquiti moves endpoints between Protect releases — when a wrapped tool starts returning 404, this reaches the replacement without waiting for a new version of this server. Responses are returned RAW and unshaped, so a broad endpoint like bootstrap can return hundreds of kilobytes; prefer the wrapped tools, which summarize. Writes are DISABLED: only GET is permitted. Set UNIFI_PROTECT_ALLOW_WRITES=1 to allow mutations.
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": {
"path": "<path>"
},
"name": "unifi_protect_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body, for POST and PATCH. | |
| path | Yes | Path relative to /proxy/protect/api, without a leading slash, e.g. "cameras", "nvr", "events/abc123". Not an absolute URL. | |
| query | No | Query parameters as a flat string map, e.g. {"start":"1756500000000"}. Remember that Protect times are milliseconds since the epoch. | |
| method | No | HTTP method. | GET |