2.9 KiB
2.9 KiB
Omada Cloud Northbound API Documentation
Official API Documentation
The Omada Cloud northbound API documentation is available at:
- EU Region: https://euw1-omada-northbound.tplinkcloud.com/doc.html#/home
- US Region: https://usw1-omada-northbound.tplinkcloud.com/doc.html#/home
- Asia Region: https://ap1-omada-northbound.tplinkcloud.com/doc.html#/home
API Base URL Structure
Our implementation uses:
${OMADA_NORTHBOUND_BASE}/openapi/v1/omada/${OMADA_ID}
Example:
https://euw1-omada-northbound.tplinkcloud.com/openapi/v1/omada/b7335e3ad40ef0df060a922dcf5abdf5
Authentication
The API documentation should contain the correct authentication endpoint. Based on our implementation, we're trying:
${OMADA_CONTROLLER_BASE}/${OMADA_ID}/openapi/login${OMADA_CONTROLLER_BASE}/openapi/login${OMADA_NORTHBOUND_BASE}/openapi/v1/omada/${OMADA_ID}/login
Note: Check the official documentation for the exact authentication endpoint format.
API Endpoints Used
Sites
GET /sites- List all sitesGET /sites/{siteId}- Get site details
Devices
GET /sites/{siteId}/devices- List devices for a siteGET /sites/{siteId}/devices/{deviceId}- Get device detailsPOST /sites/{siteId}/devices/{deviceId}/reboot- Reboot devicePOST /sites/{siteId}/devices/{deviceId}/locate- Locate device
Gateway Configuration
GET /sites/{siteId}/devices/{deviceId}/wan- Get WAN configurationPUT /sites/{siteId}/devices/{deviceId}/wan- Update WAN configurationPOST /sites/{siteId}/devices/{deviceId}/vpn- Configure VPN
Switch Configuration
GET /sites/{siteId}/devices/{deviceId}/ports- Get switch portsPOST /sites/{siteId}/devices/{deviceId}/ports/{portIndex}/vlan- Set port VLANPUT /sites/{siteId}/devices/{deviceId}/ports/{portIndex}- Toggle port
Wireless (SSID)
GET /sites/{siteId}/wlans- List SSIDsPOST /sites/{siteId}/wlans- Create SSIDPUT /sites/{siteId}/wlans/{wlanId}- Update SSID
Clients
GET /sites/{siteId}/clients- List clientsPOST /sites/{siteId}/clients/{clientId}/block- Block clientPOST /sites/{siteId}/clients/{clientId}/unblock- Unblock client
Verifying Endpoints
To verify the correct endpoint structure:
- Visit the API documentation URL for your region
- Check the authentication endpoint format
- Verify the endpoint paths match our implementation
- Update our code if the documentation shows different paths
Accessing the Documentation
You can access the interactive API documentation by:
- Opening the doc.html URL in your browser
- Using the Swagger UI interface to explore endpoints
- Testing endpoints directly from the documentation interface (if authentication is configured)
Next Steps
- Review the official documentation for authentication endpoint
- Verify all endpoint paths match the documentation
- Update implementation if discrepancies are found
- Test endpoints using the documentation interface