{
  "info": {
    "name": "UniFi — mcp.ai",
    "description": "REST API for the UniFi MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/unifi",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "unifi_get_host",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/host",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "host"
          ]
        },
        "description": "Get detailed information for one UniFi host by the Site Manager host ID returned by List Hosts.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"host_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_get_isp_metrics",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/isp/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "isp",
            "metrics"
          ]
        },
        "description": "Get ISP performance metrics for all accessible sites, optionally limited by a relative duration or explicit timestamp bounds.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"duration\": \"\",\n  \"interval\": \"\",\n  \"end_timestamp\": \"\",\n  \"begin_timestamp\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_get_sd_wan_config",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/sd/wan/config",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "sd",
            "wan",
            "config"
          ]
        },
        "description": "Get the topology and settings of one SD-WAN configuration by ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"config_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_get_sd_wan_config_status",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/sd/wan/config/status",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "sd",
            "wan",
            "config",
            "status"
          ]
        },
        "description": "Get deployment, generation, WAN, tunnel, warning, and error status for one SD-WAN configuration.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"config_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_list_devices",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/devices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "devices"
          ]
        },
        "description": "List UniFi devices managed by hosts where the connected UI account is an owner or super admin. Results are grouped by host and can be filtered by host ID or by the last processed device timestamp.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"host_ids\": \"\",\n  \"page_size\": 0,\n  \"next_cursor\": \"\",\n  \"updated_after\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_list_hosts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/hosts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "hosts"
          ]
        },
        "description": "List UniFi hosts associated with the connected UI account. Use the returned host IDs with device filters, site metrics, and host detail tools.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page_size\": 0,\n  \"next_cursor\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_list_sd_wan_configs",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/sd/wan/configs",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "sd",
            "wan",
            "configs"
          ]
        },
        "description": "List the SD-WAN configurations associated with the connected UI account.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_list_sites",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/sites",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "sites"
          ]
        },
        "description": "List sites from UniFi Network applications associated with the connected UI account. Use returned host and site IDs for selected-site ISP metrics.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page_size\": 0,\n  \"next_cursor\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "unifi_query_isp_metrics",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/query/isp/metrics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "query",
            "isp",
            "metrics"
          ]
        },
        "description": "Get ISP performance metrics for selected host/site pairs. Each site can specify its own RFC3339 time bounds. Always inspect partial_success, status, and message: UniFi can return usable metrics for on",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sites\": \"\",\n  \"interval\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}