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 MikroTik RouterOS via its API, demonstrating login and command execution using socket communication and MD5 hashing for authentication.
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.