Ubiquiti Protect API integration
If you’re new to integrations in Rewst, read through our introductory integration documentation here.
What does the Ubiquiti Protect API integration do?
Integrate Rewst with the UniFi Protect API for NVR and camera management. Gain cameras, lights, sensors, viewers, liveviews, chimes, and snapshot access for MSPs.
Set up the Ubiquiti Protect API integration
Set up steps in Ubiquiti
Open UniFi Site Manager and log in to your account.
Navigate to Settings > API Keys.
Click Create a New API Key.
Enter
RewstProtectAPIinto the Name field.Choose Never Expires from the Expiration drop-down selector.
Click Create.
Note that the key value will only be shown once. Copy the generated key and store it somewhere secure. You'll need this information for further steps in Rewst.
Click on your related controller from the Site Manager dashboard.
Navigate to Integrations > Documentation > API Request Format.
Note the hostname in the dialog that appears. For example, in the image below the hostname would be
33455a3a-ff93-88b2-68d5e6508a0f.unifi-hosting.ui.com. You'll need this information for further steps in Rewst.

Set up steps in Rewst
Navigate to Marketplace > Integrations in the left side menu of your Rewst platform.
Search for
Ubiquiti Protectin the integrations page.
Click on the integration tile to launch the configuration setup page.
Enter the copied API key value into the API Key field.
Enter the copied hostname from Ubiquiti into the Host field.
If your NVR uses a self-signed SSL certificate, set Verify SSL to
falsein the configuration.Click Save Configuration.
Rewst will do a quick validation of your input. Once completed, you'll see a new section beneath the configuration form for organization mapping. Complete your mapping as desired.
Got an idea for a new Integration? Rewst is constantly adding new integrations to our integrations page. Submit your idea or upvote existing ideas here in our Canny feedback collector.
Actions and endpoints
For more on how actions work in Rewst, check out our introductory actions documentation here.
Alarm Manager
Send Alarm Webhook
Send a webhook to the Protect alarm manager to trigger configured alarms. The webhook ID must match the ID set on the alarm configuration.
Cameras
List Cameras
Get detailed information about all cameras adopted by the NVR
Cameras
Get Camera Snapshot
Get a snapshot image from a specific camera. Returns a data URI (data:image/jpeg;base64,...) that can be used directly in an img tag or pasted into a browser.
Cameras
Get Camera
Get detailed information about a specific camera
Cameras
Update Camera
Update the settings for a specific camera. All body fields are optional — only include what you want to change.
Chimes
Update Chime
Update the settings for a specific UniFi Protect chime. All body fields are optional — only include what you want to change.
Chimes
Get Chime
Get detailed information about a specific UniFi Protect chime
Chimes
List Chimes
Get detailed information about all UniFi Protect chimes adopted by the NVR
Generic Request
Ubiquiti Protect API Request
Generic action for making authenticated requests against the UniFi Protect Integration API
Info
Get Protect Application Info
Get generic information about the UniFi Protect application, including the application version
Lights
List Lights
Get detailed information about all UniFi Protect lights adopted by the NVR
Lights
Get Light
Get detailed information about a specific UniFi Protect light
Lights
Update Light
Update the settings for a specific UniFi Protect light. All body fields are optional — only include what you want to change.
Nvr
Get NVR Details
Get detailed information about the NVR, including firmware version, storage capacity, and health status
Sensors
List Sensors
Get detailed information about all UniFi Protect sensors adopted by the NVR
Sensors
Update Sensor
Update the settings for a specific UniFi Protect sensor. All body fields are optional — only include what you want to change.
Sensors
Get Sensor
Get detailed information about a specific UniFi Protect sensor
Last updated
Was this helpful?
