protect_get_camera
Retrieve camera details by ID to access configuration fields such as name, state, video mode, and LED settings from UniFi Protect.
Instructions
Get details for a specific camera by ID. The Protect Integration API returns the SAME field set as protect_list_cameras entries (id, mac, name, modelKey, state, type, guid, activePatrolSlot, hasPackageCamera, hdrType, isMicEnabled, micVolume, videoMode, featureFlags, lcdMessage, ledSettings, osdSettings, smartDetectSettings) — there is no extended/by-id-only payload (confirmed live on 7.3.47). Recording state, motion events, zones, and channel/RTSP config are NOT exposed by this API surface.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Camera ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Camera ID | |
| mac | No | MAC address | |
| guid | No | Hardware MODEL GUID, shared by every unit of the same model. NOT a per-device identifier — use `id` to identify a device. | |
| name | No | Camera name | |
| type | No | Hardware model name, e.g. "UVC G6 Turret", "UP Chime PoE", "UNVR-PRO" | |
| state | No | CONNECTED | DISCONNECTED | ... | |
| hdrType | No | HDR mode, e.g. "auto" | |
| modelKey | No | Always "camera" | |
| micVolume | No | Microphone volume 0-100 (number) | |
| videoMode | No | Video mode, e.g. "default" | |
| lcdMessage | No | ||
| ledSettings | No | ||
| osdSettings | No | ||
| featureFlags | No | ||
| isMicEnabled | No | Microphone enabled (boolean) | |
| activePatrolSlot | No | Active PTZ patrol slot, or null (number|null) | |
| hasPackageCamera | No | Has a secondary package camera (boolean) | |
| smartDetectSettings | No |