API
The API page introduces RouterOS's Application Programming Interface for secure communication with routers, detailing syntax rules, sentence structure, encoding methods, and supported commands like login and cancel for configuration management.
The API page introduces RouterOS's Application Programming Interface for secure communication with routers, detailing syntax rules, sentence structure, encoding methods, and supported commands like login and cancel for configuration management.
Developer guides provide documentation for automating and integrating with RouterOS through APIs, scripting, and REST interfaces to build tools and applications that interact with the router.
This page provides a Python3 example client for interacting with RouterOS via its API, demonstrating sentence exchange, plain-text and legacy challenge-response login, and socket communication over the API and API-SSL services.
RouterOS REST API: enable HTTPS access with a least-privilege user, read and change the configuration with GET, PUT, PATCH and DELETE, run any console command with POST, work within the 60-second limit and per-user sessions, and build scripts, integrations and dashboards on it.