unifi_protect_request
Retrieve data from any private UniFi Protect API endpoint directly to bypass outdated wrappers when wrapped tools return 404. Returns raw responses; GET only.
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.
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 |