Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

API Reference

← Back to Documentation


Authentication

All API endpoints require authentication via API key in the X-Api-Key header.

Create API Key:

  1. Log in to UniFi Network UI
  2. Navigate to Settings → Admins
  3. Select your admin account
  4. Click "Create API Token"
  5. Copy and save the token securely

API Versions

Base Path: /proxy/network/api/s/{site}/rest

Legacy REST API with 31 endpoints covering traditional UniFi features.

Base Path: /proxy/network/v2/api/site/{site}

Modern REST API with 12 endpoints for newer features (DNS records, traffic rules, firewall zones, topology).


Response Formats

V1 REST API:

{
  "meta": {"rc": "ok"},
  "data": [{"_id": "123", "name": "example"}]
}

V2 API:

[
  {"_id": "123", "name": "example"}
]

Endpoints by Category

Core

Network

Security

Monitoring

System